#include "../Include_i.h"
Macros | |
#define | LOG_CLASS "DTLS_openssl" |
Functions | |
INT32 | dtlsCertificateVerifyCallback (INT32 preverify_ok, X509_STORE_CTX *ctx) |
VOID | acquireDtlsSession (PDtlsSession pDtlsSession) |
VOID | releaseDtlsSession (PDtlsSession pDtlsSession) |
STATUS | dtlsCertificateFingerprint (X509 *pCertificate, PCHAR pBuff) |
STATUS | dtlsTransmissionTimerCallback (UINT32 timerID, UINT64 currentTime, UINT64 customData) |
STATUS | createCertificateAndKey (INT32 certificateBits, BOOL generateRSACertificate, X509 **ppCert, EVP_PKEY **ppPkey) |
STATUS | createSslCtx (PDtlsSessionCertificateInfo pCertificates, UINT32 certCount, SSL_CTX **ppSslCtx) |
STATUS | createSsl (SSL_CTX *pSslCtx, SSL **ppSsl) |
STATUS | freeCertificateAndKey (X509 **ppCert, EVP_PKEY **ppPkey) |
STATUS | createDtlsSession (PDtlsSessionCallbacks pDtlsSessionCallbacks, TIMER_QUEUE_HANDLE timerQueueHandle, INT32 certificateBits, BOOL generateRSACertificate, PRtcCertificate pRtcCertificates, PDtlsSession *ppDtlsSession) |
STATUS | dtlsGenerateCertificateFingerprints (PDtlsSession pDtlsSession, PDtlsSessionCertificateInfo pDtlsSessionCertificateInfo) |
STATUS | beginHandshakeProcess (PDtlsSession pDtlsSession, BOOL isServer, PINT32 sslRet) |
STATUS | dtlsSessionStart (PDtlsSession pDtlsSession, BOOL isServer) |
STATUS | dtlsSessionHandshakeInThread (PDtlsSession pDtlsSession, BOOL isServer) |
STATUS | freeDtlsSession (PDtlsSession *ppDtlsSession) |
STATUS | dtlsSessionProcessPacket (PDtlsSession pDtlsSession, PBYTE pData, PINT32 pDataLen) |
STATUS | dtlsSessionPutApplicationData (PDtlsSession pDtlsSession, PBYTE pData, INT32 dataLen) |
STATUS | dtlsSessionShutdown (PDtlsSession pDtlsSession) |
STATUS | dtlsCheckOutgoingDataBuffer (PDtlsSession pDtlsSession) |
STATUS | dtlsSessionIsInitFinished (PDtlsSession pDtlsSession, PBOOL pIsConnected) |
STATUS | dtlsSessionPopulateKeyingMaterial (PDtlsSession pDtlsSession, PDtlsKeyingMaterial pDtlsKeyingMaterial) |
STATUS | dtlsSessionGetLocalCertificateFingerprint (PDtlsSession pDtlsSession, PCHAR pBuff, UINT32 buffLen) |
STATUS | dtlsSessionVerifyRemoteCertificateFingerprint (PDtlsSession pDtlsSession, PCHAR pExpectedFingerprint) |
#define LOG_CLASS "DTLS_openssl" |
VOID acquireDtlsSession | ( | PDtlsSession | pDtlsSession | ) |
STATUS beginHandshakeProcess | ( | PDtlsSession | pDtlsSession, |
BOOL | isServer, | ||
PINT32 | sslRet | ||
) |
STATUS createCertificateAndKey | ( | INT32 | certificateBits, |
BOOL | generateRSACertificate, | ||
X509 ** | ppCert, | ||
EVP_PKEY ** | ppPkey | ||
) |
STATUS createDtlsSession | ( | PDtlsSessionCallbacks | pDtlsSessionCallbacks, |
TIMER_QUEUE_HANDLE | timerQueueHandle, | ||
INT32 | certificateBits, | ||
BOOL | generateRSACertificate, | ||
PRtcCertificate | pRtcCertificates, | ||
PDtlsSession * | ppDtlsSession | ||
) |
Create DTLS session. Not thread safe.
PDtlsSessionCallbacks | - callbacks |
TIMER_QUEUE_HANDLE | - timer handle to schedule timer task with |
INT32 | - size of generated certificate |
BOOL | - whether to generate certificate or not |
PRtcCertificate | - user provided certificate |
PDtlsSession* | - pointer to created DtlsSession object |
STATUS createSsl | ( | SSL_CTX * | pSslCtx, |
SSL ** | ppSsl | ||
) |
STATUS createSslCtx | ( | PDtlsSessionCertificateInfo | pCertificates, |
UINT32 | certCount, | ||
SSL_CTX ** | ppSslCtx | ||
) |
STATUS dtlsCertificateFingerprint | ( | X509 * | pCertificate, |
PCHAR | pBuff | ||
) |
INT32 dtlsCertificateVerifyCallback | ( | INT32 | preverify_ok, |
X509_STORE_CTX * | ctx | ||
) |
STATUS dtlsCheckOutgoingDataBuffer | ( | PDtlsSession | pDtlsSession | ) |
STATUS dtlsGenerateCertificateFingerprints | ( | PDtlsSession | pDtlsSession, |
PDtlsSessionCertificateInfo | pDtlsSessionCertificateInfo | ||
) |
STATUS dtlsSessionGetLocalCertificateFingerprint | ( | PDtlsSession | pDtlsSession, |
PCHAR | pBuff, | ||
UINT32 | buffLen | ||
) |
STATUS dtlsSessionHandshakeInThread | ( | PDtlsSession | pDtlsSession, |
BOOL | isServer | ||
) |
STATUS dtlsSessionIsInitFinished | ( | PDtlsSession | pDtlsSession, |
PBOOL | pIsConnected | ||
) |
STATUS dtlsSessionPopulateKeyingMaterial | ( | PDtlsSession | pDtlsSession, |
PDtlsKeyingMaterial | pDtlsKeyingMaterial | ||
) |
STATUS dtlsSessionProcessPacket | ( | PDtlsSession | pDtlsSession, |
PBYTE | pData, | ||
PINT32 | pDataLen | ||
) |
STATUS dtlsSessionPutApplicationData | ( | PDtlsSession | pDtlsSession, |
PBYTE | pData, | ||
INT32 | dataLen | ||
) |
STATUS dtlsSessionShutdown | ( | PDtlsSession | pDtlsSession | ) |
STATUS dtlsSessionStart | ( | PDtlsSession | pDtlsSession, |
BOOL | isServer | ||
) |
Start DTLS handshake. Not thread safe.
PDtlsSession | - DtlsSession object |
BOOL | - is server |
STATUS dtlsSessionVerifyRemoteCertificateFingerprint | ( | PDtlsSession | pDtlsSession, |
PCHAR | pExpectedFingerprint | ||
) |
STATUS dtlsTransmissionTimerCallback | ( | UINT32 | timerID, |
UINT64 | currentTime, | ||
UINT64 | customData | ||
) |
STATUS freeCertificateAndKey | ( | X509 ** | ppCert, |
EVP_PKEY ** | ppPkey | ||
) |
STATUS freeDtlsSession | ( | PDtlsSession * | ppDtlsSession | ) |
Free DTLS session. Not thread safe.
PDtlsSession | - DtlsSession object to free |
VOID releaseDtlsSession | ( | PDtlsSession | pDtlsSession | ) |