Skip to content
Snippets Groups Projects
Commit 110409ea authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#8878 Include the first character in the transformation

parent 491e206e
No related branches found
No related tags found
No related merge requests found
...@@ -59,15 +59,14 @@ const struct berval pbkdf2_sha512_scheme = BER_BVC("{PBKDF2-SHA512}"); ...@@ -59,15 +59,14 @@ const struct berval pbkdf2_sha512_scheme = BER_BVC("{PBKDF2-SHA512}");
static int b64_to_ab64(char *str) static int b64_to_ab64(char *str)
{ {
char *p = str; char *p = str;
while(*p++){ do {
if(*p == '+'){ if(*p == '+'){
*p = '.'; *p = '.';
} }
if(*p == '='){ if(*p == '='){
*p = '\0'; *p = '\0';
break;
} }
} } while(*p++);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment