You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
curl build fails with OpenSSL (master) using opaque X509 struct #491
I realize I'm using the "bleeding edge" codelines. Perhaps consider this more of a heads up of openssl changes affecting curl (likely BoringSSL too).
The 'internals' lists 'OpenSSL 0.9.7' as a dependency (http://curl.haxx.se/dev/internals.html). However, I'm not sure where it might be mentioned the "most recently tested compatible' versions of underlying libraries such as OpenSSL.
[Edit: I have reverted to an earlier OpenSSL commit for the time being.]
~~
Appears to be a side-effect of this commit in OpenSSL master codeline
Commit: 2c81e476fab0e3e0b6140652b4577bf6f3b827be [2c81e47]
Parents: 7e4188326b
Author: Dr. Stephen Henson <steve@openssl.org>
Date: September 22, 2015 at 6:00:13 AM PDT
Commit Date: September 22, 2015 at 1:15:55 PM PDT
Make X509 opaque
Reviewed-by: Rich Salz <rsalz@openssl.org>
We test and aim to work with all released versions of OpenSSL. While I think it is useful to also work with OpenSSL's development branch it is a high maintenance burden to keep that polished. We'll appreciate patches that fix this, and I occasionally go through and fix this myself but I cannot consider it to be a high prioritized activity.
I just looked and its not clear to me which alternative API they suggest we use to get the same information. I will consider this an OpenSSL bug for now.
I just looked and its not clear to me which alternative API they suggest
we use to get the same information. I will consider this an OpenSSL bug for
now.
—
Reply to this email directly or view it on GitHub.
Agreed.
Thanks for taking a look at it. :)
Fwiw : I added an SSL context callback (and some naughty header copy/paste
hackery) to poke at some of the inner structures in my app's curl calls at
runtime. It gets around some issues I needed to address but isn't a viable,
not ideal, long-term solution.
vtls/openssl.c(2343): error C2037: left of 'cert_info' specifies undefined struct/union 'x509_st'
vtls/openssl.c(2345): error C2037: left of 'signature' specifies undefined struct/union 'x509_cinf_st'
vtls/openssl.c(2345): error C2198: 'i2a_ASN1_OBJECT': too few arguments for call
vtls/openssl.c(2354): error C2037: left of 'key' specifies undefined struct/union 'x509_cinf_st'
vtls/openssl.c(2354): error C2198: 'i2a_ASN1_OBJECT': too few arguments for call
vtls/openssl.c(2397): error C2037: left of 'extensions' specifies undefined struct/union 'x509_cinf_st'
vtls/openssl.c(2397): error C2198: 'X509V3_ext': too few arguments for call
vtls/openssl.c(2399): error C2037: left of 'signature' specifies undefined struct/union 'x509_st'
vtls/openssl.c(2400): error C2037: left of 'signature' specifies undefined struct/union 'x509_st'
Activity
bagder commentedon Oct 15, 2015
We test and aim to work with all released versions of OpenSSL. While I think it is useful to also work with OpenSSL's development branch it is a high maintenance burden to keep that polished. We'll appreciate patches that fix this, and I occasionally go through and fix this myself but I cannot consider it to be a high prioritized activity.
[-]Curl build fails with latest OpenSSL[/-][+]curl build fails with OpenSSL (master) using opaque X509 struct[/+]bagder commentedon Oct 17, 2015
I just looked and its not clear to me which alternative API they suggest we use to get the same information. I will consider this an OpenSSL bug for now.
DevByStarlight commentedon Nov 3, 2015
On Oct 17, 2015 14:23, "Daniel Stenberg" notifications@github.com wrote:
Agreed.
Thanks for taking a look at it. :)
Fwiw : I added an SSL context callback (and some naughty header copy/paste
hackery) to poke at some of the inner structures in my app's curl calls at
runtime. It gets around some issues I needed to address but isn't a viable,
not ideal, long-term solution.
gvanem commentedon Dec 2, 2015
I can verify this on MSVC/Windows too:
And these:
@bagder I will consider this an OpenSSL bug for now.
Probably. I'll stick to SChannel anyway.
bagder commentedon Dec 10, 2015
This also fails the same way with "version 1.1.0 pre release 1 (alpha)" that was released today.
bagder commentedon Dec 10, 2015
(in addition to several other warnings/errors)
richsalz commentedon Dec 10, 2015
If you consider it an OpenSSL bug, please mail details to rt at openssl.org
bagder commentedon Dec 10, 2015
Thanks, filed here: https://rt.openssl.org/Ticket/Display.html?id=4177
(some other minor tweaks were just pushed)
bagder commentedon Dec 10, 2015
With the use of some fun #ifdef trickery I solved it and OpenSSL >= 1.1.0 now works and builds fine.
richsalz commentedon Dec 11, 2015
Great. Is there an easy way to see what you did? Maybe others would benefit and we could post it on the wiki.
bagder commentedon Dec 12, 2015
First, I had to add some #defines for names that no longer exist:
fa9332d
Then I adjusted to using new X509* calls to access the data that isn't exposed in structs anymore:
7f683b0
richsalz commentedon Dec 12, 2015
Thanks, I'll copy these links into our wiki!