summaryrefslogtreecommitdiff
path: root/lib/curl_sha256.h
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/curl_sha256.h
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/curl_sha256.h')
-rw-r--r--lib/curl_sha256.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_sha256.h b/lib/curl_sha256.h
index 55dc30ad7..2b7890a03 100644
--- a/lib/curl_sha256.h
+++ b/lib/curl_sha256.h
@@ -8,7 +8,7 @@
* \___|\___/|_| \_\_____|
*
* Copyright (C) 2017, Florin Petriuc, <petriuc.florin@gmail.com>
- * Copyright (C) 2018 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2018 - 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
@@ -32,7 +32,7 @@ extern const struct HMAC_params Curl_HMAC_SHA256[1];
/* SHA256_DIGEST_LENGTH is an enum value in wolfSSL. Need to import it from
* sha.h*/
#include <wolfssl/options.h>
-#include <openssl/sha.h>
+#include <wolfssl/openssl/sha.h>
#else
#define SHA256_DIGEST_LENGTH 32
#endif