From 439dd1283e18edd190f9f32c94be320c71f60ea4 Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 24 Aug 2018 19:23:07 +0000 Subject: [PATCH] Document new prototype and return values of X509_OBJECT_up_ref_count() ok jsing --- lib/libcrypto/man/X509_OBJECT_get0_X509.3 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/libcrypto/man/X509_OBJECT_get0_X509.3 b/lib/libcrypto/man/X509_OBJECT_get0_X509.3 index 2b716d70906..905146b38f0 100644 --- a/lib/libcrypto/man/X509_OBJECT_get0_X509.3 +++ b/lib/libcrypto/man/X509_OBJECT_get0_X509.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: X509_OBJECT_get0_X509.3,v 1.7 2018/04/02 01:22:03 schwarze Exp $ +.\" $OpenBSD: X509_OBJECT_get0_X509.3,v 1.8 2018/08/24 19:23:07 tb Exp $ .\" Copyright (c) 2018 Ingo Schwarze .\" .\" Permission to use, copy, modify, and distribute this software for any @@ -13,7 +13,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 2 2018 $ +.Dd $Mdocdate: August 24 2018 $ .Dt X509_OBJECT_GET0_X509 3 .Os .Sh NAME @@ -32,7 +32,7 @@ .Fo X509_OBJECT_get_type .Fa "const X509_OBJECT *obj" .Fc -.Ft void +.Ft int .Fo X509_OBJECT_up_ref_count .Fa "X509_OBJECT *obj" .Fc @@ -161,6 +161,9 @@ contains a certificate, if it contains a certificate revocation list, or 0 if an error occurs. .Pp +.Fn X509_OBJECT_up_ref_count +returns 1 on success and 0 on failure. +.Pp .Fn X509_OBJECT_get0_X509 returns an internal pointer to the certificate contained in .Fa obj -- 2.20.1