if(superuser_username != NULL && superuser_password != NULL) {
- SHA_Init(&shactx);
- SHA_Update(&shactx, (const uint8_t *)superuser_password,
- strlen(superuser_password));
- SHA_Update(&shactx, challenge, 32);
- SHA_Final(d, &shactx);
+ SHA1_Init(&shactx);
+ SHA1_Update(&shactx, (const uint8_t *)superuser_password,
+ strlen(superuser_password));
+ SHA1_Update(&shactx, challenge, 32);
+ SHA1_Final(d, &shactx);
if(!strcmp(superuser_username, username) && !memcmp(d, digest, 20))
return 0xffffffff;
if((b & ae->ae_netmask) != ae->ae_network)
continue; /* IP based access mismatches */
- SHA_Init(&shactx);
- SHA_Update(&shactx, (const uint8_t *)ae->ae_password,
- strlen(ae->ae_password));
+ SHA1_Init(&shactx);
+ SHA1_Update(&shactx, (const uint8_t *)ae->ae_password,
+ strlen(ae->ae_password));
SHA1_Update(&shactx, challenge, 32);
SHA1_Final(d, &shactx);