diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2021-05-24 21:57:45 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-25 12:48:04 +0200 |
commit | 2864b00b01ec325124cf11e94c4871db0eaf60b4 (patch) | |
tree | 462868fde1a9497c8e7232d6aa6ec3fdefe3cd3e | |
parent | 31f631a142d855f069242f3e0c643beec25d1b51 (diff) | |
download | curl-2864b00b01ec325124cf11e94c4871db0eaf60b4.tar.gz |
setopt: streamline ssl option code
Make it use the same style as the code next to it
Closes #7123
-rw-r--r-- | lib/setopt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/setopt.c b/lib/setopt.c index 1ded7ad3e..fb8b86d47 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -2311,8 +2311,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param) case CURLOPT_SSL_OPTIONS: arg = va_arg(param, long); - data->set.ssl.enable_beast = - (bool)((arg&CURLSSLOPT_ALLOW_BEAST) ? TRUE : FALSE); + data->set.ssl.enable_beast = !!(arg & CURLSSLOPT_ALLOW_BEAST); data->set.ssl.no_revoke = !!(arg & CURLSSLOPT_NO_REVOKE); data->set.ssl.no_partialchain = !!(arg & CURLSSLOPT_NO_PARTIALCHAIN); data->set.ssl.revoke_best_effort = !!(arg & CURLSSLOPT_REVOKE_BEST_EFFORT); @@ -2325,8 +2324,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param) #ifndef CURL_DISABLE_PROXY case CURLOPT_PROXY_SSL_OPTIONS: arg = va_arg(param, long); - data->set.proxy_ssl.enable_beast = - (bool)((arg&CURLSSLOPT_ALLOW_BEAST) ? TRUE : FALSE); + data->set.proxy_ssl.enable_beast = !!(arg & CURLSSLOPT_ALLOW_BEAST); data->set.proxy_ssl.no_revoke = !!(arg & CURLSSLOPT_NO_REVOKE); data->set.proxy_ssl.no_partialchain = !!(arg & CURLSSLOPT_NO_PARTIALCHAIN); data->set.proxy_ssl.revoke_best_effort = |