summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/x509.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-07-05 12:37:06 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-07-05 12:37:06 +0000
commit4d054eb4744e3933df6e31b5a2890861f0bea535 (patch)
tree5093771e2a2e4655a5adb308ceb73f3639a1175f /sbin/isakmpd/x509.c
parentbccfd06344337d5cc1a5b43214e0b384da9fdb6d (diff)
Add prototypes and some other various cleanup.
Diffstat (limited to 'sbin/isakmpd/x509.c')
-rw-r--r--sbin/isakmpd/x509.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/sbin/isakmpd/x509.c b/sbin/isakmpd/x509.c
index 9092f6da932..a8b706a1d37 100644
--- a/sbin/isakmpd/x509.c
+++ b/sbin/isakmpd/x509.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.c,v 1.61 2001/07/05 07:28:00 angelos Exp $ */
+/* $OpenBSD: x509.c,v 1.62 2001/07/05 12:37:00 ho Exp $ */
/* $EOM: x509.c,v 1.54 2001/01/16 18:42:16 ho Exp $ */
/*
@@ -69,6 +69,11 @@
#include "util.h"
#include "x509.h"
+static u_int16_t x509_hash (u_int8_t *, size_t);
+static void x509_hash_init (void);
+static X509 *x509_hash_find (u_int8_t *, size_t);
+static int x509_hash_enter (X509 *);
+
/*
* X509_STOREs do not support subjectAltNames, so we have to build
* our own hash table.
@@ -518,7 +523,7 @@ x509_generate_kn (int id, X509 *cert)
}
#endif /* USE_POLICY */
-u_int16_t
+static u_int16_t
x509_hash (u_int8_t *id, size_t len)
{
int i;
@@ -539,8 +544,8 @@ x509_hash (u_int8_t *id, size_t len)
return bucket;
}
-void
-x509_hash_init ()
+static void
+x509_hash_init (void)
{
struct x509_hash *certh;
int i;
@@ -572,7 +577,7 @@ x509_hash_init ()
}
/* Lookup a certificate by an ID blob. */
-X509 *
+static X509 *
x509_hash_find (u_int8_t *id, size_t len)
{
struct x509_hash *cert;
@@ -612,7 +617,7 @@ x509_hash_find (u_int8_t *id, size_t len)
return 0;
}
-int
+static int
x509_hash_enter (X509 *cert)
{
u_int16_t bucket = 0;