pbs-api-types: remove openssl dependency for target wasm
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
f7fde5c81b
commit
1a211f0d96
@ -9,7 +9,6 @@ description = "general API type helpers for PBS"
|
||||
anyhow = "1.0"
|
||||
hex = "0.4.3"
|
||||
lazy_static = "1.4"
|
||||
openssl = "0.10"
|
||||
percent-encoding = "2.1"
|
||||
regex = "1.2"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
@ -21,3 +20,6 @@ proxmox-time = "1.1.1"
|
||||
proxmox-uuid = { version = "1.0.0", features = [ "serde" ] }
|
||||
|
||||
proxmox-sys = "0.2" # only needed for nodename()??
|
||||
|
||||
[target.'cfg(not(target_arch="wasm32"))'.dependencies]
|
||||
openssl = "0.10"
|
||||
|
@ -326,6 +326,7 @@ pub struct RsaPubKeyInfo {
|
||||
pub length: usize,
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch="wasm32"))]
|
||||
impl std::convert::TryFrom<openssl::rsa::Rsa<openssl::pkey::Public>> for RsaPubKeyInfo {
|
||||
type Error = anyhow::Error;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user