1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-25 09:38:54 -05:00

vtls: don't define MD5_DIGEST_LENGTH for wolfssl

... as it defines it (too)
This commit is contained in:
Daniel Stenberg 2018-04-30 15:34:26 +02:00
parent d5d683a97f
commit 1621aed9be
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____| * \___|\___/|_| \_\_____|
* *
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
* *
* This software is licensed as described in the file COPYING, which * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -113,8 +113,10 @@ CURLcode Curl_none_md5sum(unsigned char *input, size_t inputlen,
#endif #endif
#ifndef MD5_DIGEST_LENGTH #ifndef MD5_DIGEST_LENGTH
#ifndef LIBWOLFSSL_VERSION_HEX /* because WolfSSL borks this */
#define MD5_DIGEST_LENGTH 16 /* fixed size */ #define MD5_DIGEST_LENGTH 16 /* fixed size */
#endif #endif
#endif
#ifndef CURL_SHA256_DIGEST_LENGTH #ifndef CURL_SHA256_DIGEST_LENGTH
#define CURL_SHA256_DIGEST_LENGTH 32 /* fixed size */ #define CURL_SHA256_DIGEST_LENGTH 32 /* fixed size */