mirror of https://github.com/Icinga/icinga2.git
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:
parent
32b37f0db9
commit
d0183edc51
|
@ -319,11 +319,11 @@ String PkiUtility::GetCertificateInformation(const boost::shared_ptr<X509>& cert
|
||||||
|
|
||||||
pre = "\n Valid From: ";
|
pre = "\n Valid From: ";
|
||||||
BIO_write(out, pre.CStr(), pre.GetLength());
|
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: ";
|
pre = "\n Valid Until: ";
|
||||||
BIO_write(out, pre.CStr(), pre.GetLength());
|
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: ";
|
pre = "\n Fingerprint: ";
|
||||||
BIO_write(out, pre.CStr(), pre.GetLength());
|
BIO_write(out, pre.CStr(), pre.GetLength());
|
||||||
|
|
Loading…
Reference in New Issue