Skip to content

Instantly share code, notes, and snippets.

@bagder
Created December 9, 2021 10:12
Show Gist options
  • Save bagder/7604f93fb3eca9f05da9bc8933568a25 to your computer and use it in GitHub Desktop.
Save bagder/7604f93fb3eca9f05da9bc8933568a25 to your computer and use it in GitHub Desktop.
Apple's curl.h.diff
--- ./include/curl/curl.h 2021-12-09 11:01:40.994010630 +0100
+++ ../curl-curl-121.100.3/curl/include/curl/curl.h 2021-10-06 07:13:04.000000000 +0200
@@ -550,6 +550,7 @@
CURLE_SSL_CIPHER, /* 59 - couldn't use specified cipher */
CURLE_PEER_FAILED_VERIFICATION, /* 60 - peer's certificate or fingerprint
wasn't verified fine */
+ CURLE_SSL_CACERT = CURLE_PEER_FAILED_VERIFICATION, /* DEPRECATED: 60 - problem with the CA cert (path?) */
CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized/bad encoding */
CURLE_LDAP_INVALID_URL, /* 62 - Invalid LDAP URL */
CURLE_FILESIZE_EXCEEDED, /* 63 - Maximum file size exceeded */
@@ -619,9 +620,6 @@
#define CURLOPT_ENCODING CURLOPT_ACCEPT_ENCODING
#define CURLE_FTP_WEIRD_SERVER_REPLY CURLE_WEIRD_SERVER_REPLY
-/* The following were added in 7.62.0 */
-#define CURLE_SSL_CACERT CURLE_PEER_FAILED_VERIFICATION
-
/* The following were added in 7.21.5, April 2011 */
#define CURLE_UNKNOWN_TELNET_OPTION CURLE_UNKNOWN_OPTION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment