summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-26 14:45:31 +0200
committerdefault <nobody@localhost>2022-09-26 14:45:31 +0200
commitacb4bcd80fadc02f5c090d5050ee15a0733a2c55 (patch)
tree90efe0e23aab62823c1874c0e0b4aa976970725c /http.c
parente3cea557700bad3c7ab163f68f8723d781457dfa (diff)
Use xs_evp_sign() for signing.
Diffstat (limited to 'http.c')
-rw-r--r--http.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/http.c b/http.c
index 2a99c2b..c57714d 100644
--- a/http.c
+++ b/http.c
@@ -10,9 +10,9 @@
#include "snac.h"
d_char *http_signed_request(snac *snac, char *method, char *url,
- d_char *headers,
- d_char *body, int b_size,
- int *status, d_char **payload, int *p_size)
+ d_char *headers,
+ d_char *body, int b_size,
+ int *status, d_char **payload, int *p_size)
/* does a signed HTTP request */
{
xs *l1;
@@ -65,7 +65,7 @@ d_char *http_signed_request(snac *snac, char *method, char *url,
strcmp(method, "POST") == 0 ? "post" : "get",
target, host, digest, date);
- s64 = xs_rsa_sign(seckey, s, strlen(s));
+ s64 = xs_evp_sign(seckey, s, strlen(s));
}
/* build now the signature header */