diff options
| author | June McEnroe <june@causal.agency> | 2026-06-01 14:45:02 -0400 |
|---|---|---|
| committer | June McEnroe <june@causal.agency> | 2026-06-01 14:45:02 -0400 |
| commit | f39835641d4413ef327857f0dc4a24d5b9599861 (patch) | |
| tree | deec6e5701019178078d700fcb187e97c6932c43 /tls_internal.h | |
| parent | Import LibreSSL 4.0.1 (diff) | |
| download | libretls-f39835641d4413ef327857f0dc4a24d5b9599861.tar.gz libretls-f39835641d4413ef327857f0dc4a24d5b9599861.zip | |
Import LibreSSL 4.1.0
Diffstat (limited to 'tls_internal.h')
| -rw-r--r-- | tls_internal.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tls_internal.h b/tls_internal.h index 5ff48ed..8e566a3 100644 --- a/tls_internal.h +++ b/tls_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_internal.h,v 1.85 2024/03/26 06:24:52 joshua Exp $ */ +/* $OpenBSD: tls_internal.h,v 1.86 2024/12/10 08:40:30 tb Exp $ */ /* * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> @@ -129,6 +129,7 @@ struct tls_conninfo { int session_resumed; char *version; + char *common_name; char *hash; char *issuer; char *subject; @@ -238,6 +239,8 @@ struct tls_config *tls_config_new_internal(void); struct tls *tls_new(void); struct tls *tls_server_conn(struct tls *ctx); +int tls_get_common_name(struct tls *_ctx, X509 *_cert, const char *_in_name, + char **_out_common_name); int tls_check_name(struct tls *ctx, X509 *cert, const char *servername, int *match); int tls_configure_server(struct tls *ctx); |