diff options
author | schwarze <> | 2016-12-07 17:09:07 +0000 |
---|---|---|
committer | schwarze <> | 2016-12-07 17:09:07 +0000 |
commit | daf2069edc609e45c7bcf84a98a3468a754fa332 (patch) | |
tree | ca59d73749f9220196b518e1922071239e40226b | |
parent | a3359692c2a782c1de9d1c037180a7ca78b9eced (diff) | |
download | openbsd-daf2069edc609e45c7bcf84a98a3468a754fa332.tar.gz openbsd-daf2069edc609e45c7bcf84a98a3468a754fa332.tar.bz2 openbsd-daf2069edc609e45c7bcf84a98a3468a754fa332.zip |
Write new SSL_dup(3) manual from scratch. This function is listed
in ssl(3) and <openssl/ssl.h>, so it is clearly public.
-rw-r--r-- | src/lib/libssl/man/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libssl/man/SSL_dup.3 | 59 |
2 files changed, 61 insertions, 1 deletions
diff --git a/src/lib/libssl/man/Makefile b/src/lib/libssl/man/Makefile index ee742bc720..5fe28e4dc6 100644 --- a/src/lib/libssl/man/Makefile +++ b/src/lib/libssl/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.47 2016/12/07 15:14:34 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.48 2016/12/07 17:09:07 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -55,6 +55,7 @@ MAN = BIO_f_ssl.3 \ | |||
55 | SSL_clear.3 \ | 55 | SSL_clear.3 \ |
56 | SSL_connect.3 \ | 56 | SSL_connect.3 \ |
57 | SSL_do_handshake.3 \ | 57 | SSL_do_handshake.3 \ |
58 | SSL_dup.3 \ | ||
58 | SSL_dup_CA_list.3 \ | 59 | SSL_dup_CA_list.3 \ |
59 | SSL_free.3 \ | 60 | SSL_free.3 \ |
60 | SSL_get_SSL_CTX.3 \ | 61 | SSL_get_SSL_CTX.3 \ |
diff --git a/src/lib/libssl/man/SSL_dup.3 b/src/lib/libssl/man/SSL_dup.3 new file mode 100644 index 0000000000..47ec2e3976 --- /dev/null +++ b/src/lib/libssl/man/SSL_dup.3 | |||
@@ -0,0 +1,59 @@ | |||
1 | .\" $OpenBSD: SSL_dup.3,v 1.1 2016/12/07 17:09:07 schwarze Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | ||
4 | .\" | ||
5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
7 | .\" copyright notice and this permission notice appear in all copies. | ||
8 | .\" | ||
9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | .\" | ||
17 | .Dd $Mdocdate: December 7 2016 $ | ||
18 | .Dt SSL_DUP 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm SSL_dup | ||
22 | .Nd deep copy of an SSL object | ||
23 | .Sh SYNOPSIS | ||
24 | .In openssl/ssl.h | ||
25 | .Ft SSL * | ||
26 | .Fo SSL_dup | ||
27 | .Fa "SSL *ssl" | ||
28 | .Fc | ||
29 | .Sh DESCRIPTION | ||
30 | .Fn SSL_dup | ||
31 | constructs a new | ||
32 | .Vt SSL | ||
33 | object in the same context as | ||
34 | .Fa ssl | ||
35 | and copies much of the contained data from | ||
36 | .Fa ssl | ||
37 | to the new | ||
38 | .Vt SSL | ||
39 | object, but many fields, for example tlsext data, are not copied. | ||
40 | .Pp | ||
41 | As an exception from deep copying, if a session is already established, | ||
42 | the new object shares | ||
43 | .Fa ssl->cert | ||
44 | with the original object. | ||
45 | .Sh RETURN VALUES | ||
46 | .Fn SSL_dup | ||
47 | returns the new | ||
48 | .Vt SSL | ||
49 | object or | ||
50 | .Dv NULL | ||
51 | on failure. | ||
52 | .Sh SEE ALSO | ||
53 | .Xr SSL_clear 3 , | ||
54 | .Xr SSL_copy_session_id 3 , | ||
55 | .Xr SSL_free 3 , | ||
56 | .Xr SSL_new 3 | ||
57 | .Sh HISTORY | ||
58 | .Fn SSL_dup | ||
59 | is available in all versions of OpenSSL. | ||