mirror of
https://github.com/anope/anope.git
synced 2026-07-05 06:13:13 +02:00
Also fix enc_old using the previous commit's fix.
This commit is contained in:
@@ -170,7 +170,7 @@ static void MD5Update(MD5_CTX *context, const unsigned char *input, unsigned inp
|
||||
/* MD5 finalization. Ends an MD5 message-digest operation, writing the
|
||||
* the message digest and zeroizing the context.
|
||||
*/
|
||||
static void MD5Final(unsigned char digest[16], MD5_CTX *context)
|
||||
static void MD5Final(unsigned char digest[17], MD5_CTX *context)
|
||||
{
|
||||
unsigned char bits[8];
|
||||
unsigned index, padLen;
|
||||
@@ -333,7 +333,7 @@ class EOld : public Module
|
||||
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest)
|
||||
{
|
||||
MD5_CTX context;
|
||||
char digest[33] = "", digest2[16] = "";
|
||||
char digest[33] = "", digest2[17] = "";
|
||||
Anope::string cpass;
|
||||
int i;
|
||||
Anope::string buf = "oldmd5:";
|
||||
|
||||
Reference in New Issue
Block a user