Hands-On-Network-Programming-with-C
                                
                                 Hands-On-Network-Programming-with-C copied to clipboard
                                
                                    Hands-On-Network-Programming-with-C copied to clipboard
                            
                            
                            
                        Use separate checks to provide correct error message
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.