diff options
author | lloyd <[email protected]> | 2011-12-29 02:41:53 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-29 02:41:53 +0000 |
commit | caa9dfa12cf69bb4ab88c399e61e856fedb24900 (patch) | |
tree | 2df3665d97199c4150515667e89272679210f069 /src/tls/c_kex.cpp | |
parent | 6432abc730f65328affb4f0ca7c0116b3ded353f (diff) |
Clean up the ordering of constructor args to the various message types
Diffstat (limited to 'src/tls/c_kex.cpp')
-rw-r--r-- | src/tls/c_kex.cpp | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/src/tls/c_kex.cpp b/src/tls/c_kex.cpp index ced31f870..341ae1e14 100644 --- a/src/tls/c_kex.cpp +++ b/src/tls/c_kex.cpp @@ -16,12 +16,12 @@ namespace Botan { -/** +/* * Create a new Client Key Exchange message */ -Client_Key_Exchange::Client_Key_Exchange(RandomNumberGenerator& rng, - Record_Writer& writer, +Client_Key_Exchange::Client_Key_Exchange(Record_Writer& writer, TLS_Handshake_Hash& hash, + RandomNumberGenerator& rng, const Public_Key* pub_key, Version_Code using_version, Version_Code pref_version) @@ -57,7 +57,7 @@ Client_Key_Exchange::Client_Key_Exchange(RandomNumberGenerator& rng, send(writer, hash); } -/** +/* * Read a Client Key Exchange message */ Client_Key_Exchange::Client_Key_Exchange(const MemoryRegion<byte>& contents, @@ -72,7 +72,7 @@ Client_Key_Exchange::Client_Key_Exchange(const MemoryRegion<byte>& contents, deserialize(contents); } -/** +/* * Serialize a Client Key Exchange message */ MemoryVector<byte> Client_Key_Exchange::serialize() const @@ -87,7 +87,7 @@ MemoryVector<byte> Client_Key_Exchange::serialize() const return key_material; } -/** +/* * Deserialize a Client Key Exchange message */ void Client_Key_Exchange::deserialize(const MemoryRegion<byte>& buf) @@ -101,7 +101,7 @@ void Client_Key_Exchange::deserialize(const MemoryRegion<byte>& buf) key_material = buf; } -/** +/* * Return the pre_master_secret */ SecureVector<byte> @@ -154,12 +154,4 @@ Client_Key_Exchange::pre_master_secret(RandomNumberGenerator& rng, throw Invalid_Argument("Client_Key_Exchange: Bad key for decrypt"); } -/** -* Return the pre_master_secret -*/ -SecureVector<byte> Client_Key_Exchange::pre_master_secret() const - { - return pre_master; - } - } |