Amazon Kinesis Webrtc C SDK
Loading...
Searching...
No Matches
Dtls.c File Reference
#include "../Include_i.h"
Include dependency graph for Dtls.c:

Macros

#define LOG_CLASS   "DTLS"

Functions

STATUS dtlsSessionOnOutBoundData (PDtlsSession pDtlsSession, UINT64 customData, DtlsSessionOutboundPacketFunc callbackFn)
STATUS dtlsSessionOnStateChange (PDtlsSession pDtlsSession, UINT64 customData, DtlsSessionOnStateChange callbackFn)
STATUS dtlsValidateRtcCertificates (PRtcCertificate pRtcCertificates, PUINT32 pCount)
BOOL dtlsPacketIsClientHello (PBYTE pData, UINT32 dataLen)
STATUS dtlsSessionKeepEarlyClientHello (PDtlsSession pDtlsSession, PBYTE pData, UINT32 dataLen)
STATUS dtlsSessionChangeState (PDtlsSession pDtlsSession, RTC_DTLS_TRANSPORT_STATE newState)
STATUS dtlsSessionCopyOptions (PDtlsSession pDtlsSession, PDtlsSessionOptions pDtlsSessionOptions)
STATUS dtlsFillPseudoRandomBits (PBYTE pBuf, UINT32 bufSize)

Macro Definition Documentation

◆ LOG_CLASS

#define LOG_CLASS   "DTLS"

Function Documentation

◆ dtlsFillPseudoRandomBits()

STATUS dtlsFillPseudoRandomBits ( PBYTE pBuf,
UINT32 bufSize )
Here is the caller graph for this function:

◆ dtlsPacketIsClientHello()

BOOL dtlsPacketIsClientHello ( PBYTE pData,
UINT32 dataLen )

Whether a DTLS datagram starts with an unencrypted ClientHello (epoch 0), from its first fragment

Here is the caller graph for this function:

◆ dtlsSessionChangeState()

STATUS dtlsSessionChangeState ( PDtlsSession pDtlsSession,
RTC_DTLS_TRANSPORT_STATE newState )
Here is the caller graph for this function:

◆ dtlsSessionCopyOptions()

STATUS dtlsSessionCopyOptions ( PDtlsSession pDtlsSession,
PDtlsSessionOptions pDtlsSessionOptions )

Copy DTLS validation options into the session, defaulting to relaxed validation when options are omitted. Strict server validation requires a non-empty expected hostname.

Here is the caller graph for this function:

◆ dtlsSessionKeepEarlyClientHello()

STATUS dtlsSessionKeepEarlyClientHello ( PDtlsSession pDtlsSession,
PBYTE pData,
UINT32 dataLen )

Keeps a ClientHello that arrived before dtlsSessionStart() for the session to answer when it starts, replacing one kept before (RFC 8842 section 5.2: the answerer may send it as soon as its own ICE is ready). Call with sslLock held, before the session started.

Returns
- STATUS - STATUS_SUCCESS if the packet was kept, STATUS_SSL_PACKET_BEFORE_DTLS_READY if it does not start a ClientHello and is dropped, STATUS_NOT_ENOUGH_MEMORY if it could not be copied (one kept before stays), STATUS_NULL_ARG
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dtlsSessionOnOutBoundData()

STATUS dtlsSessionOnOutBoundData ( PDtlsSession pDtlsSession,
UINT64 customData,
DtlsSessionOutboundPacketFunc callbackFn )
Here is the caller graph for this function:

◆ dtlsSessionOnStateChange()

STATUS dtlsSessionOnStateChange ( PDtlsSession pDtlsSession,
UINT64 customData,
DtlsSessionOnStateChange callbackFn )
Here is the caller graph for this function:

◆ dtlsValidateRtcCertificates()

STATUS dtlsValidateRtcCertificates ( PRtcCertificate pRtcCertificates,
PUINT32 pCount )
Here is the caller graph for this function: