The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

m_ssl_openssl.cpp File Reference

#include "inspircd.h"
#include <openssl/ssl.h>
#include <openssl/err.h>
#include "transport.h"

Include dependency graph for m_ssl_openssl.cpp:

Go to the source code of this file.

Classes

class  issl_session
 Represents an SSL user's extra data. More...
class  ModuleSSLOpenSSL

Enumerations

enum  issl_status { ISSL_NONE, ISSL_HANDSHAKING, ISSL_OPEN }
enum  issl_io_status { ISSL_WRITE, ISSL_READ }

Functions

bool isin (const std::string &host, int port, const std::vector< std::string > &portlist)
char * get_error ()
static int error_callback (const char *str, size_t len, void *u)
static int OnVerify (int preverify_ok, X509_STORE_CTX *ctx)

Variables

static bool SelfSigned = false


Enumeration Type Documentation

enum issl_io_status
 

Enumerator:
ISSL_WRITE 
ISSL_READ 

Definition at line 39 of file m_ssl_openssl.cpp.

enum issl_status
 

Enumerator:
ISSL_NONE 
ISSL_HANDSHAKING 
ISSL_OPEN 

Definition at line 38 of file m_ssl_openssl.cpp.


Function Documentation

static int error_callback const char *  str,
size_t  len,
void *  u
[static]
 

Definition at line 890 of file m_ssl_openssl.cpp.

References DEFAULT, LogManager::Log(), InspIRCd::Logs, and ModuleSSLOpenSSL::PublicInstance.

Referenced by ModuleSSLOpenSSL::OnRehash().

char* get_error  ) 
 

Definition at line 54 of file m_ssl_openssl.cpp.

Referenced by ModuleSSLOpenSSL::VerifyCertificate().

bool isin const std::string host,
int  port,
const std::vector< std::string > &  portlist
 

Definition at line 43 of file m_ssl_openssl.cpp.

References ConvToStr().

static int OnVerify int  preverify_ok,
X509_STORE_CTX *  ctx
[static]
 

Definition at line 85 of file m_ssl_openssl.cpp.

References SelfSigned.

Referenced by ModuleSSLOpenSSL::ModuleSSLOpenSSL().


Variable Documentation

bool SelfSigned = false [static]
 

Definition at line 41 of file m_ssl_openssl.cpp.

Referenced by OnVerify(), and ModuleSSLOpenSSL::VerifyCertificate().