summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2021-05-12 15:12:35 +0000
committertb <>2021-05-12 15:12:35 +0000
commitaafc80514b39dd461fa50a3e2baad054c5302120 (patch)
treec1775da31850cc7c3b5646f473c80a5e09dd2c52 /src/lib
parent67376c45e9c21c8adb657eea570fc66577877444 (diff)
downloadopenbsd-aafc80514b39dd461fa50a3e2baad054c5302120.tar.gz
openbsd-aafc80514b39dd461fa50a3e2baad054c5302120.tar.bz2
openbsd-aafc80514b39dd461fa50a3e2baad054c5302120.zip
Merge documentation for SSL_CIPHER_find(3) from OpenSSL 1.1.1.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/man/SSL_CIPHER_get_name.331
1 files changed, 29 insertions, 2 deletions
diff --git a/src/lib/libssl/man/SSL_CIPHER_get_name.3 b/src/lib/libssl/man/SSL_CIPHER_get_name.3
index 697b1bd394..d67337295b 100644
--- a/src/lib/libssl/man/SSL_CIPHER_get_name.3
+++ b/src/lib/libssl/man/SSL_CIPHER_get_name.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: SSL_CIPHER_get_name.3,v 1.11 2020/04/14 15:27:35 schwarze Exp $ 1.\" $OpenBSD: SSL_CIPHER_get_name.3,v 1.12 2021/05/12 15:12:35 tb Exp $
2.\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
3.\" selective merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800 3.\" selective merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800
4.\" 4.\"
@@ -52,7 +52,7 @@
52.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 52.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
53.\" OF THE POSSIBILITY OF SUCH DAMAGE. 53.\" OF THE POSSIBILITY OF SUCH DAMAGE.
54.\" 54.\"
55.Dd $Mdocdate: April 14 2020 $ 55.Dd $Mdocdate: May 12 2021 $
56.Dt SSL_CIPHER_GET_NAME 3 56.Dt SSL_CIPHER_GET_NAME 3
57.Os 57.Os
58.Sh NAME 58.Sh NAME
@@ -64,6 +64,7 @@
64.Nm SSL_CIPHER_get_kx_nid , 64.Nm SSL_CIPHER_get_kx_nid ,
65.Nm SSL_CIPHER_get_auth_nid , 65.Nm SSL_CIPHER_get_auth_nid ,
66.Nm SSL_CIPHER_is_aead , 66.Nm SSL_CIPHER_is_aead ,
67.Nm SSL_CIPHER_find ,
67.Nm SSL_CIPHER_get_id , 68.Nm SSL_CIPHER_get_id ,
68.Nm SSL_CIPHER_description 69.Nm SSL_CIPHER_description
69.Nd get SSL_CIPHER properties 70.Nd get SSL_CIPHER properties
@@ -85,6 +86,8 @@
85.Fn SSL_CIPHER_get_auth_nid "const SSL_CIPHER *cipher" 86.Fn SSL_CIPHER_get_auth_nid "const SSL_CIPHER *cipher"
86.Ft int 87.Ft int
87.Fn SSL_CIPHER_is_aead "const SSL_CIPHER *cipher" 88.Fn SSL_CIPHER_is_aead "const SSL_CIPHER *cipher"
89.Ft const SSL_CIPHER *
90.Fn SSL_CIPHER_find "SSL *ssl" "const unsigned char *ptr"
88.Ft unsigned long 91.Ft unsigned long
89.Fn SSL_CIPHER_get_id "const SSL_CIPHER *cipher" 92.Fn SSL_CIPHER_get_id "const SSL_CIPHER *cipher"
90.Ft char * 93.Ft char *
@@ -157,6 +160,20 @@ returns 1 if the
157.Fa cipher 160.Fa cipher
158is AEAD (e.g. GCM or ChaCha20/Poly1305), or 0 if it is not AEAD. 161is AEAD (e.g. GCM or ChaCha20/Poly1305), or 0 if it is not AEAD.
159.Pp 162.Pp
163.Fn SSL_CIPHER_find
164returns a pointer to a
165.Vt SSL_CIPHER
166structure which has the cipher ID specified in
167.Fa ptr .
168The
169.Fa ptr
170parameter is an array of length two which stores the two-byte
171TLS cipher ID (as allocated by IANA) in network byte order.
172.Fa SSL_CIPHER_find
173returns
174.Dv NULL
175if an error occurs or the indicated cipher is not found.
176.Pp
160.Fn SSL_CIPHER_get_id 177.Fn SSL_CIPHER_get_id
161returns the ID of the given 178returns the ID of the given
162.Fa cipher , 179.Fa cipher ,
@@ -296,6 +313,13 @@ returns 1 if the
296.Fa cipher 313.Fa cipher
297is AEAD or 0 otherwise. 314is AEAD or 0 otherwise.
298.Pp 315.Pp
316.Fn SSL_CIPHER_find
317returns a pointer to a valid
318.Vt SSL_CIPHER
319structure or
320.Dv NULL
321if an error occurred.
322.Pp
299.Fn SSL_CIPHER_get_id 323.Fn SSL_CIPHER_get_id
300returns a 32-bit unsigned integer. 324returns a 32-bit unsigned integer.
301.Pp 325.Pp
@@ -342,6 +366,9 @@ and
342.Fn SSL_CIPHER_is_aead 366.Fn SSL_CIPHER_is_aead
343first appeared in OpenSSL 1.1.0 and have been available since 367first appeared in OpenSSL 1.1.0 and have been available since
344.Ox 6.3 . 368.Ox 6.3 .
369.Fn SSL_CIPHER_find
370first appeared in OpenSSL 1.1.0 and has been available since
371.Ox 7.0 .
345.Sh BUGS 372.Sh BUGS
346If 373If
347.Fn SSL_CIPHER_description 374.Fn SSL_CIPHER_description