(void)fr_strerror();
slen = fr_base64_decode((uint8_t *)&iterations, sizeof(iterations), (char const *)p, q - p);
if (slen < 0) {
- REDEBUG("Failed decoding PBKDF2-Password iterations component (%.*s)", (int)(q - p), p);
+ REDEBUG("Failed decoding PBKDF2-Password iterations component (%.*s): %s",
+ (int)(q - p), p, fr_strerror());
goto finish;
}
if (slen != sizeof(iterations)) {
MEM(salt = talloc_array(request, uint8_t, FR_BASE64_DEC_LENGTH(((size_t)(q - p)))));
slen = fr_base64_decode(salt, talloc_array_length(salt), (char const *) p, q - p);
if (slen < 0) {
- REDEBUG("Failed decoding PBKDF2-Password salt component");
+ REDEBUG("Failed decoding PBKDF2-Password salt component: %s", fr_strerror());
goto finish;
}
salt_len = (size_t)slen;
slen = fr_base64_decode(hash, sizeof(hash), (char const *)p, end - p);
if (slen < 0) {
- REDEBUG("Failed decoding PBKDF2-Password hash component");
+ REDEBUG("Failed decoding PBKDF2-Password hash component: %s", fr_strerror());
goto finish;
}