summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-06-18 17:24:09 +0000
committertb <>2023-06-18 17:24:09 +0000
commit90d71a9e40be2f46f642829af37b1bd2b6d292f3 (patch)
tree5d2ac1ec1b4cb0eb33637feee2ecd768eb3fd1ac
parent727678bac9040805562e79cfeca4ee4b953bd557 (diff)
downloadopenbsd-90d71a9e40be2f46f642829af37b1bd2b6d292f3.tar.gz
openbsd-90d71a9e40be2f46f642829af37b1bd2b6d292f3.tar.bz2
openbsd-90d71a9e40be2f46f642829af37b1bd2b6d292f3.zip
Switch tls_ecdsa_do_sign() to EC_KEY_get_ex_data()
Since libtls now sets the ex_data with EC_KEY_set_ex_data(), the do_sign() callback needs to have a matching change. ok jsing op
-rw-r--r--src/lib/libtls/tls_signer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libtls/tls_signer.c b/src/lib/libtls/tls_signer.c
index 372fa77819..c1b60bfcc4 100644
--- a/src/lib/libtls/tls_signer.c
+++ b/src/lib/libtls/tls_signer.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_signer.c,v 1.6 2023/06/18 11:43:03 op Exp $ */ 1/* $OpenBSD: tls_signer.c,v 1.7 2023/06/18 17:24:09 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2021 Eric Faurot <eric@openbsd.org> 3 * Copyright (c) 2021 Eric Faurot <eric@openbsd.org>
4 * 4 *
@@ -392,8 +392,8 @@ tls_ecdsa_do_sign(const unsigned char *dgst, int dgst_len, const BIGNUM *inv,
392 * to its calling convention/signature. 392 * to its calling convention/signature.
393 */ 393 */
394 394
395 pubkey_hash = ECDSA_get_ex_data(eckey, 0); 395 pubkey_hash = EC_KEY_get_ex_data(eckey, 0);
396 config = ECDSA_get_ex_data(eckey, 1); 396 config = EC_KEY_get_ex_data(eckey, 1);
397 397
398 if (pubkey_hash == NULL || config == NULL) 398 if (pubkey_hash == NULL || config == NULL)
399 goto err; 399 goto err;