aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_suites.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-04-19 23:33:17 +0000
committerlloyd <[email protected]>2010-04-19 23:33:17 +0000
commitcc691a3c2468f7870af3b5d778061806ef3ea557 (patch)
tree69f563f14ac8bf054445b5585186b449ff368330 /src/ssl/tls_suites.cpp
parent358a943a1772bb491983a3f227bf03dc861dbf76 (diff)
Expose function breaking down ciphersuite to algo values
Diffstat (limited to 'src/ssl/tls_suites.cpp')
-rw-r--r--src/ssl/tls_suites.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ssl/tls_suites.cpp b/src/ssl/tls_suites.cpp
index f48994b3c..5abd8accd 100644
--- a/src/ssl/tls_suites.cpp
+++ b/src/ssl/tls_suites.cpp
@@ -10,12 +10,10 @@
namespace Botan {
-namespace {
-
/**
* Convert an SSL/TLS ciphersuite to algorithm fields
*/
-TLS_Ciphersuite_Algos lookup_ciphersuite(u16bit suite)
+TLS_Ciphersuite_Algos TLS_Suites::lookup_ciphersuite(u16bit suite)
{
if(suite == TLS_RSA_WITH_RC4_128_MD5)
return TLS_Ciphersuite_Algos(TLS_ALGO_SIGNER_RSA |
@@ -212,6 +210,8 @@ TLS_Ciphersuite_Algos lookup_ciphersuite(u16bit suite)
return TLS_Ciphersuite_Algos(0);
}
+namespace {
+
std::pair<std::string, u32bit> cipher_code_to_name(TLS_Ciphersuite_Algos algo)
{
if((algo & TLS_ALGO_CIPHER_MASK) == TLS_ALGO_CIPHER_RC4_128)