From: Eugene Syromiatnikov Date: Mon, 27 Oct 2025 09:17:57 +0000 (+0100) Subject: doc/man3/X509_STORE_get0_param.pod: mention how to free the returned objects X-Git-Tag: 3.0-PRE-CLANG-FORMAT-WEBKIT~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=255adc14f08d762fdb87f641f171852baa5e935c;p=thirdparty%2Fopenssl.git doc/man3/X509_STORE_get0_param.pod: mention how to free the returned objects It is not entirely obvious from the description how the objects returned by X509_STORE_get1_all_certs() are supposed to be freed, explicitly mention the relevant call, and provide a reference to DEFINE_STACK_OF(3). Signed-off-by: Eugene Syromiatnikov Reviewed-by: Norbert Pocs Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/29017) --- diff --git a/doc/man3/X509_STORE_get0_param.pod b/doc/man3/X509_STORE_get0_param.pod index d9413fd49e1..02585de140f 100644 --- a/doc/man3/X509_STORE_get0_param.pod +++ b/doc/man3/X509_STORE_get0_param.pod @@ -29,7 +29,8 @@ X509 object cache. The cache contains B and B objects. The returned pointer must not be freed by the calling application. X509_STORE_get1_all_certs() returns a list of all certificates in the store. -The caller is responsible for freeing the returned list. +The caller is responsible for freeing the returned list +with sk_X509_pop_free(sk, X509_free). =head1 RETURN VALUES @@ -45,6 +46,7 @@ certificates on success, else NULL. =head1 SEE ALSO +L, L =head1 HISTORY