소스 검색

Don't use SSLv2 when compiling against GnuTLS

GnuTLS doesn't support SSL version 2.
Holger Weiss 13 년 전
부모
커밋
3fd1bd97ca
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      plugins/sslutils.c

+ 2 - 2
plugins/sslutils.c

@@ -55,8 +55,8 @@ int np_net_ssl_init_with_hostname_and_version (int sd, char *host_name, int vers
 			method = TLSv1_client_method();
 			method = TLSv1_client_method();
 			break;
 			break;
 		case 2: /* SSLv2 protocol */
 		case 2: /* SSLv2 protocol */
-#ifdef OPENSSL_NO_SSL2
-			printf (("%s\n", _("CRITICAL - SSL Protocol Version 2 is not supported by your build of OpenSSL.")));
+#if defined(USE_GNUTLS) || defined(OPENSSL_NO_SSL2)
+			printf (("%s\n", _("CRITICAL - SSL Protocol Version 2 is not supported by your SSL library.")));
 			return STATE_CRITICAL;
 			return STATE_CRITICAL;
 #else
 #else
 			method = SSLv2_client_method();
 			method = SSLv2_client_method();