summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2018-02-26 16:02:14 +0000
committerschwarze <>2018-02-26 16:02:14 +0000
commit1aa24a7df9180ff74c8ed62e3aaaae4e77752ff4 (patch)
treee3b1c4a967e9a090391c061cea77945f4c302f12
parenta29e14c7376d40d3e949149067671f080842a220 (diff)
downloadopenbsd-1aa24a7df9180ff74c8ed62e3aaaae4e77752ff4.tar.gz
openbsd-1aa24a7df9180ff74c8ed62e3aaaae4e77752ff4.tar.bz2
openbsd-1aa24a7df9180ff74c8ed62e3aaaae4e77752ff4.zip
In ssl.h rev. 1.142 2018/02/22 17:25:18, jsing@ provided
SSL_SESSION_up_ref(3). Merge the documentation from OpenSSL, tweaked by me.
-rw-r--r--src/lib/libssl/man/SSL_SESSION_free.335
1 files changed, 23 insertions, 12 deletions
diff --git a/src/lib/libssl/man/SSL_SESSION_free.3 b/src/lib/libssl/man/SSL_SESSION_free.3
index 1a37af2775..13c03fda43 100644
--- a/src/lib/libssl/man/SSL_SESSION_free.3
+++ b/src/lib/libssl/man/SSL_SESSION_free.3
@@ -1,8 +1,10 @@
1.\" $OpenBSD: SSL_SESSION_free.3,v 1.2 2016/12/06 18:53:55 schwarze Exp $ 1.\" $OpenBSD: SSL_SESSION_free.3,v 1.3 2018/02/26 16:02:14 schwarze Exp $
2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" full merge up to: OpenSSL b31db505 Mar 24 16:01:50 2017 +0000
3.\" 3.\"
4.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. 4.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>
5.\" Copyright (c) 2000, 2001, 2009 The OpenSSL Project. All rights reserved. 5.\" and Matt Caswell <matt@openssl.org>.
6.\" Copyright (c) 2000, 2001, 2009, 2017 The OpenSSL Project.
7.\" All rights reserved.
6.\" 8.\"
7.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions 10.\" modification, are permitted provided that the following conditions
@@ -48,25 +50,31 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 51.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 52.\"
51.Dd $Mdocdate: December 6 2016 $ 53.Dd $Mdocdate: February 26 2018 $
52.Dt SSL_SESSION_FREE 3 54.Dt SSL_SESSION_FREE 3
53.Os 55.Os
54.Sh NAME 56.Sh NAME
57.Nm SSL_SESSION_up_ref ,
55.Nm SSL_SESSION_free 58.Nm SSL_SESSION_free
56.Nd free an allocated SSL_SESSION structure 59.Nd SSL_SESSION reference counting
57.Sh SYNOPSIS 60.Sh SYNOPSIS
58.In openssl/ssl.h 61.In openssl/ssl.h
62.Ft int
63.Fn SSL_SESSION_up_ref "SSL_SESSION *session"
59.Ft void 64.Ft void
60.Fn SSL_SESSION_free "SSL_SESSION *session" 65.Fn SSL_SESSION_free "SSL_SESSION *session"
61.Sh DESCRIPTION 66.Sh DESCRIPTION
62.Fn SSL_SESSION_free 67.Fn SSL_SESSION_up_ref
63decrements the reference count of 68increments the reference count of the given
64.Fa session 69.Fa session
65and removes the 70by 1.
66.Vt SSL_SESSION 71.Pp
67structure pointed to by 72.Fn SSL_SESSION_free
73decrements the reference count of the given
68.Fa session 74.Fa session
69and frees up the allocated memory, if the reference count has reached 0. 75by 1.
76If the reference count reaches 0, it frees the memory used by the
77.Fa session .
70If 78If
71.Fa session 79.Fa session
72is a 80is a
@@ -120,6 +128,9 @@ It must not be called on other
120.Vt SSL_SESSION 128.Vt SSL_SESSION
121objects, as this would cause incorrect reference counts and therefore program 129objects, as this would cause incorrect reference counts and therefore program
122failures. 130failures.
131.Sh RETURN VALUES
132.Fn SSL_SESSION_up_ref
133returns 1 on success or 0 on error.
123.Sh SEE ALSO 134.Sh SEE ALSO
124.Xr d2i_SSL_SESSION 3 , 135.Xr d2i_SSL_SESSION 3 ,
125.Xr SSL_CTX_flush_sessions 3 , 136.Xr SSL_CTX_flush_sessions 3 ,