diff --git a/src/server/main.cc b/src/server/main.cc index 95a43e6..f3031da 100644 --- a/src/server/main.cc +++ b/src/server/main.cc @@ -49,9 +49,14 @@ int main() { OPENSSL_init_ssl(0, nullptr); } + // Create new SSL context with server side connections and save it to a + // pointer SSL_CTX *ctx = SSL_CTX_new(TLS_server_method()); + + // Check of the context is null + // If it's null, then an error occurred if (!ctx) { - cout << "Creation of SSL context failed" << endl; + cout << "Creation of SSL context failed: " << getCtxError() << endl; } // Load certificate