diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-12-30 18:45:03 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-12-30 18:45:03 +0000 |
commit | ddfb45c99966cf6142d4bd94d1e7f335c888fe0f (patch) | |
tree | 2df964efa808965f23780d4b2636c184cececb33 /lib/libssl | |
parent | 0fbb76fac9da1351c5f3c1a6dee0b9ef349f958e (diff) |
Document that the ssl free() functions are NULL safe. OK mmcc@
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/src/doc/ssl/SSL_CTX_free.3 | 9 | ||||
-rw-r--r-- | lib/libssl/src/doc/ssl/SSL_SESSION_free.3 | 9 | ||||
-rw-r--r-- | lib/libssl/src/doc/ssl/SSL_free.3 | 9 |
3 files changed, 21 insertions, 6 deletions
diff --git a/lib/libssl/src/doc/ssl/SSL_CTX_free.3 b/lib/libssl/src/doc/ssl/SSL_CTX_free.3 index 0b2f7a82472..84f5eb57eec 100644 --- a/lib/libssl/src/doc/ssl/SSL_CTX_free.3 +++ b/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/lib/libssl/src/doc/ssl/SSL_SESSION_free.3 b/lib/libssl/src/doc/ssl/SSL_SESSION_free.3 index ffd5ae2b294..69491f714b2 100644 --- a/lib/libssl/src/doc/ssl/SSL_SESSION_free.3 +++ b/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/lib/libssl/src/doc/ssl/SSL_free.3 b/lib/libssl/src/doc/ssl/SSL_free.3 index c0078d817ab..1a3711e6c7b 100644 --- a/lib/libssl/src/doc/ssl/SSL_free.3 +++ b/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 |