aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-11-28 20:24:09 +0000
committerlloyd <[email protected]>2013-11-28 20:24:09 +0000
commit687ab309c45fc56b59cfdbd1c32d8b2242f01ad7 (patch)
tree886ac2458975e2380cf4baa9c897ac904842163a
parent23c40e83257885f4a3e6ddcc8e9e53e3d4882ee0 (diff)
Print OCSP and CRL locations in X509_Certificate::to_string
-rw-r--r--src/cert/x509/x509cert.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cert/x509/x509cert.cpp b/src/cert/x509/x509cert.cpp
index c738f9dc2..2362cd0cf 100644
--- a/src/cert/x509/x509cert.cpp
+++ b/src/cert/x509/x509cert.cpp
@@ -521,6 +521,11 @@ std::string X509_Certificate::to_string() const
out << " " << ex_constraints[i] << "\n";
}
+ if(ocsp_responder() != "")
+ out << "OCSP responder " << ocsp_responder() << "\n";
+ if(crl_distribution_point() != "")
+ out << "CRL " << crl_distribution_point() << "\n";
+
out << "Signature algorithm: " <<
OIDS::lookup(this->signature_algorithm().oid) << "\n";