X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fcrypt%2Fcrypt_md5.c;h=6e75b36cbd6b981940089480630f1fec68183fa7;hp=02f224448d7ea69dbadf9c0a95120640a31ebec1;hb=c50925071cce9c6342597f5671e30d2970c6ff4a;hpb=93ea998c9c5a29cb34f3171f24f96d3cfe4f9cb6 diff --git a/src/crypt/crypt_md5.c b/src/crypt/crypt_md5.c index 02f22444..6e75b36c 100644 --- a/src/crypt/crypt_md5.c +++ b/src/crypt/crypt_md5.c @@ -118,7 +118,7 @@ static void md5_init(struct md5 *s) s->h[3] = 0x10325476; } -static void md5_sum(struct md5 *s, uint8_t md[16]) +static void md5_sum(struct md5 *s, uint8_t *md) { int i; @@ -182,7 +182,7 @@ static void md5_update(struct md5 *s, const void *m, unsigned long len) #define KEY_MAX 30000 #define SALT_MAX 8 -static unsigned char b64[] = +static const unsigned char b64[] = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; static char *to64(char *s, unsigned int u, int n)