ITS#8878 Include the first character in the transformation

This commit is contained in:
Ondřej Kuzník 2018-11-08 11:09:38 +00:00
parent f65eaee285
commit d40a832db0

View File

@ -59,15 +59,14 @@ const struct berval pbkdf2_sha512_scheme = BER_BVC("{PBKDF2-SHA512}");
static int b64_to_ab64(char *str)
{
char *p = str;
while(*p++){
do {
if(*p == '+'){
*p = '.';
}
if(*p == '='){
*p = '\0';
break;
}
}
} while(*p++);
return 0;
}