diff options
author | lloyd <[email protected]> | 2012-01-28 15:41:22 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-28 15:41:22 +0000 |
commit | e2e9105071f2d0a1360603f06c2acf68865ff072 (patch) | |
tree | 42f5bb0f689c2221b63ff20628e130552735ef9f /src/tls/tls_ciphersuite.h | |
parent | ee7f6c030776c17a47e9d4f12e59aad86366e0da (diff) |
Support getting ciphersuites by name as well as suite ID
Diffstat (limited to 'src/tls/tls_ciphersuite.h')
-rw-r--r-- | src/tls/tls_ciphersuite.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tls/tls_ciphersuite.h b/src/tls/tls_ciphersuite.h index f0acc1497..e5d8c967b 100644 --- a/src/tls/tls_ciphersuite.h +++ b/src/tls/tls_ciphersuite.h @@ -21,7 +21,9 @@ namespace TLS { class BOTAN_DLL Ciphersuite { public: - static Ciphersuite lookup_ciphersuite(u16bit suite); + static Ciphersuite by_id(u16bit suite); + + static Ciphersuite by_name(const std::string& name); /** * Formats the ciphersuite back to an RFC-style ciphersuite string |