summaryrefslogtreecommitdiff
path: root/regress/sys/crypto
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-31 21:48:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-07-31 21:48:11 +0000
commit8deaa5cb1bdad9c4505896866607f4272b307e9a (patch)
treef2b66a24b21f1edc23c12fdb15eab63814fc036d /regress/sys/crypto
parent1472e2b5666bd9c64d37882b7cfb2596d9352eb3 (diff)
various cleanups; david says results are same
Diffstat (limited to 'regress/sys/crypto')
-rw-r--r--regress/sys/crypto/auth/md5.c8
-rw-r--r--regress/sys/crypto/enc/des3.c10
2 files changed, 9 insertions, 9 deletions
diff --git a/regress/sys/crypto/auth/md5.c b/regress/sys/crypto/auth/md5.c
index 8de6b7f8a77..83207b64d83 100644
--- a/regress/sys/crypto/auth/md5.c
+++ b/regress/sys/crypto/auth/md5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md5.c,v 1.3 2002/06/23 21:46:10 wcobb Exp $ */
+/* $OpenBSD: md5.c,v 1.4 2003/07/31 21:48:07 deraadt Exp $ */
/*
* Copyright (c) 2002 Markus Friedl. All rights reserverd.
@@ -37,7 +37,7 @@
#define MD5LEN 16
-char *
+static char *
sysmd5(const char *s, size_t len)
{
static char md[MD5LEN*2 + 1];
@@ -94,7 +94,7 @@ err:
return (NULL);
}
-int
+static int
getallowsoft(void)
{
int mib[2], old;
@@ -110,7 +110,7 @@ getallowsoft(void)
return old;
}
-void
+static void
setallowsoft(int new)
{
int mib[2], old;
diff --git a/regress/sys/crypto/enc/des3.c b/regress/sys/crypto/enc/des3.c
index 49eda4d4113..0d32a56fd48 100644
--- a/regress/sys/crypto/enc/des3.c
+++ b/regress/sys/crypto/enc/des3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: des3.c,v 1.5 2002/06/23 21:46:10 wcobb Exp $ */
+/* $OpenBSD: des3.c,v 1.6 2003/07/31 21:48:07 deraadt Exp $ */
/*
* Copyright (c) 2002 Markus Friedl. All rights reserverd.
@@ -37,7 +37,7 @@
#include <string.h>
#include <unistd.h>
-int
+static int
syscrypt(const unsigned char *key, size_t klen, const unsigned char *iv,
const unsigned char *in, unsigned char *out, size_t len, int encrypt)
{
@@ -90,7 +90,7 @@ err:
return (-1);
}
-int
+static int
getallowsoft(void)
{
int mib[2], old;
@@ -106,7 +106,7 @@ getallowsoft(void)
return old;
}
-void
+static void
setallowsoft(int new)
{
int mib[2], old;
@@ -121,7 +121,7 @@ setallowsoft(int new)
err(1, "sysctl failed");
}
-int
+static int
match(unsigned char *a, unsigned char *b, size_t len)
{
int i;