diff options
author | jsing <> | 2018-02-08 10:19:57 +0000 |
---|---|---|
committer | jsing <> | 2018-02-08 10:19:57 +0000 |
commit | b887e277164c221b3385ae6f15eabe4c6a356c04 (patch) | |
tree | dba45337f688267b2f30d743ea495063078ea8d1 | |
parent | ba784f0df690dc69577e1ee14a448cda91b89262 (diff) | |
download | openbsd-b887e277164c221b3385ae6f15eabe4c6a356c04.tar.gz openbsd-b887e277164c221b3385ae6f15eabe4c6a356c04.tar.bz2 openbsd-b887e277164c221b3385ae6f15eabe4c6a356c04.zip |
Update regress to match change to tls_keypair_pubkey_hash().
-rw-r--r-- | src/regress/lib/libtls/keypair/keypairtest.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regress/lib/libtls/keypair/keypairtest.c b/src/regress/lib/libtls/keypair/keypairtest.c index 147d088c15..8a7774ff2c 100644 --- a/src/regress/lib/libtls/keypair/keypairtest.c +++ b/src/regress/lib/libtls/keypair/keypairtest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: keypairtest.c,v 1.1 2018/02/08 10:06:52 jsing Exp $ */ | 1 | /* $OpenBSD: keypairtest.c,v 1.2 2018/02/08 10:19:57 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -170,8 +170,9 @@ do_keypair_tests(void) | |||
170 | kp->ocsp_staple, kp->ocsp_staple_len) == -1) | 170 | kp->ocsp_staple, kp->ocsp_staple_len) == -1) |
171 | goto done; | 171 | goto done; |
172 | 172 | ||
173 | if (tls_keypair_pubkey_hash(kp, &hash) == -1) { | 173 | if (tls_keypair_pubkey_hash(kp, &err, &hash) == -1) { |
174 | fprintf(stderr, "FAIL: failed to generate keypair hash\n"); | 174 | fprintf(stderr, "FAIL: failed to generate keypair hash: %s\n", |
175 | err.msg); | ||
175 | goto done; | 176 | goto done; |
176 | } | 177 | } |
177 | if (strcmp(hash, PUBKEY_HASH) != 0) { | 178 | if (strcmp(hash, PUBKEY_HASH) != 0) { |