aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_base64.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-07-25 08:24:03 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-07-25 08:24:03 +0200
commitaae4e4bf70f17a597b0042910e6c2c050ea927df (patch)
tree93918962f01e6924edd91866ae2edd13add9f8f0 /lib/curl_base64.h
parent9c1cf966643117368119168465b9ac783b636164 (diff)
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
Diffstat (limited to 'lib/curl_base64.h')
-rw-r--r--lib/curl_base64.h5
1 files changed, 4 insertions, 1 deletions
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, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, 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);