summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-19 17:25:14 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-19 17:25:14 +0800
commit669455d56246517cb04038b11f977c01d080ef27 (patch)
treeab6357b927a92b0774f4192f2cc3ef4fc3f8decc
parente39dff5001bdd36bd2a2ca546ff19ea39965f79c (diff)
No curl init for Emscripten
-rw-r--r--client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/client.c b/client.c
index b66470f..d88bafb 100644
--- a/client.c
+++ b/client.c
@@ -34,7 +34,9 @@ void icclient_init(const char *url, const char *dir, const char *cert)
certificate = malloc(strlen(certificate) + 1);
strcpy(certificate, cert);
}
+#ifndef __EMSCRIPTEN__
curl_global_init(CURL_GLOBAL_SSL);
+#endif
}
void icclient_catalog(const char *prod_group, void (*handler)(icclient_response *), void (*callback)(struct icclient_catalog *))