mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#8878 Include the first character in the transformation
This commit is contained in:
parent
f65eaee285
commit
d40a832db0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user