diff options
author | Jack Lloyd <[email protected]> | 2019-05-24 07:06:07 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-05-24 07:06:07 -0400 |
commit | d3706175d560ed8fbf3f4d3961cae910be1c77e0 (patch) | |
tree | a791958ae6eeefef5f10a72213a69553dabb707f /src/lib/tls/msg_client_kex.cpp | |
parent | 78dff743222447cd626c6a7a1d94c5ccd46de02b (diff) |
Add script for running TLS fuzzer
Fix a few minor issues found thereby
Diffstat (limited to 'src/lib/tls/msg_client_kex.cpp')
-rw-r--r-- | src/lib/tls/msg_client_kex.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/tls/msg_client_kex.cpp b/src/lib/tls/msg_client_kex.cpp index f55568c8e..9cb92447b 100644 --- a/src/lib/tls/msg_client_kex.cpp +++ b/src/lib/tls/msg_client_kex.cpp @@ -377,6 +377,10 @@ Client_Key_Exchange::Client_Key_Exchange(const std::vector<uint8_t>& contents, else m_pre_master = shared_secret; } + catch(Invalid_Argument& e) + { + throw TLS_Exception(Alert::ILLEGAL_PARAMETER, e.what()); + } catch(std::exception &) { /* |