From 9573dbcdb698bf863af9921e305ff2d818d30fe2 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 21 Sep 2022 09:17:59 +0200 Subject: New function xs_sha256_base64(). --- http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http.c') diff --git a/http.c b/http.c index 88222a5..2cbcdec 100644 --- a/http.c +++ b/http.c @@ -43,9 +43,9 @@ d_char *http_signed_request(snac *snac, char *method, char *url, /* digest */ if (body != NULL) - digest = xs_sha256_hex(body, b_size); + digest = xs_sha256_base64(body, b_size); else - digest = xs_sha256_hex("", 0); + digest = xs_sha256_base64("", 0); seckey = xs_dict_get(snac->key, "secret"); -- cgit v1.2.3