summaryrefslogtreecommitdiff
path: root/shopify.c
diff options
context:
space:
mode:
Diffstat (limited to 'shopify.c')
-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];