aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/x509info.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-03 04:43:18 +0000
committerlloyd <[email protected]>2006-06-03 04:43:18 +0000
commite8ea3a8ad7f1b64e6dc4386fa9190f4b635a1466 (patch)
treea4e22fa6d1faac9eed74df03b451333468715621 /doc/examples/x509info.cpp
parent99043d201905328e9297e9144673daaeafe295c8 (diff)
Change X509_Certificate::subject_info and issuer_info to return
a vector of strings instead of a single string that combines the relevent fields. Change how X509_Certificate stores information. Renamed self_signed() to is_self_signed()
Diffstat (limited to 'doc/examples/x509info.cpp')
-rw-r--r--doc/examples/x509info.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/examples/x509info.cpp b/doc/examples/x509info.cpp
index 87ffcc30f..343628922 100644
--- a/doc/examples/x509info.cpp
+++ b/doc/examples/x509info.cpp
@@ -26,20 +26,18 @@ std::string to_hex(const SecureVector<byte>& bin)
return "(none)";
}
-void do_print(const std::string& what, const std::string& vals)
- // const std::vector<std::string>& vals)
+void do_print(const std::string& what,
+ const std::vector<std::string>& vals)
{
if(vals.size() == 0)
return;
std::cout << " " << what << ": ";
- std::cout << vals;
- //std::copy(vals.begin(), vals.end(),
- // std::ostream_iterator<std::string>(std::cout, " "));
+ std::copy(vals.begin(), vals.end(),
+ std::ostream_iterator<std::string>(std::cout, " "));
std::cout << "\n";
}
-
void do_subject(const X509_Certificate& cert, const std::string& what)
{
do_print(what, cert.subject_info(what));