From 3c78bc879ca4a6912fae9f0dcf0053c399e44a69 Mon Sep 17 00:00:00 2001 From: millert <> Date: Wed, 30 Dec 2015 18:45:02 +0000 Subject: Document that the ssl free() functions are NULL safe. OK mmcc@ --- src/lib/libssl/doc/SSL_CTX_free.3 | 9 +++++++-- src/lib/libssl/doc/SSL_SESSION_free.3 | 9 +++++++-- src/lib/libssl/doc/SSL_free.3 | 9 +++++++-- src/lib/libssl/src/doc/ssl/SSL_CTX_free.3 | 9 +++++++-- src/lib/libssl/src/doc/ssl/SSL_SESSION_free.3 | 9 +++++++-- src/lib/libssl/src/doc/ssl/SSL_free.3 | 9 +++++++-- 6 files changed, 42 insertions(+), 12 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libssl/doc/SSL_CTX_free.3 b/src/lib/libssl/doc/SSL_CTX_free.3 index 0b2f7a8247..84f5eb57ee 100644 --- a/src/lib/libssl/doc/SSL_CTX_free.3 +++ b/src/lib/libssl/doc/SSL_CTX_free.3 @@ -1,7 +1,7 @@ .\" -.\" $OpenBSD: SSL_CTX_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ +.\" $OpenBSD: SSL_CTX_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $ .\" -.Dd $Mdocdate: December 2 2014 $ +.Dd $Mdocdate: December 30 2015 $ .Dt SSL_CTX_FREE 3 .Os .Sh NAME @@ -20,6 +20,11 @@ and removes the object pointed to by .Fa ctx and frees up the allocated memory if the reference count has reached 0. +If +.Fa ctx +is a +.Dv NULL +pointer, no action occurs. .Pp It also calls the .Xr free 3 Ns ing diff --git a/src/lib/libssl/doc/SSL_SESSION_free.3 b/src/lib/libssl/doc/SSL_SESSION_free.3 index ffd5ae2b29..69491f714b 100644 --- a/src/lib/libssl/doc/SSL_SESSION_free.3 +++ b/src/lib/libssl/doc/SSL_SESSION_free.3 @@ -1,7 +1,7 @@ .\" -.\" $OpenBSD: SSL_SESSION_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ +.\" $OpenBSD: SSL_SESSION_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $ .\" -.Dd $Mdocdate: December 2 2014 $ +.Dd $Mdocdate: December 30 2015 $ .Dt SSL_SESSION_FREE 3 .Os .Sh NAME @@ -20,6 +20,11 @@ and removes the structure pointed to by .Fa session and frees up the allocated memory, if the reference count has reached 0. +If +.Fa session +is a +.Dv NULL +pointer, no action occurs. .Sh NOTES .Vt SSL_SESSION objects are allocated when a TLS/SSL handshake operation is successfully diff --git a/src/lib/libssl/doc/SSL_free.3 b/src/lib/libssl/doc/SSL_free.3 index c0078d817a..1a3711e6c7 100644 --- a/src/lib/libssl/doc/SSL_free.3 +++ b/src/lib/libssl/doc/SSL_free.3 @@ -1,7 +1,7 @@ .\" -.\" $OpenBSD: SSL_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ +.\" $OpenBSD: SSL_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $ .\" -.Dd $Mdocdate: December 2 2014 $ +.Dd $Mdocdate: December 30 2015 $ .Dt SSL_FREE 3 .Os .Sh NAME @@ -20,6 +20,11 @@ and removes the structure pointed to by .Fa ssl and frees up the allocated memory if the reference count has reached 0. +If +.Fa ssl +is a +.Dv NULL +pointer, no action occurs. .Sh NOTES .Fn SSL_free also calls the diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_free.3 b/src/lib/libssl/src/doc/ssl/SSL_CTX_free.3 index 0b2f7a8247..84f5eb57ee 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CTX_free.3 +++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_free.3 @@ -1,7 +1,7 @@ .\" -.\" $OpenBSD: SSL_CTX_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ +.\" $OpenBSD: SSL_CTX_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $ .\" -.Dd $Mdocdate: December 2 2014 $ +.Dd $Mdocdate: December 30 2015 $ .Dt SSL_CTX_FREE 3 .Os .Sh NAME @@ -20,6 +20,11 @@ and removes the object pointed to by .Fa ctx and frees up the allocated memory if the reference count has reached 0. +If +.Fa ctx +is a +.Dv NULL +pointer, no action occurs. .Pp It also calls the .Xr free 3 Ns ing diff --git a/src/lib/libssl/src/doc/ssl/SSL_SESSION_free.3 b/src/lib/libssl/src/doc/ssl/SSL_SESSION_free.3 index ffd5ae2b29..69491f714b 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_SESSION_free.3 +++ b/src/lib/libssl/src/doc/ssl/SSL_SESSION_free.3 @@ -1,7 +1,7 @@ .\" -.\" $OpenBSD: SSL_SESSION_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ +.\" $OpenBSD: SSL_SESSION_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $ .\" -.Dd $Mdocdate: December 2 2014 $ +.Dd $Mdocdate: December 30 2015 $ .Dt SSL_SESSION_FREE 3 .Os .Sh NAME @@ -20,6 +20,11 @@ and removes the structure pointed to by .Fa session and frees up the allocated memory, if the reference count has reached 0. +If +.Fa session +is a +.Dv NULL +pointer, no action occurs. .Sh NOTES .Vt SSL_SESSION objects are allocated when a TLS/SSL handshake operation is successfully diff --git a/src/lib/libssl/src/doc/ssl/SSL_free.3 b/src/lib/libssl/src/doc/ssl/SSL_free.3 index c0078d817a..1a3711e6c7 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_free.3 +++ b/src/lib/libssl/src/doc/ssl/SSL_free.3 @@ -1,7 +1,7 @@ .\" -.\" $OpenBSD: SSL_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ +.\" $OpenBSD: SSL_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $ .\" -.Dd $Mdocdate: December 2 2014 $ +.Dd $Mdocdate: December 30 2015 $ .Dt SSL_FREE 3 .Os .Sh NAME @@ -20,6 +20,11 @@ and removes the structure pointed to by .Fa ssl and frees up the allocated memory if the reference count has reached 0. +If +.Fa ssl +is a +.Dv NULL +pointer, no action occurs. .Sh NOTES .Fn SSL_free also calls the -- cgit v1.2.3-55-g6feb