diff options
author | Matt Caswell <matt@openssl.org> | 2016-11-02 09:41:37 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-11-02 23:22:48 +0000 |
commit | 1f3e70a450364e3152973380ea4d3bb6694f3980 (patch) | |
tree | 546df179092fa5065fde3f9432624d1d00b1706f /util/TLSProxy | |
parent | 436a2a0179416d2cc22b678b63e50c2638384d5f (diff) | |
download | openssl-1f3e70a450364e3152973380ea4d3bb6694f3980.tar.gz |
Add a test for unrecognised record types
We should fail if we receive an unrecognised record type
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'util/TLSProxy')
-rw-r--r-- | util/TLSProxy/Record.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/TLSProxy/Record.pm b/util/TLSProxy/Record.pm index 93a3a4bd5e..106fa7414a 100644 --- a/util/TLSProxy/Record.pm +++ b/util/TLSProxy/Record.pm @@ -22,14 +22,16 @@ use constant { RT_APPLICATION_DATA => 23, RT_HANDSHAKE => 22, RT_ALERT => 21, - RT_CCS => 20 + RT_CCS => 20, + RT_UNKNOWN => 100 }; my %record_type = ( RT_APPLICATION_DATA, "APPLICATION DATA", RT_HANDSHAKE, "HANDSHAKE", RT_ALERT, "ALERT", - RT_CCS, "CCS" + RT_CCS, "CCS", + RT_UNKNOWN, "UNKNOWN" ); use constant { |