Fix build with OpenSSL 1.1

error: cannot convert ‘const boost::shared_ptr<x509_st>’ to ‘X509* {aka
x509_st*}’ for argument ‘1’ to ‘ASN1_TIME* X509_get_notBefore(X509*)’

refs #12044
This commit is contained in:
Markus Frosch 2016-08-01 09:47:58 +02:00
parent 32b37f0db9
commit d0183edc51
1 changed files with 2 additions and 2 deletions

View File

@ -319,11 +319,11 @@ String PkiUtility::GetCertificateInformation(const boost::shared_ptr<X509>& cert
pre = "\n Valid From: ";
BIO_write(out, pre.CStr(), pre.GetLength());
ASN1_TIME_print(out, X509_get_notBefore(cert));
ASN1_TIME_print(out, X509_get_notBefore(cert.get()));
pre = "\n Valid Until: ";
BIO_write(out, pre.CStr(), pre.GetLength());
ASN1_TIME_print(out, X509_get_notAfter(cert));
ASN1_TIME_print(out, X509_get_notAfter(cert.get()));
pre = "\n Fingerprint: ";
BIO_write(out, pre.CStr(), pre.GetLength());