curl.c: Don't use OpenSSL 1.1 only serialNumber fetcher

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-08-05 22:03:42 +01:00
parent 03c6ae3812
commit ddfa76b1fc
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ fetch_curl_report_certs_upstream(struct curl_fetch_info *f)
X509_get_signature_type(certs[depth].cert);
/* serial number */
asn1_num = X509_get0_serialNumber(certs[depth].cert);
asn1_num = X509_get_serialNumber(certs[depth].cert);
if (asn1_num != NULL) {
bignum = ASN1_INTEGER_to_BN(asn1_num, NULL);
if (bignum != NULL) {