diff options
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -10,9 +10,9 @@ | |||
| 10 | #include "snac.h" | 10 | #include "snac.h" |
| 11 | 11 | ||
| 12 | d_char *http_signed_request(snac *snac, char *method, char *url, | 12 | d_char *http_signed_request(snac *snac, char *method, char *url, |
| 13 | d_char *headers, | 13 | d_char *headers, |
| 14 | d_char *body, int b_size, | 14 | d_char *body, int b_size, |
| 15 | int *status, d_char **payload, int *p_size) | 15 | int *status, d_char **payload, int *p_size) |
| 16 | /* does a signed HTTP request */ | 16 | /* does a signed HTTP request */ |
| 17 | { | 17 | { |
| 18 | xs *l1; | 18 | xs *l1; |
| @@ -65,7 +65,7 @@ d_char *http_signed_request(snac *snac, char *method, char *url, | |||
| 65 | strcmp(method, "POST") == 0 ? "post" : "get", | 65 | strcmp(method, "POST") == 0 ? "post" : "get", |
| 66 | target, host, digest, date); | 66 | target, host, digest, date); |
| 67 | 67 | ||
| 68 | s64 = xs_rsa_sign(seckey, s, strlen(s)); | 68 | s64 = xs_evp_sign(seckey, s, strlen(s)); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | /* build now the signature header */ | 71 | /* build now the signature header */ |