[icinga-checkins] icinga.org: icinga2/master: Fix build with OpenSSL 1.1

git at icinga.org git at icinga.org
Mon Aug 1 09:55:00 CEST 2016


Module: icinga2
Branch: master
Commit: d0183edc51ae9c69c72b29070c6a95711aa38e30
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=d0183edc51ae9c69c72b29070c6a95711aa38e30

Author: Markus Frosch <lazyfrosch at icinga.org>
Date:   Mon Aug  1 09:47:58 2016 +0200

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

---

 lib/cli/pkiutility.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/cli/pkiutility.cpp b/lib/cli/pkiutility.cpp
index ea893e2..834cdcc 100644
--- a/lib/cli/pkiutility.cpp
+++ b/lib/cli/pkiutility.cpp
@@ -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());



More information about the icinga-checkins mailing list