sends::ssl_ctx Class Reference
[Sends Data Classes]

OpenSSL context wrapper. More...

#include <sslbase.hh>

List of all members.

Public Member Functions

 ssl_ctx (void)
 Constructor.
virtual ~ssl_ctx (void)
 Destructor.
void secure (const std::string &certpath, const std::string &keypath, const std::string &pass)
 Secure context.
bio_st * new_ssl (void)
 Construct a bio.
ssl_ctx_st & ref_ctx (void)
 Reference the context.

Static Public Member Functions

static void error (const std::string &err)
 Throw an SSL error exception.
Exceptions:
runtime_error with specified text.


Detailed Description

OpenSSL context wrapper.

OpenSSL context wrapper.

Author:
John Zweizig
Version:
1.0; Last modified January 23, 2008

Constructor & Destructor Documentation

sends::ssl_ctx::ssl_ctx ( void   ) 

Constructor.

Construct a new OpenSSL context.

virtual sends::ssl_ctx::~ssl_ctx ( void   )  [virtual]

Destructor.

Release and free an OpenSSL context.


Member Function Documentation

static void sends::ssl_ctx::error ( const std::string &  err  )  [static]

Throw an SSL error exception.

Exceptions:
runtime_error with specified text.

Throw an exception with the specified text and the OpenSSL error text for the most recent error.

Parameters:
err Caller specified message text.

void sends::ssl_ctx::secure ( const std::string &  certpath,
const std::string &  keypath,
const std::string &  pass 
)

Secure context.

Secure the context with the specified certificate and key.

Parameters:
certpath Path to certificate file.
keypath Path to private key file.
pass Password to decrypt private key.

bio_st* sends::ssl_ctx::new_ssl ( void   ) 

Construct a bio.

Construct a new OpenSSL Bio structure.

Returns:
Pointer to the new Boi structure.

ssl_ctx_st & sends::ssl_ctx::ref_ctx ( void   )  [inline]

Reference the context.

Return a reference to the wrapped context structure.

Returns:
Reference to the OpenSSL context structure.


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

Generated on Tue Jun 10 12:18:12 2008 for SENDS by  doxygen 1.5.5