diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-22 14:37:32 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-22 14:37:32 +0800 |
commit | 2bb484914b6118c5c9ace2d4b8aab6b28c9782b3 (patch) | |
tree | 9c0f1f61be87151cf04f7749d1896a4ca9f5cf7c | |
parent | 02d4e0ffb896d2a47200b363c0118f7ef93176e9 (diff) |
Wrong key in prev commit
-rw-r--r-- | shopify.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |