aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-30 15:34:26 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-05-02 11:21:48 +0200
commit1621aed9be6cb98503a2c512fa15801ab7e81e2f (patch)
treed0c868b5a63bc4542ec989baa896670e18033263 /lib/vtls
parentd5d683a97f9765bddfd964fe32e137aa6e703ed3 (diff)
vtls: don't define MD5_DIGEST_LENGTH for wolfssl
... as it defines it (too)
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/vtls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vtls/vtls.h b/lib/vtls/vtls.h
index 4f76cc9e1..5c3146ee9 100644
--- a/lib/vtls/vtls.h
+++ b/lib/vtls/vtls.h
@@ -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 */