diff options
| author | jsing <> | 2019-09-09 18:06:26 +0000 |
|---|---|---|
| committer | jsing <> | 2019-09-09 18:06:26 +0000 |
| commit | 18a2a567e136745ffdad4c3346ee0b435f927909 (patch) | |
| tree | a865a7b163451c6d2c4ef5b36642f1deb36a91b9 /src/lib/libcrypto/ec/ec_pmeth.c | |
| parent | c146bc97665a82b9895f2ad378d2f00bb0978c03 (diff) | |
| download | openbsd-18a2a567e136745ffdad4c3346ee0b435f927909.tar.gz openbsd-18a2a567e136745ffdad4c3346ee0b435f927909.tar.bz2 openbsd-18a2a567e136745ffdad4c3346ee0b435f927909.zip | |
Provide EVP_PKEY_CTX_get_signature_md() macro and implement the
EVP_PKEY_CTRL_GET_MD control for DSA, EC and RSA.
This is used by the upcoming RSA CMS code.
ok inoguchi@ tb@
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: |
