diff options
author | 2015-12-30 18:45:02 +0000 | |
---|---|---|
committer | 2015-12-30 18:45:02 +0000 | |
commit | 7f710328b7094308bb6a0e6f965f93b1bf108910 (patch) | |
tree | 6822ec18be7c691b51b0e627234eb6563934fc22 /lib/libssl/src/doc/ssl | |
parent | Revert r1.59's over-enthusiatic MBR zero'ing in MBR_init(). It was (diff) | |
download | wireguard-openbsd-7f710328b7094308bb6a0e6f965f93b1bf108910.tar.xz wireguard-openbsd-7f710328b7094308bb6a0e6f965f93b1bf108910.zip |
Document that the ssl free() functions are NULL safe. OK mmcc@
Diffstat (limited to 'lib/libssl/src/doc/ssl')
-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 |