diff options
author | tb <> | 2024-08-03 13:06:37 +0000 |
---|---|---|
committer | tb <> | 2024-08-03 13:06:37 +0000 |
commit | 1d036e912dcd1bbc2e9e47d83f3aeb7cd8c6f3bd (patch) | |
tree | 4275dde97ca09a9c065fe9b9dc72895f02f4ce62 /src | |
parent | c289c992cc6b851c0a1c18cad38ea1ec7f165d17 (diff) | |
download | openbsd-1d036e912dcd1bbc2e9e47d83f3aeb7cd8c6f3bd.tar.gz openbsd-1d036e912dcd1bbc2e9e47d83f3aeb7cd8c6f3bd.tar.bz2 openbsd-1d036e912dcd1bbc2e9e47d83f3aeb7cd8c6f3bd.zip |
The EC_KEY method should use the EC_KEY index, not RSA
Unbreaks ssh's t-agent-pkcs11-cert regress reported by anton.
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/ec/ec_kmeth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_kmeth.c b/src/lib/libcrypto/ec/ec_kmeth.c index 856afc89dc..fa79b9a29f 100644 --- a/src/lib/libcrypto/ec/ec_kmeth.c +++ b/src/lib/libcrypto/ec/ec_kmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_kmeth.c,v 1.13 2023/11/19 15:46:09 tb Exp $ */ | 1 | /* $OpenBSD: ec_kmeth.c,v 1.14 2024/08/03 13:06:37 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -149,7 +149,7 @@ EC_KEY_new_method(ENGINE *engine) | |||
149 | ret->conv_form = POINT_CONVERSION_UNCOMPRESSED; | 149 | ret->conv_form = POINT_CONVERSION_UNCOMPRESSED; |
150 | ret->references = 1; | 150 | ret->references = 1; |
151 | 151 | ||
152 | if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_RSA, ret, &ret->ex_data)) | 152 | if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_EC_KEY, ret, &ret->ex_data)) |
153 | goto err; | 153 | goto err; |
154 | if (ret->meth->init != NULL && ret->meth->init(ret) == 0) | 154 | if (ret->meth->init != NULL && ret->meth->init(ret) == 0) |
155 | goto err; | 155 | goto err; |