diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2018-04-07 16:42:18 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2018-04-07 16:42:18 +0000 |
commit | c04bbdd8ce4a038362be6b95b02fe74758e0552b (patch) | |
tree | dfe860bd35f95042eb73795c762e718d15226847 | |
parent | 929dfe256b5ad219bbdcbc607570769888b82670 (diff) |
Revise regress to match tls_keypair_clear() removal.
-rw-r--r-- | regress/lib/libtls/keypair/keypairtest.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/regress/lib/libtls/keypair/keypairtest.c b/regress/lib/libtls/keypair/keypairtest.c index 718dcac8d9e..732464af00e 100644 --- a/regress/lib/libtls/keypair/keypairtest.c +++ b/regress/lib/libtls/keypair/keypairtest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keypairtest.c,v 1.3 2018/02/14 15:59:50 jsing Exp $ */ +/* $OpenBSD: keypairtest.c,v 1.4 2018/04/07 16:42:17 jsing Exp $ */ /* * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> * @@ -130,28 +130,13 @@ do_keypair_tests(void) goto done; } - tls_keypair_clear(kp); + tls_keypair_clear_key(kp); - if (kp->cert_mem != NULL || kp->cert_len != 0) { - fprintf(stderr, "FAIL: cert not cleared (mem %p, len %zu)", - kp->cert_mem, kp->cert_len); - goto done; - } if (kp->key_mem != NULL || kp->key_len != 0) { fprintf(stderr, "FAIL: key not cleared (mem %p, len %zu)", kp->key_mem, kp->key_len); goto done; } - if (kp->ocsp_staple != NULL || kp->ocsp_staple_len != 0) { - fprintf(stderr, "FAIL: ocsp staple not cleared (mem %p, " - "len %zu)", kp->ocsp_staple, kp->ocsp_staple_len); - goto done; - } - if (kp->pubkey_hash != NULL) { - fprintf(stderr, "FAIL: pubkey hash not cleared (mem %p)\n", - kp->pubkey_hash); - goto done; - } if (tls_keypair_set_cert_mem(kp, &err, cert, cert_len) == -1) { fprintf(stderr, "FAIL: failed to load cert: %s\n", err.msg); @@ -186,7 +171,7 @@ do_keypair_tests(void) goto done; } - tls_keypair_clear(kp); + tls_keypair_clear_key(kp); if (kp->key_mem != NULL || kp->key_len != 0) { fprintf(stderr, "FAIL: key not cleared (mem %p, len %zu)", |