]> granicus.if.org Git - curl/commitdiff
curl.h: CURLSSLBACKEND_WOLFSSL used wrong value
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 Aug 2017 08:04:00 +0000 (10:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 Aug 2017 08:04:00 +0000 (10:04 +0200)
The CURLSSLBACKEND_WOLFSSL is supposed to be an alias for
CURLSSLBACKEND_CYASSL, but used an erronous value. To reduce the risk
for a similar mistake, define the backend aliases to use the enum values
instead.

Reported-by: Gisle Vanem
Bug: https://curl.haxx.se/mail/lib-2017-08/0120.html

include/curl/curl.h

index 710e4befff12d8223164a225bfd2ab123cd84ad7..0f06d20aa43575bb9e8626ebf46c3dd79d68dc8e 100644 (file)
@@ -2244,9 +2244,9 @@ typedef enum {
 } curl_sslbackend;
 
 /* aliases for library clones and renames */
-#define CURLSSLBACKEND_LIBRESSL 1
-#define CURLSSLBACKEND_BORINGSSL 1
-#define CURLSSLBACKEND_WOLFSSL 6
+#define CURLSSLBACKEND_LIBRESSL CURLSSLBACKEND_OPENSSL
+#define CURLSSLBACKEND_BORINGSSL CURLSSLBACKEND_OPENSSL
+#define CURLSSLBACKEND_WOLFSSL CURLSSLBACKEND_CYASSL
 
 /* Information about the SSL library used and the respective internal SSL
    handle, which can be used to obtain further information regarding the