mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
curl.h: make CURLSSLOPT_* symbols defined as longs
Help users get them used right. Closes #17535
This commit is contained in:
parent
3035b8e7a4
commit
0b2619cb7f
@ -943,31 +943,31 @@ typedef enum {
|
||||
have introduced work-arounds for this flaw but those work-arounds sometimes
|
||||
make the SSL communication fail. To regain functionality with those broken
|
||||
servers, a user can this way allow the vulnerability back. */
|
||||
#define CURLSSLOPT_ALLOW_BEAST (1<<0)
|
||||
#define CURLSSLOPT_ALLOW_BEAST (1L<<0)
|
||||
|
||||
/* - NO_REVOKE tells libcurl to disable certificate revocation checks for those
|
||||
SSL backends where such behavior is present. */
|
||||
#define CURLSSLOPT_NO_REVOKE (1<<1)
|
||||
#define CURLSSLOPT_NO_REVOKE (1L<<1)
|
||||
|
||||
/* - NO_PARTIALCHAIN tells libcurl to *NOT* accept a partial certificate chain
|
||||
if possible. The OpenSSL backend has this ability. */
|
||||
#define CURLSSLOPT_NO_PARTIALCHAIN (1<<2)
|
||||
#define CURLSSLOPT_NO_PARTIALCHAIN (1L<<2)
|
||||
|
||||
/* - REVOKE_BEST_EFFORT tells libcurl to ignore certificate revocation offline
|
||||
checks and ignore missing revocation list for those SSL backends where such
|
||||
behavior is present. */
|
||||
#define CURLSSLOPT_REVOKE_BEST_EFFORT (1<<3)
|
||||
#define CURLSSLOPT_REVOKE_BEST_EFFORT (1L<<3)
|
||||
|
||||
/* - CURLSSLOPT_NATIVE_CA tells libcurl to use standard certificate store of
|
||||
operating system. Currently implemented under MS-Windows. */
|
||||
#define CURLSSLOPT_NATIVE_CA (1<<4)
|
||||
#define CURLSSLOPT_NATIVE_CA (1L<<4)
|
||||
|
||||
/* - CURLSSLOPT_AUTO_CLIENT_CERT tells libcurl to automatically locate and use
|
||||
a client certificate for authentication. (Schannel) */
|
||||
#define CURLSSLOPT_AUTO_CLIENT_CERT (1<<5)
|
||||
#define CURLSSLOPT_AUTO_CLIENT_CERT (1L<<5)
|
||||
|
||||
/* If possible, send data using TLS 1.3 early data */
|
||||
#define CURLSSLOPT_EARLYDATA (1<<6)
|
||||
#define CURLSSLOPT_EARLYDATA (1L<<6)
|
||||
|
||||
/* The default connection attempt delay in milliseconds for happy eyeballs.
|
||||
CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.3 and happy-eyeballs-timeout-ms.d document
|
||||
|
||||
Loading…
Reference in New Issue
Block a user