浏览代码

Merge pull request #7467 from anhu/quick_fix

Get rid of some code with NO_OLD_TLS
Sean Parkinson 6 月之前
父节点
当前提交
039fd26baf
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      src/ssl.c
  2. 2 0
      tests/api.c

+ 2 - 0
src/ssl.c

@@ -8957,6 +8957,7 @@ int wolfSSL_DTLS_SetCookieSecret(WOLFSSL* ssl,
         return m;
     }
 
+    #ifndef NO_OLD_TLS
     #ifdef WOLFSSL_ALLOW_SSLV3
     WOLFSSL_METHOD* wolfSSLv3_method(void)
     {
@@ -8978,6 +8979,7 @@ int wolfSSL_DTLS_SetCookieSecret(WOLFSSL* ssl,
         return m;
     }
     #endif
+    #endif
 #endif /* OPENSSL_EXTRA || WOLFSSL_EITHER_SIDE */
 
 /* client only parts */

+ 2 - 0
tests/api.c

@@ -64474,6 +64474,7 @@ static int test_wolfSSL_CTX_get_min_proto_version(void)
     wolfSSL_CTX_free(ctx);
     ctx = NULL;
 
+    #ifndef NO_OLD_TLS
     #ifdef WOLFSSL_ALLOW_TLSV10
         ExpectNotNull(ctx = wolfSSL_CTX_new(wolfTLSv1_method()));
     #else
@@ -64488,6 +64489,7 @@ static int test_wolfSSL_CTX_get_min_proto_version(void)
     #endif
     wolfSSL_CTX_free(ctx);
     ctx = NULL;
+    #endif
 
     ExpectNotNull(ctx = wolfSSL_CTX_new(wolfSSLv23_method()));
     ExpectIntEQ(wolfSSL_CTX_set_min_proto_version(ctx, TLS1_1_VERSION),