On Tue, Aug 23, 2022 at 09:50:20AM +0900, Dominique Martinet wrote:
> Dave Close wrote on Mon, Aug 22, 2022 at 03:01:11PM -0700:
> > $ grep CALL ./* | wc
> > 16325 61444 950870
> > $ grep CALL $( ls ./* ) | wc
> > 16375 61601 953451
> >
> > So I almost have a solution. Except the ext
* src/basenc.c (ignore-padding):
Padding is optional for base64url encoding and many web
services produce and expect payload without padding.
New command line argument (--ignore-padding) for basenc
allows generating paddingless base64url outputs and
you can also use it for decoding without scary
wa
+ int to_write = BASE_LENGTH (sum);
+ base_encode (inbuf, sum, outbuf, to_write);
+ if (without_padding)
+ {
+while (*(outbuf+to_write-1) == '=')
+{
+--to_write;
+}
+ }
Probably should make sure `to_wr
Indeed; your suggestion is now included:
* src/basenc.c (ignore-padding):
Padding is optional for base64url encoding and many web
services produce and expect payload without padding.
New command line argument (--ignore-padding) for basenc
allows generating paddingless base64url outputs and
you can