19 #include "openssl/ssl.h" 44 const char* publicCertificatePath =
NULL,
46 const char* privateKeyPath =
NULL 89 const char* callerMsg,
97 const char* callerMsg,
113 static bool sInitialized;
118 static int verifyCallback(
int valid,
119 X509_STORE_CTX* store
142 static OsBSem* spSslLock;
143 static OsSSL* spSharedSSL;
enum tagOsSysLogFacility OsSysLogFacility
enumcode: FAC_PERF - performance related enumcode: FAC_KERNEL - kernel/os related enumcode: FAC_AUTH ...
Definition: OsSysLogFacilities.h:140
void releaseConnection(SSL *&connection)
Release an SSL session handle.
SSL * getServerConnection()
Get an SSL server connection handle.
Wrapper for the OpenSSL SSL_CTX context structure. This class is responsible for all global policy in...
Definition: OsSSL.h:35
#define NULL
Definition: UtlDefs.h:29
Definition: UtlString.h:48
enum tagOsSysLogPriority OsSysLogPriority
Definition: UtlSList.h:47
static void logError(const OsSysLogFacility facility, const OsSysLogPriority priority, const char *callerMsg, int errCode)
Log an error resulting from an SSL call, with the SSL error text expanded.
static void logConnectParams(const OsSysLogFacility facility, const OsSysLogPriority priority, const char *callerMsg, SSL *connection)
Log SSL connection information.
SSL * getClientConnection()
Get an SSL client connection handle.
OsSSL(const char *authorityPath=NULL, const char *publicCertificatePath=NULL, const char *privateKeyPath=NULL)
Construct an SSL Context from which connections are created.
static bool peerIdentity(SSL *connection, UtlSList *altNames, UtlString *commonName)
Get the validated names for the connection peer.
A singleton wrapper for OsSSL.
Definition: OsSSL.h:134
void dumpCipherList()
Debug: print out list of ciphers enabled.