|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
#include <DtlsSocket.hxx>
Public Types | |
| enum | SocketType { Client , Server } |
Public Member Functions | |
| ~DtlsSocket () | |
| bool | handlePacketMaybe (const unsigned char *bytes, size_t len) |
| void | expired (DtlsSocketTimer *) |
| bool | getRemoteFingerprint (const char *hashFunction, char *fingerprint, size_t fingerprintSize) |
| bool | checkFingerprint (const char *hashFunction, const char *fingerprint) |
| void | getMyCertFingerprint (char *fingerprint) |
| void | startClient () |
| SocketType | getSocketType () |
| SrtpSessionKeys | getSrtpSessionKeys () |
| SRTP_PROTECTION_PROFILE * | getSrtpProfile () |
| bool | createSrtpSessionPolicies (srtp_policy_t &outboundPolicy, srtp_policy_t &inboundPolicy) |
| bool | handshakeCompleted () |
| bool | handshakeFailed () const |
| std::chrono::steady_clock::duration | getAge () const |
| DtlsSocketContext * | getSocketContext () |
Static Public Member Functions | |
| static bool | isFingerprintHashFunctionSupported (const char *hashFunction) |
| static void | computeFingerprint (X509 *cert, char *fingerprint) |
| static bool | computeFingerprint (X509 *cert, const EVP_MD *digest, char *fingerprint, size_t fingerprintSize) |
Static Public Attributes | |
| static const size_t | FingerprintSize = 32 * 3 |
Friends | |
| class | DtlsFactory |
| class | DtlsListener |
Definition at line 67 of file DtlsSocket.hxx.
| Enumerator | |
|---|---|
| Client | |
| Server | |
Definition at line 70 of file DtlsSocket.hxx.
| DtlsSocket::~DtlsSocket | ( | ) |
Definition at line 111 of file DtlsSocket.cxx.
Definition at line 392 of file DtlsSocket.cxx.
Definition at line 483 of file DtlsSocket.cxx.
|
static |
Definition at line 490 of file DtlsSocket.cxx.
| bool DtlsSocket::createSrtpSessionPolicies | ( | srtp_policy_t & | outboundPolicy, |
| srtp_policy_t & | inboundPolicy | ||
| ) |
Definition at line 531 of file DtlsSocket.cxx.
| void DtlsSocket::expired | ( | DtlsSocketTimer * | timer | ) |
Definition at line 122 of file DtlsSocket.cxx.
|
inline |
Definition at line 135 of file DtlsSocket.hxx.
Definition at line 403 of file DtlsSocket.cxx.
| bool DtlsSocket::getRemoteFingerprint | ( | const char * | hashFunction, |
| char * | fingerprint, | ||
| size_t | fingerprintSize | ||
| ) |
Definition at line 371 of file DtlsSocket.cxx.
|
inline |
Definition at line 137 of file DtlsSocket.hxx.
|
inline |
Definition at line 105 of file DtlsSocket.hxx.
| SRTP_PROTECTION_PROFILE * DtlsSocket::getSrtpProfile | ( | ) |
Definition at line 475 of file DtlsSocket.cxx.
| SrtpSessionKeys DtlsSocket::getSrtpSessionKeys | ( | ) |
Definition at line 431 of file DtlsSocket.cxx.
Definition at line 143 of file DtlsSocket.cxx.
|
inline |
Definition at line 129 of file DtlsSocket.hxx.
|
inline |
Definition at line 132 of file DtlsSocket.hxx.
Definition at line 365 of file DtlsSocket.cxx.
| void DtlsSocket::startClient | ( | ) |
Definition at line 135 of file DtlsSocket.cxx.
|
friend |
Definition at line 140 of file DtlsSocket.hxx.
|
friend |
Definition at line 141 of file DtlsSocket.hxx.
Definition at line 82 of file DtlsSocket.hxx.