diff options
author | lloyd <[email protected]> | 2012-06-05 15:48:30 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-06-05 15:48:30 +0000 |
commit | b90c6b3654ff1bff53632f4083ae440d8bd9fd99 (patch) | |
tree | 591929756449e8ce39840b8fa7d631f8d66412b5 /src/tls/s_kex.cpp | |
parent | eeb84f774dd8dab7b16ff88aeb5911dafd62c28f (diff) |
Add assert_done checks here to help avoid interesting substitution
attacks and in general detect invalid messages.
Diffstat (limited to 'src/tls/s_kex.cpp')
-rw-r--r-- | src/tls/s_kex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tls/s_kex.cpp b/src/tls/s_kex.cpp index 48901d311..7fc7daf2d 100644 --- a/src/tls/s_kex.cpp +++ b/src/tls/s_kex.cpp @@ -224,6 +224,8 @@ Server_Key_Exchange::Server_Key_Exchange(const std::vector<byte>& buf, m_signature = reader.get_range<byte>(2, 0, 65535); } + + reader.assert_done(); } Server_Key_Exchange::~Server_Key_Exchange() |