summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-07-14 15:48:24 +0000
committertb <>2024-07-14 15:48:24 +0000
commit46bc2def1ec6f48f28ad365f1bb5ff6031d74379 (patch)
tree932ded6972cad818dc5dcfb3768061beb52e2edc
parentf3b35d1af02c3bc250276acd62a2434d3b80d349 (diff)
downloadopenbsd-46bc2def1ec6f48f28ad365f1bb5ff6031d74379.tar.gz
openbsd-46bc2def1ec6f48f28ad365f1bb5ff6031d74379.tar.bz2
openbsd-46bc2def1ec6f48f28ad365f1bb5ff6031d74379.zip
Document SSL_CIPHER_get_handshake_digest(3)
-rw-r--r--src/lib/libssl/man/SSL_CIPHER_get_name.324
1 files changed, 22 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 235ff1408e..633ee3ff64 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.14 2022/07/17 08:51:07 jsg Exp $ 1.\" $OpenBSD: SSL_CIPHER_get_name.3,v 1.15 2024/07/14 15:48:24 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: July 17 2022 $ 55.Dd $Mdocdate: July 14 2024 $
56.Dt SSL_CIPHER_GET_NAME 3 56.Dt SSL_CIPHER_GET_NAME 3
57.Os 57.Os
58.Sh NAME 58.Sh NAME
@@ -61,6 +61,7 @@
61.Nm SSL_CIPHER_get_version , 61.Nm SSL_CIPHER_get_version ,
62.Nm SSL_CIPHER_get_cipher_nid , 62.Nm SSL_CIPHER_get_cipher_nid ,
63.Nm SSL_CIPHER_get_digest_nid , 63.Nm SSL_CIPHER_get_digest_nid ,
64.Nm SSL_CIPHER_get_handshake_digest ,
64.Nm SSL_CIPHER_get_kx_nid , 65.Nm SSL_CIPHER_get_kx_nid ,
65.Nm SSL_CIPHER_get_auth_nid , 66.Nm SSL_CIPHER_get_auth_nid ,
66.Nm SSL_CIPHER_is_aead , 67.Nm SSL_CIPHER_is_aead ,
@@ -80,6 +81,8 @@
80.Fn SSL_CIPHER_get_cipher_nid "const SSL_CIPHER *cipher" 81.Fn SSL_CIPHER_get_cipher_nid "const SSL_CIPHER *cipher"
81.Ft int 82.Ft int
82.Fn SSL_CIPHER_get_digest_nid "const SSL_CIPHER *cipher" 83.Fn SSL_CIPHER_get_digest_nid "const SSL_CIPHER *cipher"
84.Ft "const EVP_MD *"
85.Fn SSL_CIPHER_get_handshake_digest "const SSL_CIPHER *cipher"
83.Ft int 86.Ft int
84.Fn SSL_CIPHER_get_kx_nid "const SSL_CIPHER *cipher" 87.Fn SSL_CIPHER_get_kx_nid "const SSL_CIPHER *cipher"
85.Ft int 88.Ft int
@@ -132,6 +135,14 @@ If there is no digest (e.g. for AEAD cipher suites), then
132.Dv NID_undef 135.Dv NID_undef
133is returned. 136is returned.
134.Pp 137.Pp
138.Fn SSL_CIPHER_get_handshake_digest
139returns the
140.Vt EVP_MD
141object representing the digest used during a TLS handshake with the cipher
142.Fa c ,
143which may be different to the digest used in the message authentication code
144for encrypted records.
145.Pp
135.Fn SSL_CIPHER_get_kx_nid 146.Fn SSL_CIPHER_get_kx_nid
136returns the key exchange NID corresponding to the method used by the 147returns the key exchange NID corresponding to the method used by the
137.Fa cipher . 148.Fa cipher .
@@ -307,6 +318,12 @@ and
307return an NID constant or 318return an NID constant or
308.Dv NID_undef 319.Dv NID_undef
309if an error occurred. 320if an error occurred.
321.Fn SSL_CIPHER_get_handshake_digest
322returns a valid
323.Vt EVP_MD
324object or
325.Dv NULL
326if an error ocurred.
310.Pp 327.Pp
311.Fn SSL_CIPHER_is_aead 328.Fn SSL_CIPHER_is_aead
312returns 1 if the 329returns 1 if the
@@ -369,6 +386,9 @@ first appeared in OpenSSL 1.1.0 and have been available since
369.Fn SSL_CIPHER_find 386.Fn SSL_CIPHER_find
370first appeared in OpenSSL 1.1.0 and has been available since 387first appeared in OpenSSL 1.1.0 and has been available since
371.Ox 7.0 . 388.Ox 7.0 .
389.Fn SSL_CIPHER_get_handshake_digest
390first appeared in OpenSSL 1.1.1 and has been available since
391.Ox 7.5 .
372.Sh BUGS 392.Sh BUGS
373If 393If
374.Fn SSL_CIPHER_description 394.Fn SSL_CIPHER_description