1 #ifndef __KINESIS_VIDEO_WEBRTC_CLIENT_CRYPTO_TLS__
2 #define __KINESIS_VIDEO_WEBRTC_CLIENT_CRYPTO_TLS__
37 #ifdef KVS_USE_OPENSSL
43 mbedtls_ssl_context sslCtx;
44 mbedtls_ssl_config sslCtxConfig;
45 mbedtls_entropy_context entropy;
46 mbedtls_ctr_drbg_context ctrDrbg;
47 mbedtls_x509_crt cacert;
49 #error "A Crypto implementation is required."
109 #ifdef KVS_USE_OPENSSL
111 #elif KVS_USE_MBEDTLS
118 #error "A Crypto implementation is required."
struct __TlsSession * PTlsSession
Definition: Tls.h:32
STATUS tlsSessionStart(PTlsSession, BOOL)
Definition: Tls_mbedtls.c:103
struct TlsSessionCallbacks * PTlsSessionCallbacks
STATUS createTlsSession(PTlsSessionCallbacks, PTlsSession *)
Definition: Tls_mbedtls.c:7
TLS_SESSION_STATE
Definition: Tls.h:10
@ TLS_SESSION_STATE_CONNECTING
Definition: Tls.h:12
@ TLS_SESSION_STATE_CLOSED
Definition: Tls.h:14
@ TLS_SESSION_STATE_NEW
Definition: Tls.h:11
@ TLS_SESSION_STATE_CONNECTED
Definition: Tls.h:13
STATUS freeTlsSession(PTlsSession *)
Definition: Tls_mbedtls.c:44
STATUS(* TlsSessionOutboundPacketFunc)(UINT64, PBYTE, UINT32)
Definition: Tls.h:18
STATUS tlsSessionShutdown(PTlsSession)
Definition: Tls_mbedtls.c:222
STATUS tlsSessionProcessPacket(PTlsSession, PBYTE, UINT32, PUINT32)
Definition: Tls_mbedtls.c:137
VOID(* TlsSessionOnStateChange)(UINT64, TLS_SESSION_STATE)
Definition: Tls.h:21
STATUS tlsSessionPutApplicationData(PTlsSession, PBYTE, UINT32)
Definition: Tls_mbedtls.c:193
STATUS tlsSessionChangeState(PTlsSession, TLS_SESSION_STATE)
Definition: Tls.c:4
INT32 tlsSessionSendCallback(PVOID customData, const unsigned char *buf, ULONG len)
Definition: Tls_mbedtls.c:69
INT32 tlsSessionReceiveCallback(PVOID customData, unsigned char *buf, ULONG len)
Definition: Tls_mbedtls.c:83
INT32 tlsSessionCertificateVerifyCallback(INT32 preverify_ok, X509_STORE_CTX *ctx)
Definition: Tls_openssl.c:62
UINT64 stateChangeFnCustomData
Definition: Tls.h:28
UINT64 outBoundPacketFnCustomData
Definition: Tls.h:24
TlsSessionOnStateChange stateChangeFn
Definition: Tls.h:29
TlsSessionOutboundPacketFunc outboundPacketFn
Definition: Tls.h:26
Definition: IOBuffer.h:11
TLS_SESSION_STATE state
Definition: Tls.h:35
TlsSessionCallbacks callbacks
Definition: Tls.h:34