From: Daniel Stenberg Date: Mon, 30 Apr 2018 13:34:26 +0000 (+0200) Subject: vtls: don't define MD5_DIGEST_LENGTH for wolfssl X-Git-Tag: curl-7_60_0~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1621aed9be6cb98503a2c512fa15801ab7e81e2f;p=thirdparty%2Fcurl.git vtls: don't define MD5_DIGEST_LENGTH for wolfssl ... as it defines it (too) --- diff --git a/lib/vtls/vtls.h b/lib/vtls/vtls.h index 4f76cc9e10..5c3146ee93 100644 --- a/lib/vtls/vtls.h +++ b/lib/vtls/vtls.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * 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 #ifndef MD5_DIGEST_LENGTH +#ifndef LIBWOLFSSL_VERSION_HEX /* because WolfSSL borks this */ #define MD5_DIGEST_LENGTH 16 /* fixed size */ #endif +#endif #ifndef CURL_SHA256_DIGEST_LENGTH #define CURL_SHA256_DIGEST_LENGTH 32 /* fixed size */