From: jsing Date: Thu, 8 Feb 2018 10:19:57 +0000 (+0000) Subject: Update regress to match change to tls_keypair_pubkey_hash(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=55ce8ac0d74b23a0152d2c89a3f74a1c019acb28;p=openbsd Update regress to match change to tls_keypair_pubkey_hash(). --- diff --git a/regress/lib/libtls/keypair/keypairtest.c b/regress/lib/libtls/keypair/keypairtest.c index 147d088c159..8a7774ff2ca 100644 --- a/regress/lib/libtls/keypair/keypairtest.c +++ b/regress/lib/libtls/keypair/keypairtest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keypairtest.c,v 1.1 2018/02/08 10:06:52 jsing Exp $ */ +/* $OpenBSD: keypairtest.c,v 1.2 2018/02/08 10:19:57 jsing Exp $ */ /* * Copyright (c) 2018 Joel Sing * @@ -170,8 +170,9 @@ do_keypair_tests(void) kp->ocsp_staple, kp->ocsp_staple_len) == -1) goto done; - if (tls_keypair_pubkey_hash(kp, &hash) == -1) { - fprintf(stderr, "FAIL: failed to generate keypair hash\n"); + if (tls_keypair_pubkey_hash(kp, &err, &hash) == -1) { + fprintf(stderr, "FAIL: failed to generate keypair hash: %s\n", + err.msg); goto done; } if (strcmp(hash, PUBKEY_HASH) != 0) {