summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormillert <>2015-12-30 18:45:02 +0000
committermillert <>2015-12-30 18:45:02 +0000
commit3c78bc879ca4a6912fae9f0dcf0053c399e44a69 (patch)
treec687383e5039bda47b476281947cfccb221bf13a
parent801ec15252914cb5260c7a9380df0610aa88bd66 (diff)
downloadopenbsd-3c78bc879ca4a6912fae9f0dcf0053c399e44a69.tar.gz
openbsd-3c78bc879ca4a6912fae9f0dcf0053c399e44a69.tar.bz2
openbsd-3c78bc879ca4a6912fae9f0dcf0053c399e44a69.zip
Document that the ssl free() functions are NULL safe. OK mmcc@
-rw-r--r--src/lib/libssl/doc/SSL_CTX_free.39
-rw-r--r--src/lib/libssl/doc/SSL_SESSION_free.39
-rw-r--r--src/lib/libssl/doc/SSL_free.39
-rw-r--r--src/lib/libssl/src/doc/ssl/SSL_CTX_free.39
-rw-r--r--src/lib/libssl/src/doc/ssl/SSL_SESSION_free.39
-rw-r--r--src/lib/libssl/src/doc/ssl/SSL_free.39
6 files changed, 42 insertions, 12 deletions
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 @@
1.\" 1.\"
2.\" $OpenBSD: SSL_CTX_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ 2.\" $OpenBSD: SSL_CTX_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $
3.\" 3.\"
4.Dd $Mdocdate: December 2 2014 $ 4.Dd $Mdocdate: December 30 2015 $
5.Dt SSL_CTX_FREE 3 5.Dt SSL_CTX_FREE 3
6.Os 6.Os
7.Sh NAME 7.Sh NAME
@@ -20,6 +20,11 @@ and removes the
20object pointed to by 20object pointed to by
21.Fa ctx 21.Fa ctx
22and frees up the allocated memory if the reference count has reached 0. 22and frees up the allocated memory if the reference count has reached 0.
23If
24.Fa ctx
25is a
26.Dv NULL
27pointer, no action occurs.
23.Pp 28.Pp
24It also calls the 29It also calls the
25.Xr free 3 Ns ing 30.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 @@
1.\" 1.\"
2.\" $OpenBSD: SSL_SESSION_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ 2.\" $OpenBSD: SSL_SESSION_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $
3.\" 3.\"
4.Dd $Mdocdate: December 2 2014 $ 4.Dd $Mdocdate: December 30 2015 $
5.Dt SSL_SESSION_FREE 3 5.Dt SSL_SESSION_FREE 3
6.Os 6.Os
7.Sh NAME 7.Sh NAME
@@ -20,6 +20,11 @@ and removes the
20structure pointed to by 20structure pointed to by
21.Fa session 21.Fa session
22and frees up the allocated memory, if the reference count has reached 0. 22and frees up the allocated memory, if the reference count has reached 0.
23If
24.Fa session
25is a
26.Dv NULL
27pointer, no action occurs.
23.Sh NOTES 28.Sh NOTES
24.Vt SSL_SESSION 29.Vt SSL_SESSION
25objects are allocated when a TLS/SSL handshake operation is successfully 30objects 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 @@
1.\" 1.\"
2.\" $OpenBSD: SSL_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ 2.\" $OpenBSD: SSL_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $
3.\" 3.\"
4.Dd $Mdocdate: December 2 2014 $ 4.Dd $Mdocdate: December 30 2015 $
5.Dt SSL_FREE 3 5.Dt SSL_FREE 3
6.Os 6.Os
7.Sh NAME 7.Sh NAME
@@ -20,6 +20,11 @@ and removes the
20structure pointed to by 20structure pointed to by
21.Fa ssl 21.Fa ssl
22and frees up the allocated memory if the reference count has reached 0. 22and frees up the allocated memory if the reference count has reached 0.
23If
24.Fa ssl
25is a
26.Dv NULL
27pointer, no action occurs.
23.Sh NOTES 28.Sh NOTES
24.Fn SSL_free 29.Fn SSL_free
25also calls the 30also 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 @@
1.\" 1.\"
2.\" $OpenBSD: SSL_CTX_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ 2.\" $OpenBSD: SSL_CTX_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $
3.\" 3.\"
4.Dd $Mdocdate: December 2 2014 $ 4.Dd $Mdocdate: December 30 2015 $
5.Dt SSL_CTX_FREE 3 5.Dt SSL_CTX_FREE 3
6.Os 6.Os
7.Sh NAME 7.Sh NAME
@@ -20,6 +20,11 @@ and removes the
20object pointed to by 20object pointed to by
21.Fa ctx 21.Fa ctx
22and frees up the allocated memory if the reference count has reached 0. 22and frees up the allocated memory if the reference count has reached 0.
23If
24.Fa ctx
25is a
26.Dv NULL
27pointer, no action occurs.
23.Pp 28.Pp
24It also calls the 29It also calls the
25.Xr free 3 Ns ing 30.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 @@
1.\" 1.\"
2.\" $OpenBSD: SSL_SESSION_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ 2.\" $OpenBSD: SSL_SESSION_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $
3.\" 3.\"
4.Dd $Mdocdate: December 2 2014 $ 4.Dd $Mdocdate: December 30 2015 $
5.Dt SSL_SESSION_FREE 3 5.Dt SSL_SESSION_FREE 3
6.Os 6.Os
7.Sh NAME 7.Sh NAME
@@ -20,6 +20,11 @@ and removes the
20structure pointed to by 20structure pointed to by
21.Fa session 21.Fa session
22and frees up the allocated memory, if the reference count has reached 0. 22and frees up the allocated memory, if the reference count has reached 0.
23If
24.Fa session
25is a
26.Dv NULL
27pointer, no action occurs.
23.Sh NOTES 28.Sh NOTES
24.Vt SSL_SESSION 29.Vt SSL_SESSION
25objects are allocated when a TLS/SSL handshake operation is successfully 30objects 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 @@
1.\" 1.\"
2.\" $OpenBSD: SSL_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ 2.\" $OpenBSD: SSL_free.3,v 1.3 2015/12/30 18:45:02 millert Exp $
3.\" 3.\"
4.Dd $Mdocdate: December 2 2014 $ 4.Dd $Mdocdate: December 30 2015 $
5.Dt SSL_FREE 3 5.Dt SSL_FREE 3
6.Os 6.Os
7.Sh NAME 7.Sh NAME
@@ -20,6 +20,11 @@ and removes the
20structure pointed to by 20structure pointed to by
21.Fa ssl 21.Fa ssl
22and frees up the allocated memory if the reference count has reached 0. 22and frees up the allocated memory if the reference count has reached 0.
23If
24.Fa ssl
25is a
26.Dv NULL
27pointer, no action occurs.
23.Sh NOTES 28.Sh NOTES
24.Fn SSL_free 29.Fn SSL_free
25also calls the 30also calls the