diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-03-08 11:21:41 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-03-08 13:06:44 +0100 |
commit | 336a1562bfe3ad5fe32b5e3017c88197f5bad0fa (patch) | |
tree | ec7f433a8ab5cf97a508848c38be5cc6ae9685cf /openpgp/build.rs | |
parent | 07bb232c30851bff0b0f315fbc088af6f8e6911a (diff) |
openpgp: Add a new backend based on the Botan cryptographic library.
Diffstat (limited to 'openpgp/build.rs')
-rw-r--r-- | openpgp/build.rs | 8 |
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<_>>(); |