diff options
author | Richard Levitte <levitte@openssl.org> | 2020-02-05 12:53:14 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-03-02 03:27:03 +0100 |
commit | bee5d6cd3fa2f8bcc7e1153e4dc26aa26144bee0 (patch) | |
tree | 433108cf9e3f133fbc3423be1e10cf03b35f378f /doc/man7 | |
parent | 157ded39ee68c1c00814165f79f9b2f000996884 (diff) | |
download | openssl-bee5d6cd3fa2f8bcc7e1153e4dc26aa26144bee0.tar.gz |
KEYMGMT: Add a keydata matching function
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11158)
Diffstat (limited to 'doc/man7')
-rw-r--r-- | doc/man7/provider-keymgmt.pod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/man7/provider-keymgmt.pod b/doc/man7/provider-keymgmt.pod index 5141ffdebc..e51ef74099 100644 --- a/doc/man7/provider-keymgmt.pod +++ b/doc/man7/provider-keymgmt.pod @@ -26,6 +26,8 @@ provider-keymgmt - The KEYMGMT library E<lt>-E<gt> provider functions /* Key object content checks */ int OP_keymgmt_has(void *keydata, int selection); + int OP_keymgmt_match(const void *keydata1, const void *keydata2, + int selection); /* Discovery of supported operations */ const char *OP_keymgmt_query_operation_name(int operation_id); @@ -84,6 +86,7 @@ macros in L<openssl-core_numbers.h(7)>, as follows: OP_keymgmt_has OSSL_FUNC_KEYMGMT_HAS OP_keymgmt_validate OSSL_FUNC_KEYMGMT_VALIDATE + OP_keymgmt_match OSSL_FUNC_KEYMGMT_MATCH OP_keymgmt_import OSSL_FUNC_KEYMGMT_IMPORT OP_keymgmt_import_types OSSL_FUNC_KEYMGMT_IMPORT_TYPES @@ -239,6 +242,11 @@ B<OSSL_KEYMGMT_SELECT_PUBLIC_KEY> (or B<OSSL_KEYMGMT_SELECT_KEYPAIR> for short) is expected to check that the pairwise consistency of I<keydata> is valid. +OP_keymgmt_match() should check if the data subset indicated by +I<selection> in I<keydata1> and I<keydata2> match. It is assumed that +the caller has ensured that I<keydata1> and I<keydata2> are both owned +by the implementation of this function. + =head2 Key Object Import and Export Functions OP_keymgmt_import() should import data indicated by I<selection> into |