diff options
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 20 |
1 files changed, 10 insertions, 10 deletions
| @@ -11,19 +11,19 @@ | |||
| 11 | 11 | ||
| 12 | #include "snac.h" | 12 | #include "snac.h" |
| 13 | 13 | ||
| 14 | d_char *http_signed_request(snac *snac, char *method, char *url, | 14 | xs_dict *http_signed_request(snac *snac, const char *method, const char *url, |
| 15 | d_char *headers, | 15 | xs_dict *headers, |
| 16 | d_char *body, int b_size, | 16 | const char *body, int b_size, |
| 17 | int *status, d_char **payload, int *p_size, | 17 | int *status, xs_str **payload, int *p_size, |
| 18 | int timeout) | 18 | int timeout) |
| 19 | /* does a signed HTTP request */ | 19 | /* does a signed HTTP request */ |
| 20 | { | 20 | { |
| 21 | xs *l1; | 21 | xs *l1 = NULL; |
| 22 | xs *date; | 22 | xs *date = NULL; |
| 23 | xs *digest; | 23 | xs *digest = NULL; |
| 24 | xs *s64; | 24 | xs *s64 = NULL; |
| 25 | xs *signature; | 25 | xs *signature = NULL; |
| 26 | xs *hdrs; | 26 | xs *hdrs = NULL; |
| 27 | char *host; | 27 | char *host; |
| 28 | char *target; | 28 | char *target; |
| 29 | char *seckey; | 29 | char *seckey; |