about summary refs log tree commit diff
diff options
context:
space:
mode:
authorC. McEnroe <june@causal.agency>2021-04-18 18:06:43 -0400
committerC. McEnroe <june@causal.agency>2021-04-18 18:06:43 -0400
commit15afbfa70cb6102c3c7ef0cecc6e83cb1730909b (patch)
treeb30d471781cb969b00beacb4097d8196aa933841
parentMerge LibreSSL 3.3.2 into master (diff)
tls: Use EC_KEY_set_ex_data
-rw-r--r--tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tls.c b/tls.c
index 91f20cf..261d27f 100644
--- a/tls.c
+++ b/tls.c
@@ -471,7 +471,7 @@ tls_keypair_setup_pkey(struct tls *ctx, struct tls_keypair *keypair, EVP_PKEY *p
 		break;
 	case EVP_PKEY_EC:
 		if ((eckey = EVP_PKEY_get1_EC_KEY(pkey)) == NULL ||
-		    ECDSA_set_ex_data(eckey, 0, keypair->pubkey_hash) == 0) {
+		    EC_KEY_set_ex_data(eckey, 0, keypair->pubkey_hash) == 0) {
 			tls_set_errorx(ctx, "EC key setup failure");
 			goto err;
 		}