On Wed, Dec 8, 2021 at 10:54 AM Thierry Huchard via curl-library
<curl-library@lists.haxx.se> wrote:
>
> Hello to all !
> I am the maintainer of the sane-escl backend, I have an error on an
> https access on a canon XK90 scanner.
> If you have an idea of why and how to bypass it, I'm interested!
>
>      curl_handle = curl_easy_init();
>      curl_easy_setopt(curl_handle, CURLOPT_URL,
> "https://192.168.yyy.xxx:443/eSCL/ScannerCapabilities";);
>      curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0L);
>      curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0L);
>      curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION,
> memory_callback_c);
>      curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)var);
>      curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION,
> header_callback);
>      curl_easy_setopt(curl_handle, CURLOPT_HEADERDATA, (void *)header);
>      curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1L);
>      curl_easy_setopt(curl_handle, CURLOPT_MAXREDIRS, 3L);
>      CURLcode res = curl_easy_perform(curl_handle);
>      if (res != CURLE_OK) {
>            printf("respond: %s\n", curl_easy_strerror(res)); // respond:
> SSL connect error
>            exit--1);
>      }
>
> I don't have access to the device!


Well.. This almost always happen when openssl refuses to talk to the
target system because it uses unacceptable ancient  ciphersuites or
TLS versions. You need a new scanner. :-(
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to