summaryrefslogtreecommitdiffstats
path: root/util/TLSProxy
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-11-07 14:26:41 +0000
committerMatt Caswell <matt@openssl.org>2016-11-07 15:52:33 +0000
commit8e47ee18c8f7e59575effdd8dfcfbfff1a365ede (patch)
treeb67c707c06a9f856a3cc0621ac74c5d46f4765c2 /util/TLSProxy
parent3c9539d294b931bc430a01510753e10b7a201f11 (diff)
Add a test for the wrong version number in a record
Prior to TLS1.3 we check that the received record version number is correct. In TLS1.3 we need to ignore the record version number. This adds a test to make sure we do it correctly. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'util/TLSProxy')
-rw-r--r--util/TLSProxy/Record.pm13
1 files changed, 8 insertions, 5 deletions
diff --git a/util/TLSProxy/Record.pm b/util/TLSProxy/Record.pm
index 106fa7414a..a4e7adcf82 100644
--- a/util/TLSProxy/Record.pm
+++ b/util/TLSProxy/Record.pm
@@ -278,11 +278,6 @@ sub content_type
my $self = shift;
return $self->{content_type};
}
-sub version
-{
- my $self = shift;
- return $self->{version};
-}
sub sslv2
{
my $self = shift;
@@ -332,4 +327,12 @@ sub len
}
return $self->{len};
}
+sub version
+{
+ my $self = shift;
+ if (@_) {
+ $self->{version} = shift;
+ }
+ return $self->{version};
+}
1;