aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/build-data/buildh.in16
-rw-r--r--src/lib/tls/info.txt2
2 files changed, 17 insertions, 1 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in
index ef046a102..01527b522 100644
--- a/src/build-data/buildh.in
+++ b/src/build-data/buildh.in
@@ -272,4 +272,20 @@ Each read generates 32 bits of output
// The struct is only declared to force the semicolon, it is never defined.
#define BOTAN_FORCE_SEMICOLON struct BOTAN_DUMMY_STRUCT
+#if defined(BOTAN_TARGET_ARCH_IS_X86_64) && (\
+ (defined(_MSC_VER) && !defined(_WIN64)) || \
+ (defined(__clang__) && !defined(__x86_64__)) || \
+ (defined(__GNUG__) && !defined(__x86_64__)) \
+)
+ #error "Trying to compile Botan configured as x86_64 with non-x86_64 compiler."
+#endif
+
+#if defined(BOTAN_TARGET_ARCH_IS_X86_32) && (\
+ (defined(_MSC_VER) && defined(_WIN64)) || \
+ (defined(__clang__) && !defined(__i386__)) || \
+ (defined(__GNUG__) && !defined(__i386__)) \
+)
+ #error "Trying to compile Botan configured as x86_32 with non-x86_32 compiler."
+#endif
+
#endif
diff --git a/src/lib/tls/info.txt b/src/lib/tls/info.txt
index cd9f78a26..b26179226 100644
--- a/src/lib/tls/info.txt
+++ b/src/lib/tls/info.txt
@@ -48,7 +48,7 @@ par_hash
prf_tls
rng
rsa
-sha1
+sha1_sse2|sha1
sha2_32
x509
</requires>