mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-06-24 18:10:55 +00:00
fixes
This commit is contained in:
parent
be50d6b929
commit
83a63a30ee
3 changed files with 23 additions and 16 deletions
|
@ -32,6 +32,10 @@ int main(void)
|
|||
tests0[i].in, buf, tests0[i].out);
|
||||
return 1;
|
||||
}
|
||||
if (!base64_valid(buf,0)) {
|
||||
printf("encoded data is considered invalid\n");
|
||||
return 3;
|
||||
}
|
||||
r = base64_from((u8 *)buf2, buf, strlen(buf));
|
||||
buf2[r] = '\0';
|
||||
if (strcmp(buf2, tests0[i].rev) != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue