diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-16 08:57:16 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-16 08:57:16 +0800 |
| commit | 1ffb560b8de53c8439abed14c6669cd13a70b9ac (patch) | |
| tree | d75b9f73a758853ddbc325ba876422f53029f480 /shopify.c | |
| parent | 97a61595470ba667df08cc83d070516e7f807d8c (diff) | |
Move the char * casting when facing gnutls
Diffstat (limited to 'shopify.c')
| -rw-r--r-- | shopify.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,7 +45,7 @@ extern inline void crypt_init(); extern inline bool crypt_maccmp(const char *, const char *, const char *); extern inline void crypt_getnonce(char [], const size_t); extern inline bool regex_match(const char *); -extern inline void base64_decode(unsigned char *, char **); +extern inline void base64_decode(const char *, char **); extern inline void config_getscopes(const char *, char **); extern inline void request_init(); extern inline void request_token(const char *, const char *, const char *, @@ -193,7 +193,7 @@ enum MHD_Result shopify_respond(const struct shopify_param params[], sizeof(struct shopify_param), keycmp); bool embedded = param && !strcmp(param->val, "1"); char *decoded_host; - base64_decode((unsigned char *)host, &decoded_host); + base64_decode(host, &decoded_host); int nsessions = 0; while (sessions[nsessions].shop) nsessions++; |