codeplea/Hands-On-Network-Programming-with-C

TLS_server_method error

Closed this issue · 1 comments

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

You should really use a newer version of OpenSSL.

Also, this code is designed to accompany the book. The book would have saved you a lot of hassle. Here's a small except from the book regarding this issue.

chap10