Enhance ssltestlib's create_ssl_ctx_pair to take min and max proto version
[openssl.git] / test / fatalerrtest.c
index 85b11c84aa313e281b99a82c4c5fc98600b1a8e9..d3a23e5f3dc0564f8e5310046dff895b92889df6 100644 (file)
@@ -28,8 +28,9 @@ static int test_fatalerr(void)
         0x17, 0x03, 0x03, 0x00, 0x05, 'D', 'u', 'm', 'm', 'y'
     };
 
-    if (!TEST_true(create_ssl_ctx_pair(TLS_method(), TLS_method(), &sctx, &cctx,
-                                       cert, privkey)))
+    if (!TEST_true(create_ssl_ctx_pair(TLS_method(), TLS_method(),
+                                       TLS1_VERSION, TLS_MAX_VERSION,
+                                       &sctx, &cctx, cert, privkey)))
         goto err;
 
     /*