mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +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
12
lib/md5.c
12
lib/md5.c
|
|
@ -24,8 +24,8 @@
|
|||
|
||||
#include "curl_setup.h"
|
||||
|
||||
#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) \
|
||||
|| !defined(CURL_DISABLE_DIGEST_AUTH)
|
||||
#if (defined(USE_CURL_NTLM_CORE) && !defined(USE_WINDOWS_SSPI)) || \
|
||||
!defined(CURL_DISABLE_DIGEST_AUTH)
|
||||
|
||||
#include <string.h>
|
||||
#include <curl/curl.h>
|
||||
|
|
@ -178,18 +178,18 @@ static void my_md5_update(void *ctx,
|
|||
unsigned int length)
|
||||
{
|
||||
#if !defined(HAS_MBEDTLS_RESULT_CODE_BASED_FUNCTIONS)
|
||||
(void) mbedtls_md5_update(ctx, data, length);
|
||||
(void)mbedtls_md5_update(ctx, data, length);
|
||||
#else
|
||||
(void) mbedtls_md5_update_ret(ctx, data, length);
|
||||
(void)mbedtls_md5_update_ret(ctx, data, length);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void my_md5_final(unsigned char *digest, void *ctx)
|
||||
{
|
||||
#if !defined(HAS_MBEDTLS_RESULT_CODE_BASED_FUNCTIONS)
|
||||
(void) mbedtls_md5_finish(ctx, digest);
|
||||
(void)mbedtls_md5_finish(ctx, digest);
|
||||
#else
|
||||
(void) mbedtls_md5_finish_ret(ctx, digest);
|
||||
(void)mbedtls_md5_finish_ret(ctx, digest);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue