Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d04c86e9ac | ||
|
|
52114c6d02 |
3 changed files with 311 additions and 468 deletions
769
Cargo.lock
generated
769
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -41,13 +41,13 @@ chrono = { version = "0.4", default-features = false, features = [
|
||||||
] }
|
] }
|
||||||
clap = { version = "4", features = ["derive"] }
|
clap = { version = "4", features = ["derive"] }
|
||||||
clap_complete = "4"
|
clap_complete = "4"
|
||||||
indicatif = "0.17"
|
indicatif = "0.18"
|
||||||
hive-sh4re = { path = "hive-sh4re" }
|
hive-sh4re = { path = "hive-sh4re" }
|
||||||
hive-claude = { path = "hive-claude" }
|
hive-claude = { path = "hive-claude" }
|
||||||
hive-host-sock = { path = "hive-host-sock" }
|
hive-host-sock = { path = "hive-host-sock" }
|
||||||
hive-priv-sock = { path = "hive-priv-sock" }
|
hive-priv-sock = { path = "hive-priv-sock" }
|
||||||
thiserror = "2"
|
thiserror = "2"
|
||||||
tower-http = { version = "0.6", features = ["fs"] }
|
tower-http = { version = "0.7", features = ["fs"] }
|
||||||
rmcp = { version = "1.7", default-features = false, features = [
|
rmcp = { version = "1.7", default-features = false, features = [
|
||||||
"server",
|
"server",
|
||||||
"macros",
|
"macros",
|
||||||
|
|
@ -96,5 +96,5 @@ matrix-sdk = { version = "0.14", default-features = false, features = [
|
||||||
"e2e-encryption",
|
"e2e-encryption",
|
||||||
] }
|
] }
|
||||||
futures-util = "0.3"
|
futures-util = "0.3"
|
||||||
hmac = "0.12"
|
hmac = "0.13"
|
||||||
sha2 = "0.10"
|
sha2 = "0.11"
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ fn hex_encode(bytes: &[u8]) -> String {
|
||||||
///
|
///
|
||||||
/// Forgejo sends: `sha256=<hex>`.
|
/// Forgejo sends: `sha256=<hex>`.
|
||||||
pub fn verify_signature(secret: &str, body: &[u8], header: &str) -> Result<()> {
|
pub fn verify_signature(secret: &str, body: &[u8], header: &str) -> Result<()> {
|
||||||
use hmac::{Hmac, Mac};
|
use hmac::{Hmac, KeyInit, Mac};
|
||||||
use sha2::Sha256;
|
use sha2::Sha256;
|
||||||
|
|
||||||
let sig_hex = header
|
let sig_hex = header
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue