diff options
| author | 2023-03-01 08:25:36 +0100 | |
|---|---|---|
| committer | 2023-03-01 08:25:36 +0100 | |
| commit | d75a22adab5b93c0705b9f58fe660d82219ad573 (patch) | |
| tree | 85db34cf165305d6a751e30a55464692deb2d966 /snac.h | |
| parent | Moved srv_archive() to data.c. (diff) | |
| download | snac2-d75a22adab5b93c0705b9f58fe660d82219ad573.tar.gz snac2-d75a22adab5b93c0705b9f58fe660d82219ad573.tar.xz snac2-d75a22adab5b93c0705b9f58fe660d82219ad573.zip | |
New function srv_archive_error().
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -55,6 +55,8 @@ void srv_archive(const char *direction, xs_dict *req, | |||
| 55 | const char *payload, int p_size, | 55 | const char *payload, int p_size, |
| 56 | int status, xs_dict *headers, | 56 | int status, xs_dict *headers, |
| 57 | const char *body, int b_size); | 57 | const char *body, int b_size); |
| 58 | void srv_archive_error(const char *prefix, const xs_str *err, | ||
| 59 | const xs_dict *req, const xs_dict *data); | ||
| 58 | 60 | ||
| 59 | double mtime_nl(const char *fn, int *n_link); | 61 | double mtime_nl(const char *fn, int *n_link); |
| 60 | #define mtime(fn) mtime_nl(fn, NULL) | 62 | #define mtime(fn) mtime_nl(fn, NULL) |
| @@ -157,7 +159,7 @@ xs_dict *http_signed_request(snac *snac, const char *method, const char *url, | |||
| 157 | const char *body, int b_size, | 159 | const char *body, int b_size, |
| 158 | int *status, xs_str **payload, int *p_size, | 160 | int *status, xs_str **payload, int *p_size, |
| 159 | int timeout); | 161 | int timeout); |
| 160 | int check_signature(snac *snac, char *req); | 162 | int check_signature(snac *snac, xs_dict *req, xs_str **err); |
| 161 | 163 | ||
| 162 | void httpd(void); | 164 | void httpd(void); |
| 163 | 165 | ||