ret = 1;
end:
if (ret != 1) {
- OSSL_PARAM_free(keypair);
+ OSSL_PARAM_clear_free(keypair);
keypair = NULL;
}
*p_keypair = keypair;
EVP_PKEY_free(params);
EVP_PKEY_free(pkey);
OSSL_PARAM_free(public_key);
- OSSL_PARAM_free(keypair);
+ OSSL_PARAM_clear_free(keypair);
OSSL_LIB_CTX_free(libctx);
return ret;
EVP_PKEY_todata() extracts values from a key I<pkey> using the I<selection>.
I<selection> is described in L<EVP_PKEY_fromdata(3)/Selections>.
-L<OSSL_PARAM_free(3)> should be used to free the returned parameters in
-I<*params>.
+L<OSSL_PARAM_free(3)> or L<OSSL_PARAM_clear_free(3)> should be used to free the
+returned parameters in I<*params>.
EVP_PKEY_export() is similar to EVP_PKEY_todata() but uses a callback
I<export_cb> that gets passed the value of I<export_cbarg>.
OSSL_PARAM_BLD_to_param() converts a built up OSSL_PARAM_BLD structure
I<bld> into an allocated OSSL_PARAM array.
The OSSL_PARAM array and all associated storage must be freed by calling
-OSSL_PARAM_free() with the functions return value.
+OSSL_PARAM_free(); if the contents of OSSL_PARAM array are confidential call
+OSSL_PARAM_clear_free().
OSSL_PARAM_BLD_free() can safely be called any time after this function is.
=begin comment
OSSL_PARAM_BLD_free(bld);
/* Use params */
...
- OSSL_PARAM_free(params);
+ OSSL_PARAM_clear_free(params);
=head2 Example 2
=head1 SEE ALSO
-L<OSSL_PARAM_int(3)>, L<OSSL_PARAM(3)>, L<OSSL_PARAM_free(3)>
+L<OSSL_PARAM_int(3)>, L<OSSL_PARAM(3)>, L<OSSL_PARAM_free(3)>, L<OSSL_PARAM_clear_free(3)>
=head1 HISTORY