cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl_base64_decode not mod 3 issue

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 20 Dec 2002 14:09:40 +0100 (MET)

On Fri, 20 Dec 2002, Andrew Francis wrote:

> I've hacked in the following interfaces, as discussed in
> http://curl.haxx.se/mail/lib-2002-10/0022.html :

> unsigned char *curl_base64_decode(char *src, int srclen, unsigned char
> *dest, int *destlen)

> char *curl_base64_encode(const void *inp, int insize, char *outptr, int
> *outlen)

> Are they still wanted in the main library? I was waiting until I'd tested
> it properly to submit a patch, which I never got around to doing..

Heck yes, I think we should proceed and offer these functions since we have
the functionality in there anyway.

That interface should probably be somewhat more consistent with the use of
'unsigned' and 'const' though, as they seem a bit randomly used above here.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.NET email is sponsored by:  The Best Geek Holiday Gifts!
Time is running out!  Thinkgeek.com has the coolest gifts for
your favorite geek.   Let your fingers do the typing.   Visit Now.
T H I N K G E E K . C O M        http://www.thinkgeek.com/sf/
Received on 2002-12-20