From 7265b0360fd90d9147bd58a885ac48445d577c9b Mon Sep 17 00:00:00 2001 From: Philip Tricca Date: Thu, 17 Oct 2024 13:44:41 -0700 Subject: [PATCH] Hsm: `close_session` didn't need a mut reference --- Cargo.lock | 2 +- src/ca.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aefe9c4..6f039ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2142,7 +2142,7 @@ dependencies = [ [[package]] name = "yubihsm" version = "0.42.1" -source = "git+https://github.com/oxidecomputer/yubihsm.rs?branch=session-close#b61a72247b359f9a19ab70095a76cad14d54714e" +source = "git+https://github.com/oxidecomputer/yubihsm.rs?branch=session-close#de7dc53bc0fcffda1854012b254b3f5cfc0b0bae" dependencies = [ "aes", "bitflags", diff --git a/src/ca.rs b/src/ca.rs index 63ce11b..77a4dd0 100644 --- a/src/ca.rs +++ b/src/ca.rs @@ -474,7 +474,7 @@ pub fn sign( return Err(e); } } else if filename.ends_with(DCSRSPEC_EXT) { - let mut hsm = Hsm::new( + let hsm = Hsm::new( 0x0002, &passwd_from_env("OKM_HSM_PKCS11_AUTH")?, publish,