From: tb Date: Sun, 29 Jul 2018 20:29:32 +0000 (+0000) Subject: Document that X509_{NAME,REQ,REQ_INFO}_free() are all NULL safe. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8383e4b729f68bfdcbd6521b5c26b879ee2f61f0;p=openbsd Document that X509_{NAME,REQ,REQ_INFO}_free() are all NULL safe. From Ross L. Richardson --- diff --git a/lib/libcrypto/man/X509_NAME_new.3 b/lib/libcrypto/man/X509_NAME_new.3 index 8a62d664fb8..527e22272c2 100644 --- a/lib/libcrypto/man/X509_NAME_new.3 +++ b/lib/libcrypto/man/X509_NAME_new.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: X509_NAME_new.3,v 1.5 2018/03/27 17:35:50 schwarze Exp $ +.\" $OpenBSD: X509_NAME_new.3,v 1.6 2018/07/29 20:29:32 tb Exp $ .\" .\" Copyright (c) 2016 Ingo Schwarze .\" @@ -14,7 +14,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: March 27 2018 $ +.Dd $Mdocdate: July 29 2018 $ .Dt X509_NAME_NEW 3 .Os .Sh NAME @@ -62,6 +62,11 @@ frees and all the .Vt X509_NAME_ENTRY objects contained in it. +If +.Fa name +is a +.Dv NULL +pointer, no action occurs. .Sh RETURN VALUES .Fn X509_NAME_new returns a new diff --git a/lib/libcrypto/man/X509_REQ_new.3 b/lib/libcrypto/man/X509_REQ_new.3 index 2a99c7ce2f3..8d000328f65 100644 --- a/lib/libcrypto/man/X509_REQ_new.3 +++ b/lib/libcrypto/man/X509_REQ_new.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: X509_REQ_new.3,v 1.4 2018/03/27 17:35:50 schwarze Exp $ +.\" $OpenBSD: X509_REQ_new.3,v 1.5 2018/07/29 20:29:32 tb Exp $ .\" .\" Copyright (c) 2016 Ingo Schwarze .\" @@ -14,7 +14,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: March 27 2018 $ +.Dd $Mdocdate: July 29 2018 $ .Dt X509_REQ_NEW 3 .Os .Sh NAME @@ -47,6 +47,11 @@ information about the signature algorithm used. .Fn X509_REQ_free frees .Fa req . +If +.Fa req +is a +.Dv NULL +pointer, no action occurs. .Pp .Fn X509_REQ_INFO_new allocates and initializes an empty @@ -61,6 +66,11 @@ certificate and additional attributes. .Fn X509_REQ_INFO_free frees .Fa req_info . +If +.Fa req_info +is a +.Dv NULL +pointer, no action occurs. .Sh RETURN VALUES .Fn X509_REQ_new and