diff options
author | jsing <> | 2015-02-11 06:46:33 +0000 |
---|---|---|
committer | jsing <> | 2015-02-11 06:46:33 +0000 |
commit | c6f3fe1fbc8da2fa6de30b10f1f219ab1f809438 (patch) | |
tree | 6438c97ac6c93d27e53440f04e1fb34004f999b8 /src/lib/libtls/tls_internal.h | |
parent | 01fabf00f34c0ca7466352b13f7071a4170301fc (diff) | |
download | openbsd-c6f3fe1fbc8da2fa6de30b10f1f219ab1f809438.tar.gz openbsd-c6f3fe1fbc8da2fa6de30b10f1f219ab1f809438.tar.bz2 openbsd-c6f3fe1fbc8da2fa6de30b10f1f219ab1f809438.zip |
Be consistent with naming - only use "host" and "hostname" when referring
to an actual host and use "servername" when referring to the name of the
TLS server that we expect to be indentified in the server certificate.
Likewise, rename verify_host to verify_name and use the term "name"
throughout the verification code (rather than host or hostname).
Requested by and ok tedu@
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r-- | src/lib/libtls/tls_internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h index f0feddcf5b..78e6b1fe2b 100644 --- a/src/lib/libtls/tls_internal.h +++ b/src/lib/libtls/tls_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_internal.h,v 1.9 2015/02/07 09:50:09 jsing Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.10 2015/02/11 06:46:33 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> | 3 | * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> |
4 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
@@ -41,8 +41,8 @@ struct tls_config { | |||
41 | size_t key_len; | 41 | size_t key_len; |
42 | uint32_t protocols; | 42 | uint32_t protocols; |
43 | int verify_cert; | 43 | int verify_cert; |
44 | int verify_host; | ||
45 | int verify_depth; | 44 | int verify_depth; |
45 | int verify_name; | ||
46 | }; | 46 | }; |
47 | 47 | ||
48 | #define TLS_CLIENT (1 << 0) | 48 | #define TLS_CLIENT (1 << 0) |
@@ -66,7 +66,7 @@ struct tls { | |||
66 | struct tls *tls_new(void); | 66 | struct tls *tls_new(void); |
67 | struct tls *tls_server_conn(struct tls *ctx); | 67 | struct tls *tls_server_conn(struct tls *ctx); |
68 | 68 | ||
69 | int tls_check_hostname(struct tls *ctx, X509 *cert, const char *host); | 69 | int tls_check_servername(struct tls *ctx, X509 *cert, const char *servername); |
70 | int tls_configure_keypair(struct tls *ctx); | 70 | int tls_configure_keypair(struct tls *ctx); |
71 | int tls_configure_server(struct tls *ctx); | 71 | int tls_configure_server(struct tls *ctx); |
72 | int tls_configure_ssl(struct tls *ctx); | 72 | int tls_configure_ssl(struct tls *ctx); |