- MD5Init(&ctx);
- MD5Update(&ctx, &idbyte, 1);
- MD5Update(&ctx, secret, secret_len);
- MD5Update(&ctx, challenge, challenge_len);
- MD5Final(&response[1], &ctx);
+ MD5_Init(&ctx);
+ MD5_Update(&ctx, &idbyte, 1);
+ MD5_Update(&ctx, (u_char *)secret, secret_len);
+ MD5_Update(&ctx, challenge, challenge_len);
+ MD5_Final(&response[1], &ctx);