]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
vtls: don't define MD5_DIGEST_LENGTH for wolfssl
authorDaniel Stenberg <daniel@haxx.se>
Mon, 30 Apr 2018 13:34:26 +0000 (15:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 2 May 2018 09:21:48 +0000 (11:21 +0200)
... as it defines it (too)

lib/vtls/vtls.h

index 4f76cc9e102829dea7c54aaceadbfb315db2baac..5c3146ee93967b8e3a6a2ab7e389d3ac94f39b9d 100644 (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
  * 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 */