mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 16:19:20 +02:00
Fixed signedness in login.c
This commit is contained in:
parent
2127ea784f
commit
4f1c123c8e
|
@ -22,7 +22,7 @@
|
|||
|
||||
/* Needs a 16byte array for output, and 32 bytes password */
|
||||
void login_calculate(char *out, int len, char *pass, int seed) {
|
||||
char temp[32];
|
||||
unsigned char temp[32];
|
||||
md5_state_t ctx;
|
||||
int i;
|
||||
int k;
|
||||
|
@ -41,6 +41,6 @@ void login_calculate(char *out, int len, char *pass, int seed) {
|
|||
}
|
||||
md5_init(&ctx);
|
||||
md5_append(&ctx, temp, 32);
|
||||
md5_finish(&ctx, out);
|
||||
md5_finish(&ctx, (unsigned char *) out);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue