From 8deaa5cb1bdad9c4505896866607f4272b307e9a Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 31 Jul 2003 21:48:11 +0000 Subject: various cleanups; david says results are same --- regress/sys/crypto/auth/md5.c | 8 ++++---- regress/sys/crypto/enc/des3.c | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'regress/sys/crypto') 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 #include -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; -- cgit v1.2.3