Hands-On-Network-Programming-with-C icon indicating copy to clipboard operation
Hands-On-Network-Programming-with-C copied to clipboard

Use separate checks to provide correct error message

Open Filkolev opened this issue 10 months ago • 0 comments

Combining the checks for SSL_CTX_use_certificate_file() and SSL_CTX_use_PrivateKey_file() leads to the case where if the second function fails we print a message pointing to the first one, which is misleading. Check the function calls separately.

Filkolev avatar Dec 03 '24 03:12 Filkolev