summaryrefslogtreecommitdiffstats
path: root/openpgp/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/build.rs')
-rw-r--r--openpgp/build.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/openpgp/build.rs b/openpgp/build.rs
index 60f07620..2a2aa9a1 100644
--- a/openpgp/build.rs
+++ b/openpgp/build.rs
@@ -66,6 +66,7 @@ fn crypto_backends_sanity_check() {
(cfg!(all(feature = "crypto-nettle",
not(all(feature = "__implicit-crypto-backend-for-tests",
any(feature = "crypto-openssl",
+ feature = "crypto-botan",
feature = "crypto-rust"))))),
Backend {
name: "Nettle",
@@ -76,6 +77,7 @@ fn crypto_backends_sanity_check() {
not(all(feature = "__implicit-crypto-backend-for-tests",
any(feature = "crypto-nettle",
feature = "crypto-openssl",
+ feature = "crypto-botan",
feature = "crypto-rust"))))),
Backend {
name: "Windows CNG",
@@ -94,6 +96,12 @@ fn crypto_backends_sanity_check() {
production_ready: true,
constant_time: true,
}),
+ (cfg!(feature = "crypto-botan"),
+ Backend {
+ name: "Botan",
+ production_ready: true,
+ constant_time: true,
+ }),
].into_iter().filter_map(|(selected, backend)| {
if selected { Some(backend) } else { None }
}).collect::<Vec<_>>();