summaryrefslogtreecommitdiff
path: root/src/tool_metalink.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-05-26 21:21:53 +0900
committerDaniel Stenberg <daniel@haxx.se>2012-05-26 23:12:02 +0200
commit7bdb9fba952ea24390b903478aedb5e1615ae2d4 (patch)
treea81821f8030331ecfb1b94069cd9ff0010915348 /src/tool_metalink.h
parent69271537031e83c7a96a4221a3a551c0fe7c6075 (diff)
downloadcurl-7bdb9fba952ea24390b903478aedb5e1615ae2d4.tar.gz
Disable hash check if neither OpenSSL nor GNUTLS is installed.
Diffstat (limited to 'src/tool_metalink.h')
-rw-r--r--src/tool_metalink.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tool_metalink.h b/src/tool_metalink.h
index 58bb3c439..bffa0deea 100644
--- a/src/tool_metalink.h
+++ b/src/tool_metalink.h
@@ -27,6 +27,11 @@
struct Configurable;
+#if defined(USE_OPENSSL) || defined(USE_GNUTLS)
+/* Define 1 if hash check is enabled in Metalink transfer */
+# define METALINK_HASH_CHECK 1
+#endif
+
typedef struct metalink_checksum {
struct metalink_checksum *next;
char *hash_name;