reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
dtls::DtlsFactory Class Reference

#include <DtlsFactory.hxx>

Public Types

enum  PacketType { rtp , dtls , stun , unknown }
 

Public Member Functions

 DtlsFactory (std::unique_ptr< DtlsTimerContext > tc, X509 *cert, EVP_PKEY *privkey)
 
 ~DtlsFactory ()
 
DtlsSocket * createClient (std::unique_ptr< DtlsSocketContext > context)
 
DtlsSocket * createServer (std::unique_ptr< DtlsSocketContext > context)
 
std::unique_ptr< DtlsListener > createListener ()
 
void getMyCertFingerprint (char *fingerprint)
 
DtlsTimerContext & getTimerContext ()
 
void setSrtpProfiles (const char *policyStr)
 
void setCipherSuites (const char *cipherSuites)
 
void setMtu (unsigned int mtu)
 
unsigned int getMtu () const
 
void setServerHandshakeTimeout (unsigned int seconds)
 

Static Public Member Functions

static PacketType demuxPacket (const unsigned char *buf, size_t len)
 

Static Public Attributes

static const char * DefaultSrtpProfile = "SRTP_AES128_CM_SHA1_80:SRTP_AES128_CM_SHA1_32"
 
static const unsigned int DefaultMtu = 1200
 
static const unsigned int DefaultServerHandshakeTimeout = 30
 

Friends

class DtlsSocket
 
class DtlsListener
 

Detailed Description

Definition at line 26 of file DtlsFactory.hxx.

Member Enumeration Documentation

◆ PacketType

Enumerator
rtp 
dtls 
stun 
unknown 

Definition at line 29 of file DtlsFactory.hxx.

Constructor & Destructor Documentation

◆ DtlsFactory()

DtlsFactory::DtlsFactory ( std::unique_ptr< DtlsTimerContext >  tc,
X509 *  cert,
EVP_PKEY *  privkey 
)

Definition at line 28 of file DtlsFactory.cxx.

◆ ~DtlsFactory()

DtlsFactory::~DtlsFactory ( )

Definition at line 55 of file DtlsFactory.cxx.

Member Function Documentation

◆ createClient()

DtlsSocket * DtlsFactory::createClient ( std::unique_ptr< DtlsSocketContext >  context)

Definition at line 62 of file DtlsFactory.cxx.

◆ createListener()

std::unique_ptr< DtlsListener > DtlsFactory::createListener ( )

Definition at line 74 of file DtlsFactory.cxx.

◆ createServer()

DtlsSocket * DtlsFactory::createServer ( std::unique_ptr< DtlsSocketContext >  context)

Definition at line 68 of file DtlsFactory.cxx.

◆ demuxPacket()

DtlsFactory::PacketType DtlsFactory::demuxPacket ( const unsigned char *  buf,
size_t  len 
)
static

Definition at line 141 of file DtlsFactory.cxx.

◆ getMtu()

unsigned int dtls::DtlsFactory::getMtu ( ) const
inline

Definition at line 68 of file DtlsFactory.hxx.

◆ getMyCertFingerprint()

void DtlsFactory::getMyCertFingerprint ( char *  fingerprint)

Definition at line 116 of file DtlsFactory.cxx.

◆ getTimerContext()

DtlsTimerContext & dtls::DtlsFactory::getTimerContext ( )
inline

Definition at line 52 of file DtlsFactory.hxx.

◆ setCipherSuites()

void DtlsFactory::setCipherSuites ( const char *  cipherSuites)

Definition at line 132 of file DtlsFactory.cxx.

◆ setMtu()

void dtls::DtlsFactory::setMtu ( unsigned int  mtu)
inline

Definition at line 67 of file DtlsFactory.hxx.

◆ setServerHandshakeTimeout()

void dtls::DtlsFactory::setServerHandshakeTimeout ( unsigned int  seconds)
inline

Definition at line 75 of file DtlsFactory.hxx.

◆ setSrtpProfiles()

void DtlsFactory::setSrtpProfiles ( const char *  policyStr)

Definition at line 122 of file DtlsFactory.cxx.

Friends And Related Symbol Documentation

◆ DtlsListener

Definition at line 82 of file DtlsFactory.hxx.

◆ DtlsSocket

Definition at line 81 of file DtlsFactory.hxx.

Member Data Documentation

◆ DefaultMtu

const unsigned int dtls::DtlsFactory::DefaultMtu = 1200
static

Definition at line 66 of file DtlsFactory.hxx.

◆ DefaultServerHandshakeTimeout

const unsigned int dtls::DtlsFactory::DefaultServerHandshakeTimeout = 30
static

Definition at line 74 of file DtlsFactory.hxx.

◆ DefaultSrtpProfile

const char * DtlsFactory::DefaultSrtpProfile = "SRTP_AES128_CM_SHA1_80:SRTP_AES128_CM_SHA1_32"
static

Definition at line 55 of file DtlsFactory.hxx.


The documentation for this class was generated from the following files: