chibipub

experimental activitypub node in C
git clone git://jb55.com/chibipub
Log | Files | Refs | README | LICENSE

inbox.h (423B)


      1 #ifndef CHIBIPUB_INBOX
      2 #define CHIBIPUB_INBOX
      3 
      4 #include "cursor.h"
      5 #include "errors.h"
      6 
      7 struct sig_header {
      8 	const char *key_id;
      9 	char *b64_sig;
     10 	int b64_len;
     11 	const char *headers;
     12 	unsigned char *signature;
     13 	int signature_len;
     14 };
     15 
     16 
     17 int parse_signature_header(struct errors *errs, struct cursor *arena, const char *value, int value_len, struct sig_header *out);
     18 int verify_signature_header(struct sig_header *sig);
     19 
     20 #endif