1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-12-01 17:36:10 +03:00

Fixed signedness in login.c

This commit is contained in:
Erik Ekman 2007-01-28 12:54:16 +00:00
parent 2127ea784f
commit 4f1c123c8e

View File

@ -22,7 +22,7 @@
/* Needs a 16byte array for output, and 32 bytes password */ /* Needs a 16byte array for output, and 32 bytes password */
void login_calculate(char *out, int len, char *pass, int seed) { void login_calculate(char *out, int len, char *pass, int seed) {
char temp[32]; unsigned char temp[32];
md5_state_t ctx; md5_state_t ctx;
int i; int i;
int k; int k;
@ -41,6 +41,6 @@ void login_calculate(char *out, int len, char *pass, int seed) {
} }
md5_init(&ctx); md5_init(&ctx);
md5_append(&ctx, temp, 32); md5_append(&ctx, temp, 32);
md5_finish(&ctx, out); md5_finish(&ctx, (unsigned char *) out);
} }