From: Richard Levitte Date: Mon, 20 Mar 2017 11:29:37 +0000 (+0100) Subject: Fix docs for X509_CRL_get0_by_serial() and X509_CRL_get0_by_cert() X-Git-Tag: OpenSSL_1_1_1-pre1~1980 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cdd6c8c5785f44026d58b542431674598db18493;p=oweals%2Fopenssl.git Fix docs for X509_CRL_get0_by_serial() and X509_CRL_get0_by_cert() They both return 2 when the revoked entry that's found has the reason removeFromCRL. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2993) --- diff --git a/doc/man3/X509_CRL_get0_by_serial.pod b/doc/man3/X509_CRL_get0_by_serial.pod index d9d4360fe0..a704228eb9 100644 --- a/doc/man3/X509_CRL_get0_by_serial.pod +++ b/doc/man3/X509_CRL_get0_by_serial.pod @@ -70,7 +70,10 @@ in turn using sk_X509_REVOKED_value(). =head1 RETURN VALUES -X509_CRL_get0_by_serial(), X509_CRL_get0_by_cert(), +X509_CRL_get0_by_serial() and X509_CRL_get0_by_cert() return 0 for failure, +1 on success except if the revoked entry has the reason C (8), +in which case 2 is returned. + X509_REVOKED_set_serialNumber(), X509_REVOKED_set_revocationDate(), X509_CRL_add0_revoked() and X509_CRL_sort() return 1 for success and 0 for failure.