ECDH test is only one operation to run
[openssl.git] / test / sslapitest.c
index 5fdbe2a03dea82eb78dbf4e9f8ce0880a3768466..cb8621737b49dbbc0194a3759d0baeea029f12a2 100644 (file)
@@ -352,7 +352,7 @@ static int test_ssl_set_bio(int idx)
     SSL_CTX *ctx = SSL_CTX_new(TLS_method());
     BIO *bio1 = NULL;
     BIO *bio2 = NULL;
-    BIO *irbio, *iwbio, *nrbio, *nwbio;
+    BIO *irbio = NULL, *iwbio = NULL, *nrbio = NULL, *nwbio = NULL;
     SSL *ssl = NULL;
     int initrbio, initwbio, newrbio, newwbio;
     int testresult = 0;
@@ -503,9 +503,9 @@ static int execute_test_ssl_bio(SSL_BIO_TEST_FIXTURE fix)
             goto end;
         }
         if (fix.change_bio == CHANGE_RBIO)
-            SSL_set_rbio(ssl, membio2);
+            SSL_set0_rbio(ssl, membio2);
         else
-            SSL_set_wbio(ssl, membio2);
+            SSL_set0_wbio(ssl, membio2);
     }
     ssl = NULL;