From 7b0240c07799c28dc84272f9e38e1092ce4cc498 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 3 Mar 2025 11:42:15 +0100 Subject: [PATCH] curl.h: convert CURLUSESSL* names to defines So that we can use L suffix. Follow-up to 2ec00372a1fc7f27cd3a6c43e29007400acfe2b6 Closes #16539 --- include/curl/curl.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/curl/curl.h b/include/curl/curl.h index 0d86ddac9b..39db4160db 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -914,12 +914,13 @@ typedef int /* parameter for the CURLOPT_USE_SSL option */ +#define CURLUSESSL_NONE 0L /* do not attempt to use SSL */ +#define CURLUSESSL_TRY 1L /* try using SSL, proceed anyway otherwise */ +#define CURLUSESSL_CONTROL 2L /* SSL for the control connection or fail */ +#define CURLUSESSL_ALL 3L /* SSL for all communication or fail */ + typedef enum { - CURLUSESSL_NONE, /* do not attempt to use SSL */ - CURLUSESSL_TRY, /* try using SSL, proceed anyway otherwise */ - CURLUSESSL_CONTROL, /* SSL for the control connection or fail */ - CURLUSESSL_ALL, /* SSL for all communication or fail */ - CURLUSESSL_LAST /* not an option, never use */ + CURLUSESSL_LAST = 4 /* not an option, never use */ } curl_usessl; /* Definition of bits for the CURLOPT_SSL_OPTIONS argument: */ -- 2.47.2