From 826dc1b16a6db4b709160c89672851e843ccf6c4 Mon Sep 17 00:00:00 2001 From: Firstyear Date: Tue, 14 May 2024 17:30:00 +1000 Subject: [PATCH] Update ssh keys to latest version (#439) --- sshkey-attest/Cargo.toml | 5 +---- sshkey-attest/README.md | 6 ++++++ sshkey-attest/src/proto.rs | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 sshkey-attest/README.md diff --git a/sshkey-attest/Cargo.toml b/sshkey-attest/Cargo.toml index b92bac5b..c74fba44 100644 --- a/sshkey-attest/Cargo.toml +++ b/sshkey-attest/Cargo.toml @@ -23,10 +23,7 @@ nom.workspace = true openssl.workspace = true serde.workspace = true serde_cbor_2.workspace = true -sshkeys = { version = "0.3.2", features = ["serde"] } -# sshkeys = { git = "https://github.com/dnaeon/rust-sshkeys.git", rev = "fa5bd02dd6e90ee724fdb981253c1e7726a7f534", features = [ -# "serde", -# ] } +sshkeys = { version = "0.3.3", features = ["serde"] } tracing.workspace = true uuid = { workspace = true, features = ["serde"] } webauthn-rs-core.workspace = true diff --git a/sshkey-attest/README.md b/sshkey-attest/README.md new file mode 100644 index 00000000..0cdad766 --- /dev/null +++ b/sshkey-attest/README.md @@ -0,0 +1,6 @@ +# SSH Key FIDO2 Attestation + +This library supports attestation of the openssh `-sk` classes of keys. This attestation is similar +to what is provided in webauthn. + + diff --git a/sshkey-attest/src/proto.rs b/sshkey-attest/src/proto.rs index 5eb38813..ae190049 100644 --- a/sshkey-attest/src/proto.rs +++ b/sshkey-attest/src/proto.rs @@ -7,7 +7,7 @@ pub use sshkeys::PublicKey; /// An attested public key. This contains the ssh public key as well as the /// attestation metadata. -#[derive(Debug, Serialize, Deserialize)] +#[derive(Clone, Debug, Serialize, Deserialize)] pub struct AttestedPublicKey { /// The ssh public key pub pubkey: PublicKey,