summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-22 14:37:32 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-22 14:37:32 +0800
commit2bb484914b6118c5c9ace2d4b8aab6b28c9782b3 (patch)
tree9c0f1f61be87151cf04f7749d1896a4ca9f5cf7c
parent02d4e0ffb896d2a47200b363c0118f7ef93176e9 (diff)
Wrong key in prev commit
-rw-r--r--shopify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shopify.c b/shopify.c
index 1bf2f77..e27d43e 100644
--- a/shopify.c
+++ b/shopify.c
@@ -253,7 +253,7 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con,
gcry_mac_hd_t hd;
gcry_mac_open(&hd, GCRY_MAC_HMAC_SHA256, GCRY_MAC_FLAG_SECURE,
NULL);
- gcry_mac_setkey(hd, api_key, api_key_len);
+ gcry_mac_setkey(hd, api_secret_key, strlen(api_secret_key));
gcry_mac_write(hd, query, query_len);
static size_t hmacsha256_len = 32;
unsigned char hmacsha256[hmacsha256_len];