summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2018-02-26 16:23:43 +0000
committerschwarze <>2018-02-26 16:23:43 +0000
commit61bcc9c4013c93a099881047bcb48c00533db562 (patch)
tree13c7c22c041582152876e10c81905ab13a760f25 /src
parent1aa24a7df9180ff74c8ed62e3aaaae4e77752ff4 (diff)
downloadopenbsd-61bcc9c4013c93a099881047bcb48c00533db562.tar.gz
openbsd-61bcc9c4013c93a099881047bcb48c00533db562.tar.bz2
openbsd-61bcc9c4013c93a099881047bcb48c00533db562.zip
In ssl.h rev. 1.143 2018/02/22 17:27:07, jsing@ provided
SSL_CTX_get_ciphers(3). Merge the documentation from OpenSSL.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/man/SSL_get_ciphers.330
1 files changed, 24 insertions, 6 deletions
diff --git a/src/lib/libssl/man/SSL_get_ciphers.3 b/src/lib/libssl/man/SSL_get_ciphers.3
index 4c3bbc45ce..63fc0570c1 100644
--- a/src/lib/libssl/man/SSL_get_ciphers.3
+++ b/src/lib/libssl/man/SSL_get_ciphers.3
@@ -1,8 +1,11 @@
1.\" $OpenBSD: SSL_get_ciphers.3,v 1.2 2016/12/03 09:00:46 schwarze Exp $ 1.\" $OpenBSD: SSL_get_ciphers.3,v 1.3 2018/02/26 16:23:43 schwarze Exp $
2.\" OpenSSL c3e64028 Mar 30 11:50:14 2005 +0000 2.\" full merge up to: OpenSSL c3e64028 Mar 30 11:50:14 2005 +0000
3.\" selective merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
3.\" 4.\"
4.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. 5.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>,
5.\" Copyright (c) 2000, 2005, 2015 The OpenSSL Project. All rights reserved. 6.\" Nick Mathewson <nickm@torproject.org>, and Kazuki Yamaguchi <k@rhe.jp>.
7.\" Copyright (c) 2000, 2005, 2015, 2016 The OpenSSL Project.
8.\" All rights reserved.
6.\" 9.\"
7.\" Redistribution and use in source and binary forms, with or without 10.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions 11.\" modification, are permitted provided that the following conditions
@@ -48,17 +51,20 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 51.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 52.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 53.\"
51.Dd $Mdocdate: December 3 2016 $ 54.Dd $Mdocdate: February 26 2018 $
52.Dt SSL_GET_CIPHERS 3 55.Dt SSL_GET_CIPHERS 3
53.Os 56.Os
54.Sh NAME 57.Sh NAME
55.Nm SSL_get_ciphers , 58.Nm SSL_get_ciphers ,
59.Nm SSL_CTX_get_ciphers ,
56.Nm SSL_get_cipher_list 60.Nm SSL_get_cipher_list
57.Nd get list of available SSL_CIPHERs 61.Nd get list of available SSL_CIPHERs
58.Sh SYNOPSIS 62.Sh SYNOPSIS
59.In openssl/ssl.h 63.In openssl/ssl.h
60.Ft STACK_OF(SSL_CIPHER) * 64.Ft STACK_OF(SSL_CIPHER) *
61.Fn SSL_get_ciphers "const SSL *ssl" 65.Fn SSL_get_ciphers "const SSL *ssl"
66.Ft STACK_OF(SSL_CIPHER) *
67.Fn SSL_CTX_get_ciphers "const SSL_CTX *ctx"
62.Ft const char * 68.Ft const char *
63.Fn SSL_get_cipher_list "const SSL *ssl" "int priority" 69.Fn SSL_get_cipher_list "const SSL *ssl" "int priority"
64.Sh DESCRIPTION 70.Sh DESCRIPTION
@@ -76,15 +82,27 @@ or no ciphers are available,
76.Dv NULL 82.Dv NULL
77is returned. 83is returned.
78.Pp 84.Pp
85.Fn SSL_CTX_get_ciphers
86returns the stack of available
87.Vt SSL_CIPHER Ns s
88for
89.Fa ctx .
90.Pp
79.Fn SSL_get_ciphers 91.Fn SSL_get_ciphers
80returns a pointer to an internal cipher stack, which will be freed 92and
93.Fn SSL_CTX_get_ciphers
94return pointers to internal cipher stacks, which will be freed
81later on when the 95later on when the
82.Vt SSL 96.Vt SSL
97or
98.Vt SSL_CTX
83object is freed. 99object is freed.
84Therefore, the calling code must not free the return value itself. 100Therefore, the calling code must not free the return value itself.
85.Pp 101.Pp
86The details of the ciphers obtained by 102The details of the ciphers obtained by
87.Fn SSL_get_ciphers 103.Fn SSL_get_ciphers
104and
105.Fn SSL_CTX_get_ciphers
88can be obtained using the 106can be obtained using the
89.Xr SSL_CIPHER_get_name 3 107.Xr SSL_CIPHER_get_name 3
90family of functions. 108family of functions.