diff options
author | Richard Levitte <levitte@openssl.org> | 2019-07-10 14:30:55 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-07-22 06:19:42 +0200 |
commit | 4cae07fef3b24bee1646f6085c52175ef3755d5b (patch) | |
tree | 084300563983a7a7010c5237520b075e2642c962 /doc | |
parent | d0ea49a820e02713bbe8892a333f2552da633b16 (diff) |
Add evp_keymgmt_clear_pkey_cache() and use it
This function clears the cache of provider key references, and is used
in evp_keymgmt_export_to_provider() when the internal key is dirty, as
well as by EVP_PKEY_free_it().
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9312)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/internal/man3/evp_keymgmt_export_to_provider.pod | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/internal/man3/evp_keymgmt_export_to_provider.pod b/doc/internal/man3/evp_keymgmt_export_to_provider.pod index 51234bd609..72b766fb93 100644 --- a/doc/internal/man3/evp_keymgmt_export_to_provider.pod +++ b/doc/internal/man3/evp_keymgmt_export_to_provider.pod @@ -2,13 +2,16 @@ =head1 NAME -evp_keymgmt_export_to_provider - key material exporter to providers for EVP +evp_keymgmt_export_to_provider, +evp_keymgmt_clear_pkey_cache +- key material provider export for EVP =head1 SYNOPSIS #include "internal/evp_int.h" void *evp_keymgmt_export_to_provider(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt); + void evp_keymgmt_clear_pkey_cache(EVP_PKEY *pk); =head1 DESCRIPTION @@ -24,10 +27,13 @@ is_dirty() method returns 1. If it has, the cache of already exported keys is cleared, and a new export is made with the new key material. +evp_keymgmt_clear_pkey_cache() can be used to explicitly clear the +cache of provider key references. + =head1 RETURN VALUES -evp_keymgmt_export_to_provider() returns a pointer to the newly -created provider side key, or NULL on error. +evp_keymgmt_export_to_provider() returns a pointer to the appropriate +provider side key (created or found again), or NULL on error. =head1 NOTES |