summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-06-18 17:24:10 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-06-18 17:24:10 +0000
commit5519f611fe9fad36a7025c1c0099cc9eedd47e3f (patch)
tree9e86b6b67c50d8f51b08746d54e66444807a8121
parentb6a3afe38aab2279b0224df5116bb455169fc958 (diff)
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--lib/libtls/tls_signer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libtls/tls_signer.c b/lib/libtls/tls_signer.c
index 372fa77819f..c1b60bfcc44 100644
--- a/lib/libtls/tls_signer.c
+++ b/lib/libtls/tls_signer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_signer.c,v 1.6 2023/06/18 11:43:03 op Exp $ */
+/* $OpenBSD: tls_signer.c,v 1.7 2023/06/18 17:24:09 tb Exp $ */
/*
* Copyright (c) 2021 Eric Faurot <eric@openbsd.org>
*
@@ -392,8 +392,8 @@ tls_ecdsa_do_sign(const unsigned char *dgst, int dgst_len, const BIGNUM *inv,
* to its calling convention/signature.
*/
- pubkey_hash = ECDSA_get_ex_data(eckey, 0);
- config = ECDSA_get_ex_data(eckey, 1);
+ pubkey_hash = EC_KEY_get_ex_data(eckey, 0);
+ config = EC_KEY_get_ex_data(eckey, 1);
if (pubkey_hash == NULL || config == NULL)
goto err;