opaque X509 struct issues
Daniel Stenberg
daniel at haxx.se
Thu Dec 10 16:28:27 UTC 2015
Hey,
In the curl project we're accessing the 'cert_info' to find the
'signature->algorithm' fields from the X509 and X509_CINF structs [*] and we
can't build with openssl git master or the 1.1.0-pre release.
How can we reach that info using a "proper" API?
Making all in lib
CC vtls/libcurl_la-openssl.lo
vtls/openssl.c: In function 'get_cert_chain':
vtls/openssl.c:2347:13: error: dereferencing pointer to incomplete type 'X509
{aka struct x509_s\
t}'
cinf = x->cert_info;
^
vtls/openssl.c:2349:30: error: dereferencing pointer to incomplete type
'X509_CINF {aka struct x\
509_cinf_st}'
i2a_ASN1_OBJECT(mem, cinf->signature->algorithm);
^
Makefile:1868: recipe for target 'vtls/libcurl_la-openssl.lo' failed
We support building with OpenSSL 0.9.7+ and we're looking for a way to keep
that while at the same time support the latest versions!
[*] = https://github.com/bagder/curl/blob/master/lib/vtls/openssl.c#L2346
--
/ daniel.haxx.se
More information about the openssl-bugs-mod
mailing list