diff options
author | tb <> | 2024-12-10 08:42:12 +0000 |
---|---|---|
committer | tb <> | 2024-12-10 08:42:12 +0000 |
commit | aef083f7c077d78ca91f506558203279c7aa7309 (patch) | |
tree | 5e3f3414f0e8bf5e8ccc8c99569310c15b460575 /src | |
parent | e16e26bd16a6e32b9bf981ec6574e989586769a5 (diff) | |
download | openbsd-aef083f7c077d78ca91f506558203279c7aa7309.tar.gz openbsd-aef083f7c077d78ca91f506558203279c7aa7309.tar.bz2 openbsd-aef083f7c077d78ca91f506558203279c7aa7309.zip |
Document tls_peer_cert_common_name()
ok beck
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libtls/man/tls_conn_version.3 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/lib/libtls/man/tls_conn_version.3 b/src/lib/libtls/man/tls_conn_version.3 index 9ab6932f54..8fb30624d7 100644 --- a/src/lib/libtls/man/tls_conn_version.3 +++ b/src/lib/libtls/man/tls_conn_version.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: tls_conn_version.3,v 1.10 2019/11/02 13:43:14 jsing Exp $ | 1 | .\" $OpenBSD: tls_conn_version.3,v 1.11 2024/12/10 08:42:12 tb Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2015 Bob Beck <beck@openbsd.org> | 3 | .\" Copyright (c) 2015 Bob Beck <beck@openbsd.org> |
4 | .\" Copyright (c) 2016, 2018 Joel Sing <jsing@openbsd.org> | 4 | .\" Copyright (c) 2016, 2018 Joel Sing <jsing@openbsd.org> |
@@ -15,7 +15,7 @@ | |||
15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 | .\" | 17 | .\" |
18 | .Dd $Mdocdate: November 2 2019 $ | 18 | .Dd $Mdocdate: December 10 2024 $ |
19 | .Dt TLS_CONN_VERSION 3 | 19 | .Dt TLS_CONN_VERSION 3 |
20 | .Os | 20 | .Os |
21 | .Sh NAME | 21 | .Sh NAME |
@@ -30,6 +30,7 @@ | |||
30 | .Nm tls_peer_cert_chain_pem , | 30 | .Nm tls_peer_cert_chain_pem , |
31 | .Nm tls_peer_cert_issuer , | 31 | .Nm tls_peer_cert_issuer , |
32 | .Nm tls_peer_cert_subject , | 32 | .Nm tls_peer_cert_subject , |
33 | .Nm tls_peer_cert_common_name , | ||
33 | .Nm tls_peer_cert_hash , | 34 | .Nm tls_peer_cert_hash , |
34 | .Nm tls_peer_cert_notbefore , | 35 | .Nm tls_peer_cert_notbefore , |
35 | .Nm tls_peer_cert_notafter | 36 | .Nm tls_peer_cert_notafter |
@@ -65,6 +66,8 @@ | |||
65 | .Ft const char * | 66 | .Ft const char * |
66 | .Fn tls_peer_cert_subject "struct tls *ctx" | 67 | .Fn tls_peer_cert_subject "struct tls *ctx" |
67 | .Ft const char * | 68 | .Ft const char * |
69 | .Fn tls_peer_cert_common_name "struct tls *ctx" | ||
70 | .Ft const char * | ||
68 | .Fn tls_peer_cert_hash "struct tls *ctx" | 71 | .Fn tls_peer_cert_hash "struct tls *ctx" |
69 | .Ft time_t | 72 | .Ft time_t |
70 | .Fn tls_peer_cert_notbefore "struct tls *ctx" | 73 | .Fn tls_peer_cert_notbefore "struct tls *ctx" |
@@ -133,6 +136,11 @@ corresponding to the subject of the peer certificate from | |||
133 | returns a string | 136 | returns a string |
134 | corresponding to the issuer of the peer certificate from | 137 | corresponding to the issuer of the peer certificate from |
135 | .Ar ctx . | 138 | .Ar ctx . |
139 | .Fn tls_peer_cert_common_name | ||
140 | returns a string | ||
141 | corresponding to the common name of the peer certificate from | ||
142 | .Ar ctx | ||
143 | or the empty string if no common name is present. | ||
136 | .Pp | 144 | .Pp |
137 | .Fn tls_peer_cert_hash | 145 | .Fn tls_peer_cert_hash |
138 | returns a string | 146 | returns a string |
@@ -209,6 +217,9 @@ appeared in | |||
209 | .Fn tls_conn_cipher_strength | 217 | .Fn tls_conn_cipher_strength |
210 | appeared in | 218 | appeared in |
211 | .Ox 6.7 . | 219 | .Ox 6.7 . |
220 | .Fn tls_peer_cert_common_name | ||
221 | appeared in | ||
222 | .Ox 7.7 . | ||
212 | .Sh AUTHORS | 223 | .Sh AUTHORS |
213 | .An Bob Beck Aq Mt beck@openbsd.org | 224 | .An Bob Beck Aq Mt beck@openbsd.org |
214 | .An Joel Sing Aq Mt jsing@openbsd.org | 225 | .An Joel Sing Aq Mt jsing@openbsd.org |