1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-20 02:25:14 -07:00

Additional check

This commit is contained in:
Frank Denis 2017-09-19 20:04:36 +02:00
parent 87af832ae2
commit aec433cecc

View File

@ -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);