Go to the source code of this file.
Functions | |
void | ssl_init (void) |
void | ssl_cleanup (void) |
Cleanup resources allocated in ssl_init. More... | |
void | ssl_thread_init (void) |
Initialize an environment for OpenSSL threads. More... | |
void | ssl_thread_cleanup (void) |
Cleanup resources allocated in ssl_thread_init. More... |
|
Cleanup resources allocated in ssl_init.
Definition at line 119 of file sslutils.cpp. |
|
Initialize an environment for OpenSSL. You *must* call this before using SSL. Some of the functions that ssl_init() performs: 1. RAND_seed() sets random seed used by openssl. The size of random seed must* be greater than 20 bytes. If it is not set, OpenSSL uses /dev/random. Since Windows doesnt have this device, OpenSSL will fail to create a random seed. So, initializing random seed is recommended. 2. SSL_load_error_strings() and SSLeay_add_all_algorithms() - They *must* be called before using openssl.
Definition at line 103 of file sslutils.cpp. |
|
Cleanup resources allocated in ssl_thread_init.
Definition at line 40 of file sslutils.cpp. |
|
Initialize an environment for OpenSSL threads. You *must* call this at the begining if you use threads. ssl_thread_init() sets locking function and id function for multi-threading. Theses functions are described in the threads(3) manpage. Definition at line 19 of file sslutils.cpp. |