diff options
author | Jack Lloyd <[email protected]> | 2016-11-26 20:22:02 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-26 20:22:02 -0500 |
commit | 5c41db5f0ca5c755215663102569f3ab38dccc54 (patch) | |
tree | 7a7e5b59e7ed77a32a8af525db30f5576e17a4be /src/lib/tls/tls_policy.cpp | |
parent | db6cc169d2a62b6ba9ccf881f9eb2e7c5e28692a (diff) |
Add TLS::Policy::to_string
Diffstat (limited to 'src/lib/tls/tls_policy.cpp')
-rw-r--r-- | src/lib/tls/tls_policy.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/tls/tls_policy.cpp b/src/lib/tls/tls_policy.cpp index 4bd071d0b..e9caa8bb3 100644 --- a/src/lib/tls/tls_policy.cpp +++ b/src/lib/tls/tls_policy.cpp @@ -474,6 +474,13 @@ void Policy::print(std::ostream& o) const o << "minimum_signature_strength = " << minimum_signature_strength() << '\n'; } +std::string Policy::to_string() const + { + std::ostringstream oss; + this->print(oss); + return oss.str(); + } + std::vector<std::string> Strict_Policy::allowed_ciphers() const { return { "ChaCha20Poly1305", "AES-256/GCM", "AES-128/GCM" }; |