From be894b379e72126a28c1aeaa79d4c5eab787638a Mon Sep 17 00:00:00 2001 From: grunfink Date: Wed, 24 Jun 2026 08:45:27 +0200 Subject: Added an new keyId check. --- http.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'http.c') diff --git a/http.c b/http.c index 125d346..95cc489 100644 --- a/http.c +++ b/http.c @@ -123,7 +123,7 @@ xs_dict *http_signed_request(snac *snac, const char *method, const char *url, } -int check_signature(const xs_dict *req, xs_str **err) +int check_signature(const xs_dict *req, xs_str **err, xs_str **key_id) /* check the signature */ { const char *sig_hdr = xs_dict_get(req, "signature"); @@ -182,6 +182,9 @@ int check_signature(const xs_dict *req, xs_str **err) if ((p = strchr(keyId, '#')) != NULL) *p = '\0'; + /* copy the keyId */ + *key_id = xs_dup(keyId); + xs *actor = NULL; int status; -- cgit