aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/x509.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-11-11 05:56:30 -0500
committerJack Lloyd <[email protected]>2020-11-23 08:05:50 -0500
commit7954d50d2dfb2e7637b4803beb2f3adf66e69c8b (patch)
tree22080cf7cc45b0e10e1f01f70b106b42a6b6b91f /src/cli/x509.cpp
parent21582ee349b6dcccb1a14f149e8264993bd2f95e (diff)
Remove outer shared_ptr from Certificate in certstore interface
Since 2.4.0 X509_Certificate and X509_CRL have been internally shared so an other shared_ptr is just overhead and API complexity. Use std::optional for APIs where the object was optional.
Diffstat (limited to 'src/cli/x509.cpp')
-rw-r--r--src/cli/x509.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/x509.cpp b/src/cli/x509.cpp
index f5691b8d5..64e66366e 100644
--- a/src/cli/x509.cpp
+++ b/src/cli/x509.cpp
@@ -67,9 +67,9 @@ class Trust_Root_Info final : public Command
output() << "# " << dn << "\n";
if(flag_set("display"))
- output() << cert->to_string() << "\n";
+ output() << cert.to_string() << "\n";
- output() << cert->PEM_encode() << "\n";
+ output() << cert.PEM_encode() << "\n";
}
}