mirror of
https://github.com/curl/curl.git
synced 2026-06-20 14:45:38 +03:00
move raw macros to rustls
This commit is contained in:
parent
e23f4a1a73
commit
796ac6430a
2 changed files with 6 additions and 2 deletions
|
|
@ -1139,10 +1139,8 @@ typedef unsigned int curl_bit;
|
|||
|
||||
#if EAGAIN != SOCKEWOULDBLOCK
|
||||
#define SOCK_EAGAIN_EWOULDBLOCK(e) ((e) == SOCKEWOULDBLOCK || (e) == EAGAIN)
|
||||
#define RAW_EAGAIN_EWOULDBLOCK(e) ((e) == EWOULDBLOCK || (e) == EAGAIN)
|
||||
#else
|
||||
#define SOCK_EAGAIN_EWOULDBLOCK(e) ((e) == SOCKEWOULDBLOCK)
|
||||
#define RAW_EAGAIN_EWOULDBLOCK(e) ((e) == EWOULDBLOCK)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -45,6 +45,12 @@
|
|||
#include "curlx/base64.h"
|
||||
#endif
|
||||
|
||||
#if EAGAIN != SOCKEWOULDBLOCK
|
||||
#define RAW_EAGAIN_EWOULDBLOCK(e) ((e) == EWOULDBLOCK || (e) == EAGAIN)
|
||||
#else
|
||||
#define RAW_EAGAIN_EWOULDBLOCK(e) ((e) == EWOULDBLOCK)
|
||||
#endif
|
||||
|
||||
struct rustls_ssl_backend_data {
|
||||
const struct rustls_client_config *config;
|
||||
struct rustls_connection *conn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue