aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_suites.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-30 20:20:42 +0000
committerlloyd <[email protected]>2011-12-30 20:20:42 +0000
commitdeb92d7f6d43206c04f332625d6b1e1a2abc444d (patch)
tree06c331d7f51071750091e013c6f853c015eacd18 /src/tls/tls_suites.cpp
parent766f5eeb5c99936e7ddcf3e4c82095f087b6e928 (diff)
Add a function for getting the version number of an active connection.
Add a new callback that is called with the session info when a handshake completes. Currently only called on the server side as the client doesn't have session resumption yet. Rename CipherSuite to TLS_Cipher_Suite.
Diffstat (limited to 'src/tls/tls_suites.cpp')
-rw-r--r--src/tls/tls_suites.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tls/tls_suites.cpp b/src/tls/tls_suites.cpp
index 8dbd74e4e..aff15d68f 100644
--- a/src/tls/tls_suites.cpp
+++ b/src/tls/tls_suites.cpp
@@ -13,7 +13,7 @@ namespace Botan {
/**
* Convert an SSL/TLS ciphersuite to algorithm fields
*/
-TLS_Ciphersuite_Algos CipherSuite::lookup_ciphersuite(u16bit suite)
+TLS_Ciphersuite_Algos TLS_Cipher_Suite::lookup_ciphersuite(u16bit suite)
{
if(suite == TLS_RSA_WITH_RC4_128_MD5)
return TLS_Ciphersuite_Algos(TLS_ALGO_SIGNER_RSA |
@@ -274,7 +274,7 @@ std::pair<std::string, size_t> cipher_code_to_name(TLS_Ciphersuite_Algos algo)
return std::make_pair("SEED", 16);
throw TLS_Exception(INTERNAL_ERROR,
- "CipherSuite: Unknown cipher type " + to_string(algo));
+ "TLS_Cipher_Suite: Unknown cipher type " + to_string(algo));
}
std::string mac_code_to_name(TLS_Ciphersuite_Algos algo)
@@ -292,15 +292,15 @@ std::string mac_code_to_name(TLS_Ciphersuite_Algos algo)
return "SHA-384";
throw TLS_Exception(INTERNAL_ERROR,
- "CipherSuite: Unknown MAC type " + to_string(algo));
+ "TLS_Cipher_Suite: Unknown MAC type " + to_string(algo));
}
}
/**
-* CipherSuite Constructor
+* TLS_Cipher_Suite Constructor
*/
-CipherSuite::CipherSuite(u16bit suite_code)
+TLS_Cipher_Suite::TLS_Cipher_Suite(u16bit suite_code)
{
if(suite_code == 0)
return;