mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:03:39 +03:00
tidy-up: more whitespace/indent, comments
Also a couple of minor formatting updates in the root `CMakeLists.txt`. One swap to `#ifdef`. Closes #17929
This commit is contained in:
parent
63a8167f3e
commit
4d977fe552
82 changed files with 351 additions and 378 deletions
|
|
@ -411,7 +411,7 @@ CURLcode Curl_auth_create_digest_http_message(struct Curl_easy *data,
|
|||
SecBufferDesc chlg_desc;
|
||||
SECURITY_STATUS status;
|
||||
|
||||
(void) data;
|
||||
(void)data;
|
||||
|
||||
/* Query the security package for DigestSSP */
|
||||
status =
|
||||
|
|
|
|||
|
|
@ -99,8 +99,8 @@ CURLcode Curl_auth_create_gssapi_user_message(struct Curl_easy *data,
|
|||
gss_buffer_desc input_token = GSS_C_EMPTY_BUFFER;
|
||||
gss_buffer_desc output_token = GSS_C_EMPTY_BUFFER;
|
||||
|
||||
(void) userp;
|
||||
(void) passwdp;
|
||||
(void)userp;
|
||||
(void)passwdp;
|
||||
|
||||
if(!krb5->spn) {
|
||||
gss_buffer_desc spn_token = GSS_C_EMPTY_BUFFER;
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ CURLcode Curl_auth_create_gssapi_security_message(struct Curl_easy *data,
|
|||
SECURITY_STATUS status;
|
||||
|
||||
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||
(void) data;
|
||||
(void)data;
|
||||
#endif
|
||||
|
||||
/* Ensure we have a valid challenge message */
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ static void ntlm_print_hex(FILE *handle, const char *buf, size_t len)
|
|||
{
|
||||
const char *p = buf;
|
||||
|
||||
(void) handle;
|
||||
(void)handle;
|
||||
|
||||
fprintf(stderr, "0x");
|
||||
while(len-- > 0)
|
||||
|
|
@ -269,7 +269,7 @@ static CURLcode ntlm_decode_type2_target(struct Curl_easy *data,
|
|||
size_t type2len = Curl_bufref_len(type2ref);
|
||||
|
||||
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||
(void) data;
|
||||
(void)data;
|
||||
#endif
|
||||
|
||||
if(type2len >= 48) {
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ CURLcode Curl_auth_decode_ntlm_type2_message(struct Curl_easy *data,
|
|||
struct ntlmdata *ntlm)
|
||||
{
|
||||
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||
(void) data;
|
||||
(void)data;
|
||||
#endif
|
||||
|
||||
/* Ensure we have a valid type-2 message */
|
||||
|
|
@ -258,10 +258,10 @@ CURLcode Curl_auth_create_ntlm_type3_message(struct Curl_easy *data,
|
|||
TimeStamp expiry; /* For Windows 9x compatibility of SSPI calls */
|
||||
|
||||
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||
(void) data;
|
||||
(void)data;
|
||||
#endif
|
||||
(void) passwdp;
|
||||
(void) userp;
|
||||
(void)passwdp;
|
||||
(void)userp;
|
||||
|
||||
/* Setup the type-2 "input" security buffer */
|
||||
type_2_desc.ulVersion = SECBUFFER_VERSION;
|
||||
|
|
|
|||
|
|
@ -98,8 +98,8 @@ CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
|
|||
gss_channel_bindings_t chan_bindings = GSS_C_NO_CHANNEL_BINDINGS;
|
||||
struct gss_channel_bindings_struct chan;
|
||||
|
||||
(void) user;
|
||||
(void) password;
|
||||
(void)user;
|
||||
(void)password;
|
||||
|
||||
if(nego->context && nego->status == GSS_S_COMPLETE) {
|
||||
/* We finished successfully our part of authentication, but server
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
|
|||
TimeStamp expiry; /* For Windows 9x compatibility of SSPI calls */
|
||||
|
||||
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||
(void) data;
|
||||
(void)data;
|
||||
#endif
|
||||
|
||||
if(nego->context && nego->status == SEC_E_OK) {
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ TCHAR *Curl_auth_build_spn(const char *service, const char *host,
|
|||
TCHAR *tchar_spn = NULL;
|
||||
TCHAR *dupe_tchar_spn = NULL;
|
||||
|
||||
(void) realm;
|
||||
(void)realm;
|
||||
|
||||
/* Note: We could use DsMakeSPN() or DsClientMakeSpnForTargetServer() rather
|
||||
than doing this ourselves but the first is only available in Windows XP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue