summaryrefslogtreecommitdiff
path: root/src/core/enc_md5.c
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-21 21:39:32 -0400
committerAdam <Adam@anope.org>2012-09-21 21:39:32 -0400
commit3779ed916a1bf70d744a7ba6ac5fa31862057d0f (patch)
tree0e1f5f3b2b8c36eefa8e52872fb2164fa5569075 /src/core/enc_md5.c
parent3f05a42515b588b508419040e71b74ea2a27f1d0 (diff)
Made all module functions static to fix OSX's linker from linking
modules with similar function names to each other which causes complete and total chaos.
Diffstat (limited to 'src/core/enc_md5.c')
-rw-r--r--src/core/enc_md5.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/enc_md5.c b/src/core/enc_md5.c
index 87c3e7ca6..780b05dcc 100644
--- a/src/core/enc_md5.c
+++ b/src/core/enc_md5.c
@@ -74,8 +74,8 @@ typedef void *POINTER;
#define S44 21
void Ano_MD5Transform (UINT4 [4], unsigned char [64]);
-void Encode (unsigned char *, UINT4 *, unsigned int);
-void Decode (UINT4 *, unsigned char *, unsigned int);
+static void Encode (unsigned char *, UINT4 *, unsigned int);
+static void Decode (UINT4 *, unsigned char *, unsigned int);
static unsigned char PADDING[64] = {
0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -299,7 +299,7 @@ unsigned char block[64];
/* Encodes input (UINT4) into output (unsigned char). Assumes len is
a multiple of 4.
*/
-void Encode (output, input, len)
+static void Encode (output, input, len)
unsigned char *output;
UINT4 *input;
unsigned int len;
@@ -317,7 +317,7 @@ unsigned int len;
/* Decodes input (unsigned char) into output (UINT4). Assumes len is
a multiple of 4.
*/
-void Decode (output, input, len)
+static void Decode (output, input, len)
UINT4 *output;
unsigned char *input;
unsigned int len;
@@ -335,7 +335,7 @@ unsigned int len;
#define XTOI(c) ((c)>9 ? (c)-'A'+10 : (c)-'0')
-int md5_encrypt(const char *src, int len, char *dest, int size)
+static int md5_encrypt(const char *src, int len, char *dest, int size)
{
MD5_CTX context;
char tmp[33];
@@ -362,7 +362,7 @@ int md5_encrypt(const char *src, int len, char *dest, int size)
}
-int md5_encrypt_check_len(int passlen, int bufsize)
+static int md5_encrypt_check_len(int passlen, int bufsize)
{
if (bufsize < 16)
fatal("enc_md5: md5_check_len(): buffer too small (%d)", bufsize);
@@ -370,13 +370,13 @@ int md5_encrypt_check_len(int passlen, int bufsize)
}
-int md5_decrypt(const char *src, char *dest, int size)
+static int md5_decrypt(const char *src, char *dest, int size)
{
return 0;
}
-int md5_check_password(const char *plaintext, const char *password)
+static int md5_check_password(const char *plaintext, const char *password)
{
char buf[BUFSIZE];