summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-08-27 07:15:40 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-08-27 07:15:40 +0000
commitf039c973e9a4240e22e1709d2bed1e15065ab8c6 (patch)
tree6d05a571d09901a012adf130b4fe8cd3574ef31a /lib
parent97f963a5c0ddb89a55be70c0d3e12b3aab2ec4e0 (diff)
Make functions that are internal to tls verify static.
Spotted by Marko Kreen. Rides libtls major bump.
Diffstat (limited to 'lib')
-rw-r--r--lib/libtls/tls_verify.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/libtls/tls_verify.c b/lib/libtls/tls_verify.c
index 6a569e17613..8ddc68a8f1d 100644
--- a/lib/libtls/tls_verify.c
+++ b/lib/libtls/tls_verify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_verify.c,v 1.8 2015/04/29 00:24:31 doug Exp $ */
+/* $OpenBSD: tls_verify.c,v 1.9 2015/08/27 07:15:39 jsing Exp $ */
/*
* Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org>
*
@@ -26,11 +26,12 @@
#include "tls_internal.h"
-int tls_match_name(const char *cert_name, const char *name);
-int tls_check_subject_altname(struct tls *ctx, X509 *cert, const char *name);
-int tls_check_common_name(struct tls *ctx, X509 *cert, const char *name);
+static int tls_match_name(const char *cert_name, const char *name);
+static int tls_check_subject_altname(struct tls *ctx, X509 *cert,
+ const char *name);
+static int tls_check_common_name(struct tls *ctx, X509 *cert, const char *name);
-int
+static int
tls_match_name(const char *cert_name, const char *name)
{
const char *cert_domain, *domain, *next_dot;
@@ -80,7 +81,7 @@ tls_match_name(const char *cert_name, const char *name)
}
/* See RFC 5280 section 4.2.1.6 for SubjectAltName details. */
-int
+static int
tls_check_subject_altname(struct tls *ctx, X509 *cert, const char *name)
{
STACK_OF(GENERAL_NAME) *altname_stack = NULL;
@@ -190,7 +191,7 @@ tls_check_subject_altname(struct tls *ctx, X509 *cert, const char *name)
return rv;
}
-int
+static int
tls_check_common_name(struct tls *ctx, X509 *cert, const char *name)
{
X509_NAME *subject_name;