diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_pmeth.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_pmeth.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec_pmeth.c b/src/lib/libcrypto/ec/ec_pmeth.c index 08050df292..c57d26ae29 100644 --- a/src/lib/libcrypto/ec/ec_pmeth.c +++ b/src/lib/libcrypto/ec/ec_pmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_pmeth.c,v 1.11 2019/09/06 17:59:25 jsing Exp $ */ | 1 | /* $OpenBSD: ec_pmeth.c,v 1.12 2019/09/09 18:06:25 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -392,6 +392,10 @@ pkey_ec_ctrl(EVP_PKEY_CTX * ctx, int type, int p1, void *p2) | |||
392 | dctx->md = p2; | 392 | dctx->md = p2; |
393 | return 1; | 393 | return 1; |
394 | 394 | ||
395 | case EVP_PKEY_CTRL_GET_MD: | ||
396 | *(const EVP_MD **)p2 = dctx->md; | ||
397 | return 1; | ||
398 | |||
395 | case EVP_PKEY_CTRL_PEER_KEY: | 399 | case EVP_PKEY_CTRL_PEER_KEY: |
396 | /* Default behaviour is OK */ | 400 | /* Default behaviour is OK */ |
397 | case EVP_PKEY_CTRL_DIGESTINIT: | 401 | case EVP_PKEY_CTRL_DIGESTINIT: |