Re: [PATCH] base64: Allow URL-safe base64 strings to be decoded

2012-08-02 Thread Simon Josefsson
Bruno Haible writes: > Hi, > > Wido den Hollander wrote: >> With URL-safe base64 the + and / are replaced by - and _ >> >> This way we can accept base64 strings which are URL-safe. > > There are many more variants of base64, see > http://en.wikipedia.org/wiki/Base64 > > The current code is mea

Re: [PATCH] base64: Allow URL-safe base64 strings to be decoded

2012-07-05 Thread Bruno Haible
Hi, Wido den Hollander wrote: > With URL-safe base64 the + and / are replaced by - and _ > > This way we can accept base64 strings which are URL-safe. There are many more variants of base64, see http://en.wikipedia.org/wiki/Base64 The current code is meant to implement RFC 4648. Since for RFC

[PATCH] base64: Allow URL-safe base64 strings to be decoded

2012-07-04 Thread Wido den Hollander
With URL-safe base64 the + and / are replaced by - and _ This way we can accept base64 strings which are URL-safe. Signed-off-by: Wido den Hollander --- lib/base64.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/base64.c b/lib/base64.c index 194e9ca..be91495 100644 --- a/lib/base