diff options
author | tb <> | 2021-01-27 17:59:57 +0000 |
---|---|---|
committer | tb <> | 2021-01-27 17:59:57 +0000 |
commit | c2f520b02cabecb368002da7e88f289a633f901f (patch) | |
tree | 04e92d523a80f0fac3ce3b0b30aa5c7e8fa606c9 /src/lib/libssl/man/SSL_get_finished.3 | |
parent | 374ca88cab53b2b0305a68ab98f5d5dc28375d08 (diff) | |
download | openbsd-c2f520b02cabecb368002da7e88f289a633f901f.tar.gz openbsd-c2f520b02cabecb368002da7e88f289a633f901f.tar.bz2 openbsd-c2f520b02cabecb368002da7e88f289a633f901f.zip |
Write SSL_get_finished() documentation from scratch.
ok beck
Diffstat (limited to 'src/lib/libssl/man/SSL_get_finished.3')
-rw-r--r-- | src/lib/libssl/man/SSL_get_finished.3 | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/lib/libssl/man/SSL_get_finished.3 b/src/lib/libssl/man/SSL_get_finished.3 new file mode 100644 index 0000000000..596703223e --- /dev/null +++ b/src/lib/libssl/man/SSL_get_finished.3 | |||
@@ -0,0 +1,77 @@ | |||
1 | .\" $OpenBSD: SSL_get_finished.3,v 1.1 2021/01/27 17:59:57 tb Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 2020 Theo Buehler <tb@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: January 27 2021 $ | ||
18 | .Dt SSL_GET_FINISHED 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm SSL_get_finished , | ||
22 | .Nm SSL_get_peer_finished | ||
23 | .Nd get last sent or last expected finished message | ||
24 | .Sh SYNOPSIS | ||
25 | .In openssl/ssl.h | ||
26 | .Ft size_t | ||
27 | .Fn SSL_get_finished "const SSL *ssl" "void *buf" "size_t count" | ||
28 | .Ft size_t | ||
29 | .Fn SSL_get_peer_finished "const SSL *ssl" "void *buf" "size_t count" | ||
30 | .Sh DESCRIPTION | ||
31 | .Fn SSL_get_finished | ||
32 | and | ||
33 | .Fn SSL_get_peer_finished | ||
34 | copy | ||
35 | .Fa count | ||
36 | bytes from the last finished message sent to the peer | ||
37 | or expected from the peer into the | ||
38 | caller-provided buffer | ||
39 | .Fa buf . | ||
40 | .Pp | ||
41 | The finished message is computed from a checksum of the handshake records | ||
42 | exchanged with the peer. | ||
43 | Its length depends on the ciphersuite in use and is at most | ||
44 | .Dv EVP_MAX_MD_SIZE , | ||
45 | i.e., 64 bytes. | ||
46 | .\" In TLSv1.3 the length is equal to the length of the hash algorithm | ||
47 | .\" used by the hash-based message authentication code (HMAC), | ||
48 | .\" which is currently either 32 bytes for SHA-256 or 48 bytes for SHA-384. | ||
49 | .\" In TLSv1.2 the length defaults to 12 bytes, but it can explicitly | ||
50 | .\" specified by the ciphersuite to be longer. | ||
51 | .\" In TLS versions 1.1 and 1.0, the finished message has a fixed length | ||
52 | .\" of 12 bytes. | ||
53 | .Sh RETURN VALUES | ||
54 | .Fn SSL_get_finished | ||
55 | and | ||
56 | .Fn SSL_get_peer_finished | ||
57 | return the number of bytes copied into | ||
58 | .Fa buf . | ||
59 | The return value is zero if the handshake has not reached the | ||
60 | finished message. | ||
61 | .Sh SEE ALSO | ||
62 | .Xr ssl 3 , | ||
63 | .Xr SSL_get_session 3 , | ||
64 | .Xr SSL_set_session 3 | ||
65 | .Sh STANDARDS | ||
66 | RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3, | ||
67 | section 4.4.4: Finished. | ||
68 | .Pp | ||
69 | RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2, | ||
70 | section 7.4.9: Finished. | ||
71 | .Sh HISTORY | ||
72 | .Fn SSL_get_finished | ||
73 | and | ||
74 | .Fn SSL_get_peer_finished | ||
75 | first appeared in SSLeay 0.9.5 | ||
76 | and have been available since | ||
77 | .Ox 2.7 . | ||