summaryrefslogtreecommitdiff
path: root/lib/md5.c
diff options
context:
space:
mode:
authorHarry Sarson <harry.sarson@hotmail.co.uk>2022-01-21 13:32:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2022-01-21 23:04:02 +0100
commit392fdb04388de6977da7df6168f2ec7c419dccb9 (patch)
treeec5b8f618f01ec54e82a6252b7befbfcb64d186e /lib/md5.c
parent8a3e67e732cff0b988f1d6f2d02a2c9cd2e87b1f (diff)
downloadcurl-392fdb04388de6977da7df6168f2ec7c419dccb9.tar.gz
misc: allow curl to build with wolfssl --enable-opensslextra
put all #include of openssl files behind wolfssl ifdefs so that we can use the wolfssl/ prefixed include paths. Without these curl only builds when wolfssl is built with enable-all. Fixes #8292 Closes #8315
Diffstat (limited to 'lib/md5.c')
-rw-r--r--lib/md5.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/md5.c b/lib/md5.c
index c6923e036..6e278360e 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, 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
@@ -83,7 +83,12 @@ static void MD5_Final(unsigned char *digest, MD5_CTX *ctx)
#elif defined(USE_OPENSSL_MD5) || defined(USE_WOLFSSL_MD5)
/* When OpenSSL or wolfSSL is available, we use their MD5 functions. */
+#if defined(USE_OPENSSL_MD5)
#include <openssl/md5.h>
+#elif defined(USE_WOLFSSL_MD5)
+#include <wolfssl/openssl/md5.h>
+#endif
+
#include "curl_memory.h"
/* The last #include file should be: */
#include "memdebug.h"