From b256206115ed8829f476d5410cb3fba862448b93 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Thu, 16 Apr 2026 12:38:05 +0200 Subject: [PATCH] update to version of ssh-agent-lib supporting certificates --- Cargo.lock | 34 +++++++--------------------------- Cargo.toml | 2 +- src/main.rs | 2 +- 3 files changed, 9 insertions(+), 29 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ba81b08..31b33da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1508,9 +1508,9 @@ dependencies = [ [[package]] name = "secrecy" -version = "0.8.0" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bd1c54ea06cfd2f6b63219704de0b9b4f72dcc2b8fdef820be6cd799780e91e" +checksum = "e891af845473308773346dc847b2c23ee78fe442e0472ac50e22a18a93d3ae5a" dependencies = [ "zeroize", ] @@ -1654,8 +1654,8 @@ dependencies = [ [[package]] name = "ssh-agent-lib" -version = "0.4.0" -source = "git+https://github.com/wiktor-k/ssh-agent-lib?rev=7f069b1a9c2dc4656f104e2e3643a0efef096e37#7f069b1a9c2dc4656f104e2e3643a0efef096e37" +version = "0.5.2" +source = "git+https://github.com/wiktor-k/ssh-agent-lib?rev=1f86f25bd53c236344d60df2574f0a343e9b9136#1f86f25bd53c236344d60df2574f0a343e9b9136" dependencies = [ "async-trait", "byteorder", @@ -1667,7 +1667,7 @@ dependencies = [ "ssh-encoding", "ssh-key", "subtle", - "thiserror 1.0.69", + "thiserror", "tokio", "tokio-util", ] @@ -1758,7 +1758,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b1e66e07de489fe43a46678dd0b8df65e0c973909df1b60ba33874e297ba9b9" dependencies = [ "quick-xml", - "thiserror 2.0.17", + "thiserror", "windows", "windows-version", ] @@ -1776,33 +1776,13 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "thiserror" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" -dependencies = [ - "thiserror-impl 1.0.69", -] - [[package]] name = "thiserror" version = "2.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8" dependencies = [ - "thiserror-impl 2.0.17", -] - -[[package]] -name = "thiserror-impl" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" -dependencies = [ - "proc-macro2", - "quote", - "syn", + "thiserror-impl", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 138a5ff..eafbbae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,5 +16,5 @@ libnotify-sys = "1.0.2" notify-rust = "4.11.3" procfs = "0.16.0" service-binding = "3.0.0" -ssh-agent-lib = { git = "https://github.com/wiktor-k/ssh-agent-lib", rev = "7f069b1a9c2dc4656f104e2e3643a0efef096e37" } +ssh-agent-lib = { git = "https://github.com/wiktor-k/ssh-agent-lib", rev = "1f86f25bd53c236344d60df2574f0a343e9b9136" } tokio = { version = "1.40.0", features = ["net", "macros", "rt-multi-thread", "sync"] } diff --git a/src/main.rs b/src/main.rs index ff9b022..9db94c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,7 @@ impl Session for NotifyOnSign { let identity = identities .iter() .find_map(|id| { - if id.pubkey == req.pubkey { + if id.credential == req.credential { return Some(id.comment.to_string()); } None