From b53d36176029927e5c4b9394f50140cebf21d19f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 28 Nov 2002 10:32:38 +0000 Subject: Sunil's patch for the STARTTLS problem. svn path=/trunk/; revision=3772 --- socket.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'socket.c') diff --git a/socket.c b/socket.c index f1bea9f6..bef0deea 100644 --- a/socket.c +++ b/socket.c @@ -876,6 +876,8 @@ int SSLOpen(int sock, char *mycert, char *mykey, char *myproto, int certck, char _ctx = SSL_CTX_new(SSLv3_client_method()); } else if(!strcmp("tls1",myproto)) { _ctx = SSL_CTX_new(TLSv1_client_method()); + } else if (!strcmp("ssl23",myproto)) { + myproto = NULL; } else { fprintf(stderr,GT_("Invalid SSL protocol '%s' specified, using default (SSLv23).\n"), myproto); myproto = NULL; -- cgit v1.2.3