diff options
author | schwarze <> | 2018-02-27 02:33:05 +0000 |
---|---|---|
committer | schwarze <> | 2018-02-27 02:33:05 +0000 |
commit | 3af48992f1c9c84b3f3ddaa905bc0e14d5aeda70 (patch) | |
tree | 743cb5aedcd729275cb635e2e6c8b38a4653ec9e | |
parent | 61bcc9c4013c93a099881047bcb48c00533db562 (diff) | |
download | openbsd-3af48992f1c9c84b3f3ddaa905bc0e14d5aeda70.tar.gz openbsd-3af48992f1c9c84b3f3ddaa905bc0e14d5aeda70.tar.bz2 openbsd-3af48992f1c9c84b3f3ddaa905bc0e14d5aeda70.zip |
In ssl.h rev. 1.144 2018/02/22 17:29:24, jsing@ provided SSL_up_ref(3).
Merge the documentation from OpenSSL.
-rw-r--r-- | src/lib/libssl/man/SSL_new.3 | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/src/lib/libssl/man/SSL_new.3 b/src/lib/libssl/man/SSL_new.3 index cfe8b3368e..434cea0a85 100644 --- a/src/lib/libssl/man/SSL_new.3 +++ b/src/lib/libssl/man/SSL_new.3 | |||
@@ -1,8 +1,9 @@ | |||
1 | .\" $OpenBSD: SSL_new.3,v 1.2 2016/12/04 12:22:48 schwarze Exp $ | 1 | .\" $OpenBSD: SSL_new.3,v 1.3 2018/02/27 02:33:05 schwarze Exp $ |
2 | .\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 | 2 | .\" full merge up to: OpenSSL 1c7ae3dd Mar 29 19:17:55 2017 +1000 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. | 4 | .\" This file was written by Richard Levitte <levitte@openssl.org> |
5 | .\" Copyright (c) 2000, 2001 The OpenSSL Project. All rights reserved. | 5 | .\" and Matt Caswell <matt@openssl.org>. |
6 | .\" Copyright (c) 2000, 2016 The OpenSSL Project. All rights reserved. | ||
6 | .\" | 7 | .\" |
7 | .\" Redistribution and use in source and binary forms, with or without | 8 | .\" Redistribution and use in source and binary forms, with or without |
8 | .\" modification, are permitted provided that the following conditions | 9 | .\" modification, are permitted provided that the following conditions |
@@ -48,16 +49,19 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 51 | .\" |
51 | .Dd $Mdocdate: December 4 2016 $ | 52 | .Dd $Mdocdate: February 27 2018 $ |
52 | .Dt SSL_NEW 3 | 53 | .Dt SSL_NEW 3 |
53 | .Os | 54 | .Os |
54 | .Sh NAME | 55 | .Sh NAME |
55 | .Nm SSL_new | 56 | .Nm SSL_new , |
57 | .Nm SSL_up_ref | ||
56 | .Nd create a new SSL structure for a connection | 58 | .Nd create a new SSL structure for a connection |
57 | .Sh SYNOPSIS | 59 | .Sh SYNOPSIS |
58 | .In openssl/ssl.h | 60 | .In openssl/ssl.h |
59 | .Ft SSL * | 61 | .Ft SSL * |
60 | .Fn SSL_new "SSL_CTX *ctx" | 62 | .Fn SSL_new "SSL_CTX *ctx" |
63 | .Ft int | ||
64 | .Fn SSL_up_ref "SSL *ssl" | ||
61 | .Sh DESCRIPTION | 65 | .Sh DESCRIPTION |
62 | .Fn SSL_new | 66 | .Fn SSL_new |
63 | creates a new | 67 | creates a new |
@@ -67,6 +71,12 @@ The new structure inherits the settings of the underlying context | |||
67 | .Fa ctx : | 71 | .Fa ctx : |
68 | connection method, options, verification settings, | 72 | connection method, options, verification settings, |
69 | timeout settings. | 73 | timeout settings. |
74 | The reference count of the new structure is set to 1. | ||
75 | .Pp | ||
76 | .Fn SSL_up_ref | ||
77 | increments the reference count of | ||
78 | .Fa ssl | ||
79 | by 1. | ||
70 | .Sh RETURN VALUES | 80 | .Sh RETURN VALUES |
71 | The following return values can occur: | 81 | The following return values can occur: |
72 | .Bl -tag -width Ds | 82 | .Bl -tag -width Ds |
@@ -80,6 +90,9 @@ The return value points to an allocated | |||
80 | .Vt SSL | 90 | .Vt SSL |
81 | structure. | 91 | structure. |
82 | .El | 92 | .El |
93 | .Pp | ||
94 | .Fn SSL_up_ref | ||
95 | returns 1 for success or 0 for failure. | ||
83 | .Sh SEE ALSO | 96 | .Sh SEE ALSO |
84 | .Xr ssl 3 , | 97 | .Xr ssl 3 , |
85 | .Xr SSL_clear 3 , | 98 | .Xr SSL_clear 3 , |