diff options
author | jsing <> | 2015-08-27 07:15:39 +0000 |
---|---|---|
committer | jsing <> | 2015-08-27 07:15:39 +0000 |
commit | c29954b1618ca744767a1c58357ca89ce5e283f0 (patch) | |
tree | 9ece73d21417f61f5081369579c32a6024bf9bf6 /src/lib | |
parent | 179b3892c5c8f9b1c7e1a2e1af5598ff63911fcb (diff) | |
download | openbsd-c29954b1618ca744767a1c58357ca89ce5e283f0.tar.gz openbsd-c29954b1618ca744767a1c58357ca89ce5e283f0.tar.bz2 openbsd-c29954b1618ca744767a1c58357ca89ce5e283f0.zip |
Make functions that are internal to tls verify static.
Spotted by Marko Kreen.
Rides libtls major bump.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libtls/tls_verify.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/libtls/tls_verify.c b/src/lib/libtls/tls_verify.c index 6a569e1761..8ddc68a8f1 100644 --- a/src/lib/libtls/tls_verify.c +++ b/src/lib/libtls/tls_verify.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_verify.c,v 1.8 2015/04/29 00:24:31 doug Exp $ */ | 1 | /* $OpenBSD: tls_verify.c,v 1.9 2015/08/27 07:15:39 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 | * | 4 | * |
@@ -26,11 +26,12 @@ | |||
26 | 26 | ||
27 | #include "tls_internal.h" | 27 | #include "tls_internal.h" |
28 | 28 | ||
29 | int tls_match_name(const char *cert_name, const char *name); | 29 | static int tls_match_name(const char *cert_name, const char *name); |
30 | int tls_check_subject_altname(struct tls *ctx, X509 *cert, const char *name); | 30 | static int tls_check_subject_altname(struct tls *ctx, X509 *cert, |
31 | int tls_check_common_name(struct tls *ctx, X509 *cert, const char *name); | 31 | const char *name); |
32 | static int tls_check_common_name(struct tls *ctx, X509 *cert, const char *name); | ||
32 | 33 | ||
33 | int | 34 | static int |
34 | tls_match_name(const char *cert_name, const char *name) | 35 | tls_match_name(const char *cert_name, const char *name) |
35 | { | 36 | { |
36 | const char *cert_domain, *domain, *next_dot; | 37 | const char *cert_domain, *domain, *next_dot; |
@@ -80,7 +81,7 @@ tls_match_name(const char *cert_name, const char *name) | |||
80 | } | 81 | } |
81 | 82 | ||
82 | /* See RFC 5280 section 4.2.1.6 for SubjectAltName details. */ | 83 | /* See RFC 5280 section 4.2.1.6 for SubjectAltName details. */ |
83 | int | 84 | static int |
84 | tls_check_subject_altname(struct tls *ctx, X509 *cert, const char *name) | 85 | tls_check_subject_altname(struct tls *ctx, X509 *cert, const char *name) |
85 | { | 86 | { |
86 | STACK_OF(GENERAL_NAME) *altname_stack = NULL; | 87 | STACK_OF(GENERAL_NAME) *altname_stack = NULL; |
@@ -190,7 +191,7 @@ tls_check_subject_altname(struct tls *ctx, X509 *cert, const char *name) | |||
190 | return rv; | 191 | return rv; |
191 | } | 192 | } |
192 | 193 | ||
193 | int | 194 | static int |
194 | tls_check_common_name(struct tls *ctx, X509 *cert, const char *name) | 195 | tls_check_common_name(struct tls *ctx, X509 *cert, const char *name) |
195 | { | 196 | { |
196 | X509_NAME *subject_name; | 197 | X509_NAME *subject_name; |