reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
Security.cxx File Reference
#include "resip/stack/ssl/Security.hxx"
#include "rutil/ssl/OpenSSLOptions.hxx"
#include <ostream>
#include <fstream>
#include <stdexcept>
#include "resip/stack/Contents.hxx"
#include "resip/stack/MultipartSignedContents.hxx"
#include "resip/stack/Pkcs7Contents.hxx"
#include "resip/stack/PlainContents.hxx"
#include "resip/stack/SecurityAttributes.hxx"
#include "resip/stack/Transport.hxx"
#include "resip/stack/ConnectionBase.hxx"
#include "resip/stack/SipMessage.hxx"
#include "rutil/ResipAssert.h"
#include "rutil/BaseException.hxx"
#include "rutil/DataStream.hxx"
#include "rutil/Logger.hxx"
#include "rutil/Random.hxx"
#include "rutil/Socket.hxx"
#include "rutil/Timer.hxx"
#include "rutil/ParseBuffer.hxx"
#include "rutil/DnsUtil.hxx"
#include "rutil/FileSystem.hxx"
#include "rutil/WinLeakCheck.hxx"
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/fcntl.h>
#include <unistd.h>
#include <dirent.h>
#include <openssl/opensslv.h>
#include <openssl/dh.h>
#include <openssl/evp.h>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/pkcs7.h>
#include <openssl/ossl_typ.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/ssl.h>

Go to the source code of this file.

Macros

#define RESIPROCATE_SUBSYSTEM   Subsystem::SIP
 

Functions

static const Data pemTypePrefixes (Security::PEMType pType)
 
static Data getAor (const Data &filename, const Security::PEMType &pemType)
 
static int verifyCallback (int preverifyOk, X509_STORE_CTX *storeCtx)
 
int pem_passwd_cb (char *buf, int size, int rwflag, void *password)
 
template<class T , class Func >
void clearMap (T &m, Func &clearFunc)
 
template<class T , class Func >
void clearList (T &m, Func &clearFunc)
 

Variables

static const Data PEM (".pem")
 
static const Data rootCert ("root_cert_")
 
static const Data domainCert ("domain_cert_")
 
static const Data domainKey ("domain_key_")
 
static const Data userCert ("user_cert_")
 
static const Data userKey ("user_key_")
 
static const Data unknownKey ("user_key_")
 

Macro Definition Documentation

◆ RESIPROCATE_SUBSYSTEM

#define RESIPROCATE_SUBSYSTEM   Subsystem::SIP

Definition at line 63 of file Security.cxx.

Function Documentation

◆ clearList()

template<class T , class Func >
void clearList ( T &  m,
Func &  clearFunc 
)

Definition at line 1240 of file Security.cxx.

◆ clearMap()

template<class T , class Func >
void clearMap ( T &  m,
Func &  clearFunc 
)

Definition at line 1230 of file Security.cxx.

◆ getAor()

static Data getAor ( const Data &  filename,
const Security::PEMType &  pemType 
)
static

Definition at line 94 of file Security.cxx.

◆ pem_passwd_cb()

int pem_passwd_cb ( char *  buf,
int  size,
int  rwflag,
void *  password 
)

Definition at line 393 of file Security.cxx.

◆ pemTypePrefixes()

static const Data pemTypePrefixes ( Security::PEMType  pType)
static

Definition at line 75 of file Security.cxx.

◆ verifyCallback()

static int verifyCallback ( int  preverifyOk,
X509_STORE_CTX *  storeCtx 
)
static

Definition at line 111 of file Security.cxx.

Variable Documentation

◆ domainCert

const Data domainCert("domain_cert_") ( "domain_cert_"  )
static

◆ domainKey

const Data domainKey("domain_key_") ( "domain_key_"  )
static

◆ PEM

const Data PEM(".pem") ( ".pem"  )
static

◆ rootCert

const Data rootCert("root_cert_") ( "root_cert_"  )
static

◆ unknownKey

const Data unknownKey("user_key_") ( "user_key_"  )
static

◆ userCert

const Data userCert("user_cert_") ( "user_cert_"  )
static

◆ userKey

const Data userKey("user_key_") ( "user_key_"  )
static