From aae4e4bf70f17a597b0042910e6c2c050ea927df Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 25 Jul 2014 08:24:03 +0200 Subject: base64: added Curl_base64url_encode() This is now used by the http2 code. It has two different symbols at the end of the base64 table to make the output "url safe". Bug: https://github.com/tatsuhiro-t/nghttp2/issues/62 --- lib/curl_base64.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/curl_base64.h') diff --git a/lib/curl_base64.h b/lib/curl_base64.h index 6e200d2ec..92896fec1 100644 --- a/lib/curl_base64.h +++ b/lib/curl_base64.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2014, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -25,6 +25,9 @@ CURLcode Curl_base64_encode(struct SessionHandle *data, const char *inputbuff, size_t insize, char **outptr, size_t *outlen); +CURLcode Curl_base64url_encode(struct SessionHandle *data, + const char *inputbuff, size_t insize, + char **outptr, size_t *outlen); CURLcode Curl_base64_decode(const char *src, unsigned char **outptr, size_t *outlen); -- cgit v1.2.3