/* $ModDesc: Allows for MD5 encrypted oper passwords */
/* $ModDep: m_hash.h */
-#include "inspircd_config.h"
+#include "inspircd.h"
#ifdef HAS_STDINT
#include <stdint.h>
#endif
#include "users.h"
#include "channels.h"
#include "modules.h"
-#include "inspircd.h"
-
#include "m_hash.h"
/* The four core functions - F1 is optimized somewhat */
} while (--words);
}
- void MD5Init(struct MD5Context *ctx, unsigned int* key = NULL)
+ void MD5Init(MD5Context *ctx, unsigned int* key = NULL)
{
/* These are the defaults for md5 */
if (!key)
ctx->bytes[1] = 0;
}
- void MD5Update(struct MD5Context *ctx, byte const *buf, int len)
+ void MD5Update(MD5Context *ctx, byte const *buf, int len)
{
word32 t;
memcpy(ctx->in, buf, len);
}
- void MD5Final(byte digest[16], struct MD5Context *ctx)
+ void MD5Final(byte digest[16], MD5Context *ctx)
{
int count = (int)(ctx->bytes[0] & 0x3f); /* Bytes in ctx->in */
byte *p = (byte *)ctx->in + count; /* First unused byte */