summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c5
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);