diff options
| author | tb <> | 2024-08-03 13:06:37 +0000 |
|---|---|---|
| committer | tb <> | 2024-08-03 13:06:37 +0000 |
| commit | c1b156d5f3734c86d3b609cb29946f22a082195a (patch) | |
| tree | 4275dde97ca09a9c065fe9b9dc72895f02f4ce62 /src | |
| parent | 2b41f5780c5f133132d9403d020e195c9ad4919d (diff) | |
| download | openbsd-c1b156d5f3734c86d3b609cb29946f22a082195a.tar.gz openbsd-c1b156d5f3734c86d3b609cb29946f22a082195a.tar.bz2 openbsd-c1b156d5f3734c86d3b609cb29946f22a082195a.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; |
