diff options
| author | 2022-09-21 09:17:59 +0200 | |
|---|---|---|
| committer | 2022-09-21 09:17:59 +0200 | |
| commit | 9573dbcdb698bf863af9921e305ff2d818d30fe2 (patch) | |
| tree | 01f21663e102169f2fa92210b9cc75496259f718 /http.c | |
| parent | Use its own copy of the headers in http_signed_request(). (diff) | |
| download | penes-snac2-9573dbcdb698bf863af9921e305ff2d818d30fe2.tar.gz penes-snac2-9573dbcdb698bf863af9921e305ff2d818d30fe2.tar.xz penes-snac2-9573dbcdb698bf863af9921e305ff2d818d30fe2.zip | |
New function xs_sha256_base64().
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -43,9 +43,9 @@ d_char *http_signed_request(snac *snac, char *method, char *url, | |||
| 43 | 43 | ||
| 44 | /* digest */ | 44 | /* digest */ |
| 45 | if (body != NULL) | 45 | if (body != NULL) |
| 46 | digest = xs_sha256_hex(body, b_size); | 46 | digest = xs_sha256_base64(body, b_size); |
| 47 | else | 47 | else |
| 48 | digest = xs_sha256_hex("", 0); | 48 | digest = xs_sha256_base64("", 0); |
| 49 | 49 | ||
| 50 | seckey = xs_dict_get(snac->key, "secret"); | 50 | seckey = xs_dict_get(snac->key, "secret"); |
| 51 | 51 | ||