diff options
author | Richard Levitte <levitte@openssl.org> | 2019-12-18 13:20:55 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-01-09 15:01:16 +0100 |
commit | e62a45b60e3166d995eb83840f437debf575c328 (patch) | |
tree | 593daef7330874e6f5d7f75257957b34aada905e /crypto/evp/keymgmt_meth.c | |
parent | cc4ff1061efd95f1560289f1bb726975cb7b83fc (diff) |
CORE & EVP: Specify OP_query_operation_name() for KEYMGMT
This will allow keymgmt implementation for key types that need it to
specify the names of the diverse operation algorithms it can be used
with. Currently, only one name per key type and operation is allowed.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10647)
Diffstat (limited to 'crypto/evp/keymgmt_meth.c')
-rw-r--r-- | crypto/evp/keymgmt_meth.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/evp/keymgmt_meth.c b/crypto/evp/keymgmt_meth.c index 8091bcadb8..6318ddd3fb 100644 --- a/crypto/evp/keymgmt_meth.c +++ b/crypto/evp/keymgmt_meth.c @@ -118,6 +118,12 @@ static void *keymgmt_from_dispatch(int name_id, keymgmt->exportkey_types = OSSL_get_OP_keymgmt_exportkey_types(fns); break; + case OSSL_FUNC_KEYMGMT_QUERY_OPERATION_NAME: + if (keymgmt->query_operation_name != NULL) + break; + keymgmt->query_operation_name = + OSSL_get_OP_keymgmt_query_operation_name(fns); + break; } } /* |