logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

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. lib/curl_base64.h | 8 +++-----
  7. 1 file changed, 3 insertions(+), 5 deletions(-)
  8. diff --git a/lib/curl_base64.h b/lib/curl_base64.h
  9. index 7f7cd1d98..19c268549 100644
  10. --- a/lib/curl_base64.h
  11. +++ b/lib/curl_base64.h
  12. @@ -24,13 +24,11 @@
  13. *
  14. ***************************************************************************/
  15. -#ifndef BUILDING_LIBCURL
  16. /* this renames functions so that the tool code can use the same code
  17. without getting symbol collisions */
  18. -#define Curl_base64_encode(a,b,c,d) curlx_base64_encode(a,b,c,d)
  19. -#define Curl_base64url_encode(a,b,c,d) curlx_base64url_encode(a,b,c,d)
  20. -#define Curl_base64_decode(a,b,c) curlx_base64_decode(a,b,c)
  21. -#endif
  22. +#define curlx_base64_encode Curl_base64_encode
  23. +#define curlx_base64url_encode Curl_base64url_encode
  24. +#define curlx_base64_decode Curl_base64_decode
  25. CURLcode Curl_base64_encode(const char *inputbuff, size_t insize,
  26. char **outptr, size_t *outlen);
  27. --
  28. 2.42.0