diff options
author | Jack Lloyd <[email protected]> | 2019-04-11 21:25:24 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-04-13 09:37:57 -0400 |
commit | ec3bc081379427e2eb72566015c4c2fd0d6d2da4 (patch) | |
tree | dc35ecd43f1ae1bab9b1064c775b1c08dcd0eeff /src/lib/x509/x509_dn.cpp | |
parent | fb171db892e27081afcdd9c7ad450b44cd53feca (diff) |
Add a wrapper class that wraps macOS or Linux certificate stores.
Diffstat (limited to 'src/lib/x509/x509_dn.cpp')
-rw-r--r-- | src/lib/x509/x509_dn.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/x509/x509_dn.cpp b/src/lib/x509/x509_dn.cpp index 2285e561e..106190011 100644 --- a/src/lib/x509/x509_dn.cpp +++ b/src/lib/x509/x509_dn.cpp @@ -12,6 +12,7 @@ #include <botan/internal/stl_util.h> #include <botan/oids.h> #include <ostream> +#include <sstream> #include <cctype> namespace Botan { @@ -284,6 +285,13 @@ std::string to_short_form(const OID& oid) } +std::string X509_DN::to_string() const + { + std::ostringstream out; + out << *this; + return out.str(); + } + std::ostream& operator<<(std::ostream& out, const X509_DN& dn) { auto info = dn.dn_info(); |