0003-Reuse-base64-for-curl-tool.patch (1158B)
1 From b69fdc6b0b1d9a594f17775e12ee237d8960b88f Mon Sep 17 00:00:00 2001 2 From: Randy Palamar <palamar@ualberta.ca> 3 Date: Sun, 15 Oct 2023 13:11:17 -0600 4 Subject: [PATCH] Reuse base64 for curl tool 5 6 --- 7 lib/curl_base64.h | 8 +++----- 8 1 file changed, 3 insertions(+), 5 deletions(-) 9 10 diff --git a/lib/curl_base64.h b/lib/curl_base64.h 11 index 7f7cd1d98..19c268549 100644 12 --- a/lib/curl_base64.h 13 +++ b/lib/curl_base64.h 14 @@ -24,13 +24,11 @@ 15 * 16 ***************************************************************************/ 17 18 -#ifndef BUILDING_LIBCURL 19 /* this renames functions so that the tool code can use the same code 20 without getting symbol collisions */ 21 -#define Curl_base64_encode(a,b,c,d) curlx_base64_encode(a,b,c,d) 22 -#define Curl_base64url_encode(a,b,c,d) curlx_base64url_encode(a,b,c,d) 23 -#define Curl_base64_decode(a,b,c) curlx_base64_decode(a,b,c) 24 -#endif 25 +#define curlx_base64_encode Curl_base64_encode 26 +#define curlx_base64url_encode Curl_base64url_encode 27 +#define curlx_base64_decode Curl_base64_decode 28 29 CURLcode Curl_base64_encode(const char *inputbuff, size_t insize, 30 char **outptr, size_t *outlen); 31 -- 32 2.42.0 33