summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2022-09-29 14:44:24 +0200
committerGravatar default2022-09-29 14:44:24 +0200
commit392c014c26ccf8c5281b3bc7f33024f1f3b3f990 (patch)
tree0c64839f9a82528b31d0636fc5cfdd687ddc364d /activitypub.c
parentBackport from xs. (diff)
downloadsnac2-392c014c26ccf8c5281b3bc7f33024f1f3b3f990.tar.gz
snac2-392c014c26ccf8c5281b3bc7f33024f1f3b3f990.tar.xz
snac2-392c014c26ccf8c5281b3bc7f33024f1f3b3f990.zip
New function check_signature() (incomplete).
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)
594 } 594 }
595 595
596 /* check the signature */ 596 /* check the signature */
597 /* ... */ 597 if (!check_signature(snac, req)) {
598 snac_log(snac, xs_fmt("bad signature"));
599 return 1;
600 }
598 601
599 if (strcmp(type, "Follow") == 0) { 602 if (strcmp(type, "Follow") == 0) {
600 xs *reply = msg_accept(snac, msg, actor); 603 xs *reply = msg_accept(snac, msg, actor);