summaryrefslogtreecommitdiffstats
path: root/test/danetest.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-03-08 01:09:44 +0100
committerRichard Levitte <levitte@openssl.org>2019-11-03 18:38:23 +0100
commit573e4bf0ba3daa9735b6f689407caa9d39ac4d0c (patch)
tree5231d84bf52043454b3287eedfa645b26995cd12 /test/danetest.c
parentf4aa6222bbd5955b37246155bc38ab1af94189b0 (diff)
Adapt two test programs that were using now deprecated functions
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8442)
Diffstat (limited to 'test/danetest.c')
-rw-r--r--test/danetest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/danetest.c b/test/danetest.c
index 26745f908e..2c228ecc52 100644
--- a/test/danetest.c
+++ b/test/danetest.c
@@ -393,7 +393,7 @@ static int run_tlsatest(void)
if (!TEST_ptr(f = BIO_new_file(tlsafile, "r"))
|| !TEST_ptr(ctx = SSL_CTX_new(TLS_client_method()))
|| !TEST_int_gt(SSL_CTX_dane_enable(ctx), 0)
- || !TEST_true(SSL_CTX_load_verify_locations(ctx, CAfile, NULL))
+ || !TEST_true(SSL_CTX_load_verify_file(ctx, CAfile))
|| !TEST_int_gt(SSL_CTX_dane_mtype_set(ctx, EVP_sha512(), 2, 1),
0)
|| !TEST_int_gt(SSL_CTX_dane_mtype_set(ctx, EVP_sha256(), 1, 2),