namespace Akenti class OpenSSLContextImpl : public SSLContextImpl

A subclass of SSLContextImpl and a wrapper for SSL_CTX

Inheritance:


Public Methods

OpenSSLContextImpl (Version version, bool isClient)
Constructor - normally only called by the security provider
~OpenSSLContextImpl ()
Destructor
void setCertificateFile (const string& certFile, FileType type)
Initialize the name of the file that contains the principal's identity certificate
void setPrivateKeyFile (const string& keyFile, FileType type)
Initialize the name of the file that contains the pricipal's private key

Protected Methods

void doSetVerify (int verify)
Calls SSL_CTX_set_verify(ctx, verify, NULL)
void doSetCAFile (const string& name)
Calls SSL_CTX_load_verify_locations(ctx, name

Inherited from SSLContextImpl:

Public Methods

Version getVersion() const
bool isClientContext()
void setVerify(int verify)
void setCAFile(const string& path, const string& name)
virtual string paramString() const

Documentation

A subclass of SSLContextImpl and a wrapper for SSL_CTX. A security context contains various parameters needed by the openssl libraries. It is kept as part of a SecureSocketImpl. The OpenSSLProviderImpl will supply a new OpenSSLContextImpl.
OpenSSLContextImpl(Version version, bool isClient)
Constructor - normally only called by the security provider.
Parameters:
Version - version the version of openSSL that is supported. currently it must be TLS1.
bool - isClient true if this context is going to be for a client socket, otherwise false @throw Error ssl2 not supported @throw Error ssl3 not supported @throw Error bad alloc if the SSL_CTX can not be created.

~OpenSSLContextImpl()
Destructor

void setCertificateFile(const string& certFile, FileType type)
Initialize the name of the file that contains the principal's identity certificate.
Parameters:
string - certFile the absolute pathname of a file containing the principal's (for this socket) x509 identity certificate.
FileType - type either PEM or ASN1
See Also:
SSLConstants.

void setPrivateKeyFile(const string& keyFile, FileType type)
Initialize the name of the file that contains the pricipal's private key.
Parameters:
string - keyFile the absolute pathname of a file containing the principal's (for this socket) private key.
FileType - type either PEM or ASN1
See Also:
SSLConstants.

void doSetVerify(int verify)
Calls SSL_CTX_set_verify(ctx, verify, NULL)

void doSetCAFile(const string& name)
Calls SSL_CTX_load_verify_locations(ctx, name.c_str(), NULL)


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de