You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
394 B
C

#pragma once
#include <stdbool.h>
struct crypto_keys;
struct ap_envelope;
struct http_signature
{
char* host;
char* date;
char* signature;
};
bool http_signature_make( const char* inbox, struct crypto_keys* keys, struct http_signature* sign );
void http_signature_free( struct http_signature* sign );
bool http_signature_validate( struct ap_envelope* env, const char* request_target );