Commit 94c2d721 authored by Cypres TAC's avatar Cypres TAC
Browse files

c padding base64url update

parent 01ebab20
......@@ -189,14 +189,12 @@ static void to_base64(uint8_t *in, uint8_t *out, uint8_t n)
if (end - start == 1)
{
*pos++ = base64_table[(start[0] & 0x03) << 4];
*pos++ = '=';
}
else
{
*pos++ = base64_table[((start[0] & 0x03) << 4) | (start[1] >> 4)];
*pos++ = base64_table[(start[1] & 0x0f) << 2];
}
*pos++ = '=';
}
// Add terminal zero to string
......
......@@ -43,7 +43,7 @@ void usage(char *s, char *err)
printf("ERROR: %s\n\n", err);
printf("Usage: %s staff CRIexp venueType venueCategory1 venueCategory2 periodDuration PK_SA PK_MCTA SK_L [locationPhone locationRegion locationPin]\n\n", s);
printf("locationPhone: 15-digit-max international phone number\n");
printf("locationPin: 8-digit-max pin code\n");
printf("locationPin: 6-digit-max pin code\n");
exit(1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment