diff options
author | schwarze <> | 2018-02-26 16:02:14 +0000 |
---|---|---|
committer | schwarze <> | 2018-02-26 16:02:14 +0000 |
commit | 1aa24a7df9180ff74c8ed62e3aaaae4e77752ff4 (patch) | |
tree | e3b1c4a967e9a090391c061cea77945f4c302f12 | |
parent | a29e14c7376d40d3e949149067671f080842a220 (diff) | |
download | openbsd-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.3 | 35 |
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 |
63 | decrements the reference count of | 68 | increments the reference count of the given |
64 | .Fa session | 69 | .Fa session |
65 | and removes the | 70 | by 1. |
66 | .Vt SSL_SESSION | 71 | .Pp |
67 | structure pointed to by | 72 | .Fn SSL_SESSION_free |
73 | decrements the reference count of the given | ||
68 | .Fa session | 74 | .Fa session |
69 | and frees up the allocated memory, if the reference count has reached 0. | 75 | by 1. |
76 | If the reference count reaches 0, it frees the memory used by the | ||
77 | .Fa session . | ||
70 | If | 78 | If |
71 | .Fa session | 79 | .Fa session |
72 | is a | 80 | is a |
@@ -120,6 +128,9 @@ It must not be called on other | |||
120 | .Vt SSL_SESSION | 128 | .Vt SSL_SESSION |
121 | objects, as this would cause incorrect reference counts and therefore program | 129 | objects, as this would cause incorrect reference counts and therefore program |
122 | failures. | 130 | failures. |
131 | .Sh RETURN VALUES | ||
132 | .Fn SSL_SESSION_up_ref | ||
133 | returns 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 , |