Additional check
This commit is contained in:
parent
87af832ae2
commit
aec433cecc
@ -146,8 +146,8 @@ main(void)
|
|||||||
printf("[%s]\n", b64_end);
|
printf("[%s]\n", b64_end);
|
||||||
|
|
||||||
memset(buf1, '*', sizeof buf1);
|
memset(buf1, '*', sizeof buf1);
|
||||||
sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), "\n\r ", &bin_len,
|
assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), "\n\r ", &bin_len,
|
||||||
&b64_end, sodium_base64_VARIANT_ORIGINAL);
|
&b64_end, sodium_base64_VARIANT_ORIGINAL) == 0);
|
||||||
buf1[bin_len] = 0;
|
buf1[bin_len] = 0;
|
||||||
printf("[%s]\n", (const char *) buf1);
|
printf("[%s]\n", (const char *) buf1);
|
||||||
assert(*b64_end == 0);
|
assert(*b64_end == 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user