diff --git a/src/ssl/test/handshaker.cc b/src/ssl/test/handshaker.cc index ac890633d..72aaaa800 100644 --- a/src/ssl/test/handshaker.cc +++ b/src/ssl/test/handshaker.cc @@ -61,6 +61,8 @@ bool Handshaker(const TestConfig *config, int rfd, int wfd, UniquePtr ssl = config->NewSSL(ctx.get(), /*session=*/nullptr, /*test_state=*/nullptr); if (!ssl) { + fprintf(stderr, "Error creating SSL object in handshaker.\n"); + ERR_print_errors_fp(stderr); return false; } @@ -155,6 +157,8 @@ bool GenerateHandshakeHint(const TestConfig *config, config->NewSSL(ctx.get(), /*session=*/nullptr, std::unique_ptr(new TestState)); if (!ssl) { + fprintf(stderr, "Error creating SSL object in handshaker.\n"); + ERR_print_errors_fp(stderr); return false; }