diff --git a/src/server/main.cc b/src/server/main.cc index f3031da..cb9f775 100644 --- a/src/server/main.cc +++ b/src/server/main.cc @@ -59,13 +59,15 @@ int main() { cout << "Creation of SSL context failed: " << getCtxError() << endl; } - // Load certificate + // Load certificate into the context + // Returns 1 on success, otherwise check error stack if (SSL_CTX_use_certificate_file(ctx, "./ssl/server.crt", SSL_FILETYPE_PEM) <= 0) { cout << "Certificate load failed: " << getCtxError() << endl; } - // Load certificate private key + // Load certificate private key into the context + // Returns 1 on success, otherwise check error stack if (SSL_CTX_use_PrivateKey_file(ctx, "./ssl/server.key", SSL_FILETYPE_PEM) <= 0) { cout << "Private key load failed: " << getCtxError() << endl;