summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-12-30 18:45:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-12-30 18:45:03 +0000
commitd83b5378ef7949036592dff377f4c457e302354e (patch)
tree5280c962641223db18d33693896c4632b26aaa31 /lib
parent74e9c07a9185e6384b7fef69c529ebea4c0c25fb (diff)
Document that the ssl free() functions are NULL safe. OK mmcc@
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/doc/SSL_CTX_free.39
-rw-r--r--lib/libssl/doc/SSL_SESSION_free.39
-rw-r--r--lib/libssl/doc/SSL_free.39
3 files changed, 21 insertions, 6 deletions
diff --git a/lib/libssl/doc/SSL_CTX_free.3 b/lib/libssl/doc/SSL_CTX_free.3
index 0b2f7a82472..84f5eb57eec 100644
--- a/lib/libssl/doc/SSL_CTX_free.3
+++ b/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/lib/libssl/doc/SSL_SESSION_free.3 b/lib/libssl/doc/SSL_SESSION_free.3
index ffd5ae2b294..69491f714b2 100644
--- a/lib/libssl/doc/SSL_SESSION_free.3
+++ b/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/lib/libssl/doc/SSL_free.3 b/lib/libssl/doc/SSL_free.3
index c0078d817ab..1a3711e6c7b 100644
--- a/lib/libssl/doc/SSL_free.3
+++ b/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