aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/socket.c b/socket.c
index 0187b9ec..f6a3b19c 100644
--- a/socket.c
+++ b/socket.c
@@ -1064,7 +1064,11 @@ int SSLOpen(int sock, char *mycert, char *mykey, const char *myproto, int certck
_ctx[sock] = SSL_CTX_new(SSLv23_client_method());
}
if(_ctx[sock] == NULL) {
+ unsigned long ec = ERR_peek_last_error();
ERR_print_errors_fp(stderr);
+ if (ERR_GET_REASON(ec) == SSL_R_NULL_SSL_METHOD_PASSED) {
+ report(stderr, GT_("Note that some distributions disable older protocol versions in weird non-standard ways. Try a newer protocol version.\n"));
+ }
return(-1);
}