diff options
author | default <nobody@localhost> | 2022-09-29 14:44:24 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-29 14:44:24 +0200 |
commit | 392c014c26ccf8c5281b3bc7f33024f1f3b3f990 (patch) | |
tree | 0c64839f9a82528b31d0636fc5cfdd687ddc364d /activitypub.c | |
parent | c680f15d4ea418b1b5e9c494be9bf4daa0eb6d49 (diff) |
New function check_signature() (incomplete).
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index cebefca..7a30010 100644 --- a/activitypub.c +++ b/activitypub.c @@ -594,7 +594,10 @@ int process_message(snac *snac, char *msg, char *req) } /* check the signature */ - /* ... */ + if (!check_signature(snac, req)) { + snac_log(snac, xs_fmt("bad signature")); + return 1; + } if (strcmp(type, "Follow") == 0) { xs *reply = msg_accept(snac, msg, actor); |