VMime
|
Public Types | |
enum | GenericCipherSuite { CIPHERSUITE_HIGH, CIPHERSUITE_MEDIUM, CIPHERSUITE_LOW, CIPHERSUITE_DEFAULT } |
Public Member Functions | |
TLSProperties () | |
TLSProperties (const TLSProperties &) | |
void | setCipherSuite (const GenericCipherSuite cipherSuite) |
void | setCipherSuite (const string &cipherSuite) |
const string | getCipherSuite () const |
Additional Inherited Members | |
![]() | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
Holds options for a TLS session.
enum GenericCipherSuite |
Predefined generic cipher suites (work with all TLS libraries).
TLSProperties | ( | ) |
TLSProperties | ( | const TLSProperties & | ) |
const string getCipherSuite | ( | ) | const |
Returns the cipher suite preferences for a SSL/TLS session, as a character string.
The format and meaning of the string depend on the underlying TLS library (see setCipherSuite() method).
void setCipherSuite | ( | const GenericCipherSuite | cipherSuite | ) |
Sets the cipher suite preferences for a SSL/TLS session, using predefined, generic suites.
This works with all underlying TLS libraries (OpenSSL and GNU TLS).
cipherSuite | predefined cipher suite |
void setCipherSuite | ( | const string & | cipherSuite | ) |
Sets the cipher suite preferences for a SSL/TLS session, using a character string.
The format and meaning of the string depend on the underlying TLS library.
For GNU TLS, read this: http://gnutls.org/manual/html_node/Priority-Strings.html
For OpenSSL, read this: http://www.openssl.org/docs/apps/ciphers.html#CIPHER_STRINGS
cipherSuite | cipher suite as a string |