Skip to content

Commit

Permalink
Enable software hpke backend for usbip
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Oct 21, 2024
1 parent fbf731f commit 7f1930e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion components/apps/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ se050 = ["dep:se05x", "trussed-se050-backend", "trussed-se050-manage", "admin-ap
# backends
backend-auth = ["trussed-auth"]
backend-rsa = ["trussed-rsa-alloc"]
backend-software-hpke = ["trussed-staging/hpke"]

log-all = ["admin-app/log-all", "fido-authenticator?/log-all", "secrets-app?/log-all", "webcrypt?/log-all", "opcard?/log-all", "provisioner-app?/log-all"]

trussed-usbip-ccid = ["trussed-usbip/ccid", "trussed-staging/hpke"]
trussed-usbip-ccid = ["trussed-usbip/ccid", "backend-software-hpke"]

factory-reset = ["admin-app/factory-reset"]

Expand Down
4 changes: 1 addition & 3 deletions components/apps/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,7 @@ impl<T: Twi, D: Delay> ExtensionDispatch for Dispatch<T, D> {
resources,
)
}
#[cfg(feature = "piv-authenticator")]
// Don't use staging hpke if se050 is available
#[cfg(not(feature = "se050"))]
#[cfg(feature = "backend-software-hpke")]
Extension::Hpke => ExtensionImpl::<HpkeExtension>::extension_request_serialized(
&mut self.staging,
&mut ctx.core,
Expand Down

0 comments on commit 7f1930e

Please sign in to comment.