Have compiled with OpenSSL 1.0.2s result in error, replaced with the sample code from OpenSSL site.
|
SSL_CTX *ctx = SSL_CTX_new(TLS_server_method()); |
Replace with working code:
SSL_CTX *ctx = SSL_CTX_new(SSLv23_server_method());
https://wiki.openssl.org/index.php/Simple_TLS_Server