From: Bastian Dehn Date: Wed, 15 Oct 2025 06:42:37 +0000 (+0200) Subject: change verify into init method X-Git-Tag: v1.1.12^2~3^2~11 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=4761d2051d4600d4d775e12df2e636cd74104f4a;p=sane-kds-s2000w-net.git change verify into init method --- diff --git a/src/kds_s2000w_client.c b/src/kds_s2000w_client.c index b7902cd..d4ce513 100644 --- a/src/kds_s2000w_client.c +++ b/src/kds_s2000w_client.c @@ -134,6 +134,7 @@ char* _kds_s2000w_client_errbuf_init() param->errbuf = _kds_s2000w_client_errbuf_init(); _kds_s2000w_client_set_verbose(param->curl); + _kds_s2000w_client_set_ssl_verification_off(param->curl); return param; } @@ -250,8 +251,6 @@ uint8_t kds_s2000w_client_open_session(response* resp) curl_easy_setopt(param->curl, CURLOPT_POST, 1L); curl_easy_setopt(param->curl, CURLOPT_POSTFIELDS, body); - _kds_s2000w_client_set_ssl_verification_off(param->curl); - curl_easy_setopt(param->curl, CURLOPT_ERRORBUFFER, param->errbuf); curl_easy_setopt(param->curl, CURLOPT_WRITEFUNCTION, _kds_s2000w_client_write_callback); curl_easy_setopt(param->curl, CURLOPT_WRITEDATA, resp);