diff options
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(); |