mirror of
https://github.com/curl/curl.git
synced 2025-09-14 08:02:44 +03:00
openssl: use X509_ALGOR_get0 instead of reaching into X509_ALGOR
While the struct is still public in OpenSSL, there is a (somewhat inconvenient) accessor. Use it to remain compatible if it becomes opaque in the future. Closes #12038
This commit is contained in:
parent
a311c72723
commit
9eb774304e
|
@ -466,7 +466,9 @@ CURLcode Curl_ossl_certchain(struct Curl_easy *data, SSL *ssl)
|
||||||
|
|
||||||
X509_get0_signature(&psig, &sigalg, x);
|
X509_get0_signature(&psig, &sigalg, x);
|
||||||
if(sigalg) {
|
if(sigalg) {
|
||||||
i2a_ASN1_OBJECT(mem, sigalg->algorithm);
|
const ASN1_OBJECT *sigalgoid = NULL;
|
||||||
|
X509_ALGOR_get0(&sigalgoid, NULL, NULL, sigalg);
|
||||||
|
i2a_ASN1_OBJECT(mem, sigalgoid);
|
||||||
push_certinfo("Signature Algorithm", i);
|
push_certinfo("Signature Algorithm", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user