1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-18 11:31:00 -05:00

New utility function base64_valid().

For when you want to tell the difference between a base64-encoded
string and some other kind of string that might replace it.
This commit is contained in:
Simon Tatham
2022-05-01 11:19:10 +01:00
parent 2a44b6354f
commit d06ae2f5c3
3 changed files with 56 additions and 0 deletions

1
misc.h
View File

@ -114,6 +114,7 @@ strbuf *base64_decode_sb(ptrlen data);
void base64_encode_bs(BinarySink *bs, ptrlen data, int cpl);
void base64_encode_fp(FILE *fp, ptrlen data, int cpl);
strbuf *base64_encode_sb(ptrlen data, int cpl);
bool base64_valid(ptrlen data);
struct bufchain_granule;
struct bufchain_tag {