summaryrefslogtreecommitdiff
path: root/validate.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-05-05 23:16:28 -0400
committerJeffrey Walton <noloader@gmail.com>2017-05-05 23:16:28 -0400
commit02df6ea8475531609a377c85e8b6da60110dec10 (patch)
tree160aab2b58bfea845462e172c55542626b8db31f /validate.h
parentac930b084dfb5b67113d622a785bbfe84325c3c1 (diff)
downloadcryptopp-git-02df6ea8475531609a377c85e8b6da60110dec10.tar.gz
Add additional self tests under debug builds
Diffstat (limited to 'validate.h')
-rw-r--r--validate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/validate.h b/validate.h
index 75d5610c..ebf21830 100644
--- a/validate.h
+++ b/validate.h
@@ -107,7 +107,12 @@ bool ValidateESIGN();
bool ValidateHashDRBG();
bool ValidateHmacDRBG();
+// If CRYPTOPP_DEBUG or CRYPTOPP_COVERAGE is in effect, then perform additional tests
#if (defined(CRYPTOPP_DEBUG) || defined(CRYPTOPP_COVERAGE)) && !defined(CRYPTOPP_IMPORTS)
+# define CRYPTOPP_EXTENDED_VALIDATION 1
+#endif
+
+#if defined(CRYPTOPP_EXTENDED_VALIDATION)
// http://github.com/weidai11/cryptopp/issues/92
bool TestSecBlock();
// http://github.com/weidai11/cryptopp/issues/64