curl / Mailing Lists / curl-users / Single Mail

curl-users

OpenSSL 1.1 and Curl

From: William Bathurst <william.bathurst_at_m2mi.com>
Date: Tue, 10 Jan 2017 18:38:04 -0800

Hello,

I am trying to get Curl to build using OpenSSL 1.1. Is there a version
of curl that supports this? I am seeing a lot of errors like the following:

vtls/openssl.c: In function 'Curl_ossl_cleanup':
vtls/openssl.c:754:3: warning: 'ERR_remove_thread_state' is deprecated
(declared at /usr/local/ssl/include/openssl/err.h:246)
[-Wdeprecated-declarations]
    ERR_remove_thread_state(NULL);
    ^
vtls/openssl.c: In function 'verifyhost':
vtls/openssl.c:1088:9: warning: 'ASN1_STRING_data' is deprecated
(declared at /usr/local/ssl/include/openssl/asn1.h:553)
[-Wdeprecated-declarations]
          const char *altptr = (char *)ASN1_STRING_data(check->d.ia5);
          ^
vtls/openssl.c:1171:15: warning: 'ASN1_STRING_data' is deprecated
(declared at /usr/local/ssl/include/openssl/asn1.h:553)
[-Wdeprecated-declarations]
                memcpy(peer_CN, ASN1_STRING_data(tmp), j);
                ^
vtls/openssl.c: In function 'get_cert_chain':
vtls/openssl.c:2349:13: error: dereferencing pointer to incomplete type
      cinf = x->cert_info;
              ^
vtls/openssl.c:2351:30: error: dereferencing pointer to incomplete type
      i2a_ASN1_OBJECT(mem, cinf->signature->algorithm);

Thanks in Advance!
Bill

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-01-11