Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sshcerts"
version = "0.14.0"
version = "0.14.1"
authors = ["Mitchell Grenier <[email protected]>"]
edition = "2021"
license-file = "LICENSE"
Expand All @@ -14,6 +14,14 @@ categories = ["authentication"]
default = ["all"]

all = [
"encrypted-keys",
"rsa-signing",
"x509-support",
"yubikey-support",
"fido-support",
]

all-mozilla = [
"encrypted-keys",
"rsa-signing",
"x509-support",
Expand Down Expand Up @@ -86,8 +94,8 @@ authenticator = { version = "0.4.0-alpha.24", default-features = false, features


# Dependencies for fido-support
ctap-hid-fido2 = { version = "3", optional = true }
#ctap-hid-fido2 = {git = "https://github.com/gebogebogebo/ctap-hid-fido2", branch="master", optional = true}
#ctap-hid-fido2 = { version = "3", optional = true }
ctap-hid-fido2 = { git = "https://github.com/gebogebogebo/ctap-hid-fido2", branch = "master", optional = true }
#ctap-hid-fido2 = {git = "https://github.com/obelisk/ctap-hid-fido2", branch="device_by_path", optional = true}
#ctap-hid-fido2 = {path = "../ctap-hid-fido2", optional = true}

Expand Down Expand Up @@ -124,7 +132,7 @@ required-features = ["x509-support"]

[[example]]
name = "new-fido-sshkey"
required-features = ["fido-support-mozilla"]
required-features = ["fido-support"]

[[test]]
name = "privkey-encrypted"
Expand Down
4 changes: 2 additions & 2 deletions benches/certs_per_second.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use criterion::{criterion_group, criterion_main, Criterion};

use sshcerts::yubikey::{RetiredSlotId, SlotId, Yubikey};
use sshcerts::yubikey::piv::Yubikey;
use yubikey::piv::{RetiredSlotId, SlotId};

fn generate_certs(n: u64) -> () {
let data = [0; 32];
Expand Down
8 changes: 4 additions & 4 deletions src/fido/generate/ctap2_hid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ pub fn generate_new_ssh_key(
.map_err(|e| Error::FidoError(FidoError::Unknown(e.to_string())))?;

let mut ret = 0x0;
if att.flags_user_present_result {
if att.flags.user_present_result {
ret = ret | 0x01;
}
if att.flags_user_verified_result {
if att.flags.user_verified_result {
ret = ret | 0x04;
}
if att.flags_attested_credential_data_included {
if att.flags.attested_credential_data_included {
ret = ret | 0x40;
}
if att.flags_extension_data_included {
if att.flags.extension_data_included {
ret = ret | 0x80;
}

Expand Down
Loading