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

Some errors with OpenSSL on macOS High Sierra

Closed this issue · 1 comments

I couldn't successfully compile with various errors on OpenSSL using 1.0.2s installed from brew.

printf("OpenSSL version: %s\n", OpenSSL_version(SSLEAY_VERSION));

The working code

printf("OpenSSL version: %s\n", SSLeay_version(SSLEAY_VERSION));

The code is not designed to support your OpenSSL version, but if you read the book it would help you out a lot. This change is mentioned specifically in the book. Here's an except:

openssl