]> granicus.if.org Git - icinga2/commitdiff
Fix build with OpenSSL 1.1
authorMarkus Frosch <lazyfrosch@icinga.org>
Mon, 1 Aug 2016 07:47:58 +0000 (09:47 +0200)
committerMarkus Frosch <lazyfrosch@icinga.org>
Mon, 1 Aug 2016 07:54:51 +0000 (09:54 +0200)
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

index ea893e2aa98253da83b8b653523e152006bfd6cd..834cdcca121ea4bd837a93ef7a49948e2d67201d 100644 (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());