From: north-16 Date: Fri, 13 Jan 2023 01:33:46 +0000 (-0800) Subject: Clarify documentation of X509_STORE_CTX_get_current_cert() X-Git-Tag: openssl-3.2.0-alpha1~1446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed77c14d91ec008d4d78d7293f37bd4aa60071f0;p=thirdparty%2Fopenssl.git Clarify documentation of X509_STORE_CTX_get_current_cert() CLA: trivial Reviewed-by: Viktor Dukhovni Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/20038) --- diff --git a/doc/man3/X509_STORE_CTX_get_error.pod b/doc/man3/X509_STORE_CTX_get_error.pod index 90ebcac45f5..76fcf27b8da 100644 --- a/doc/man3/X509_STORE_CTX_get_error.pod +++ b/doc/man3/X509_STORE_CTX_get_error.pod @@ -49,8 +49,10 @@ X509_STORE_CTX_set_error_depth() sets the error I. This can be used in combination with X509_STORE_CTX_set_error() to set the depth at which an error condition was detected. -X509_STORE_CTX_get_current_cert() returns the certificate in I which -caused the error or NULL if no certificate is relevant. +X509_STORE_CTX_get_current_cert() returns the current certificate in +I. If an error occurred, the current certificate will be the one +that is most closely related to the error, or possibly NULL if no such +certificate is relevant. X509_STORE_CTX_set_current_cert() sets the certificate I in I which caused the error.