diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2022-12-08 10:43:52 +0100 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2022-12-08 10:43:52 +0100 |
commit | 7474b3bef52189b4441748024d9569cbe4875d3c (patch) | |
tree | fd1e91a1632acc3425de320ffa6f53607b15d145 | |
parent | 5e7bc53aaa9c6cac6c5a3513a7686a645786bb41 (diff) |
WIP: Print for debuggingwiktor/workwork
-rw-r--r-- | Cargo.lock | 1 | ||||
-rw-r--r-- | openpgp/Cargo.toml | 3 | ||||
-rw-r--r-- | openpgp/build.rs | 4 |
3 files changed, 7 insertions, 1 deletions
@@ -2806,6 +2806,7 @@ dependencies = [ "nettle", "num-bigint-dig", "openssl", + "openssl-sys", "p256", "quickcheck", "rand 0.7.3", diff --git a/openpgp/Cargo.toml b/openpgp/Cargo.toml index 9b11ab4b..c165fc54 100644 --- a/openpgp/Cargo.toml +++ b/openpgp/Cargo.toml @@ -46,6 +46,7 @@ thiserror = "1.0.2" xxhash-rust = { version = "0.8", features = ["xxh3"] } # At least 0.10.44 is needed due to many changes we contributed upstream openssl = { version = ">= 0.10.44", optional = true } +openssl-sys = { version = ">= 0.9.79", optional = true } # RustCrypto crates. aes = { version = "0.6.0", optional = true } @@ -103,7 +104,7 @@ crypto-rust = [ "rand_core", "rand_core/getrandom", "ecdsa" ] crypto-cng = ["eax", "winapi", "win-crypto-ng", "ed25519-dalek", "num-bigint-dig"] -crypto-openssl = ["openssl"] +crypto-openssl = ["openssl", "openssl-sys"] # Experimental and variable-time cryptographic backends opt-ins allow-experimental-crypto = [] diff --git a/openpgp/build.rs b/openpgp/build.rs index 0589b4f2..7b123434 100644 --- a/openpgp/build.rs +++ b/openpgp/build.rs @@ -10,6 +10,10 @@ fn main() { println!("cargo:rustc-cfg=osslconf=\"{}\"", var); } } + for (key, value) in env::vars() { + println!("cargo:warning={} = {}", key, value); + } + println!("cargo:warning=CFG IS: {}", cfg!(osslconf)); crypto_backends_sanity_check(); lalrpop::process_root().unwrap(); |