aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_policy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tls/tls_policy.h')
-rw-r--r--src/lib/tls/tls_policy.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/tls/tls_policy.h b/src/lib/tls/tls_policy.h
index 519139fff..f992949fe 100644
--- a/src/lib/tls/tls_policy.h
+++ b/src/lib/tls/tls_policy.h
@@ -284,6 +284,12 @@ class BOTAN_DLL Policy
*/
virtual void print(std::ostream& o) const;
+ /**
+ * Convert this policy to a printable format.
+ * Same as calling `print` on a ostringstream and reading o.str()
+ */
+ std::string to_string() const;
+
virtual ~Policy() {}
};