Compare commits

..
3 changed files with 468 additions and 311 deletions

771
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -41,13 +41,13 @@ chrono = { version = "0.4", default-features = false, features = [
] }
clap = { version = "4", features = ["derive"] }
clap_complete = "4"
indicatif = "0.18"
indicatif = "0.17"
hive-sh4re = { path = "hive-sh4re" }
hive-claude = { path = "hive-claude" }
hive-host-sock = { path = "hive-host-sock" }
hive-priv-sock = { path = "hive-priv-sock" }
thiserror = "2"
tower-http = { version = "0.7", features = ["fs"] }
tower-http = { version = "0.6", features = ["fs"] }
rmcp = { version = "1.7", default-features = false, features = [
"server",
"macros",
@ -96,5 +96,5 @@ matrix-sdk = { version = "0.14", default-features = false, features = [
"e2e-encryption",
] }
futures-util = "0.3"
hmac = "0.13"
sha2 = "0.11"
hmac = "0.12"
sha2 = "0.10"

View file

@ -66,7 +66,7 @@ fn hex_encode(bytes: &[u8]) -> String {
///
/// Forgejo sends: `sha256=<hex>`.
pub fn verify_signature(secret: &str, body: &[u8], header: &str) -> Result<()> {
use hmac::{Hmac, KeyInit, Mac};
use hmac::{Hmac, Mac};
use sha2::Sha256;
let sig_hex = header