summaryrefslogtreecommitdiffstats
path: root/test/testlib
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-12-28 15:01:57 +0000
committerMatt Caswell <matt@openssl.org>2016-12-29 13:32:54 +0000
commit397f4f78760480f982adaeed98ccb10bda4d3fbb (patch)
treee585c2b778e89cf433a41633e04a825e5130c5e4 /test/testlib
parent3b58c54f26b826abd55a513494ef892e7ad069ad (diff)
Add a test to check the EC point formats extension appears when we expect
The previous commit fixed a bug where the EC point formats extensions did not appear in the ServerHello. This should have been caught by 70-test_sslmessages but that test never tries an EC ciphersuite. This updates the test to do that. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2153)
Diffstat (limited to 'test/testlib')
-rw-r--r--test/testlib/checkhandshake.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/testlib/checkhandshake.pm b/test/testlib/checkhandshake.pm
index eb34fff622..9529b949bd 100644
--- a/test/testlib/checkhandshake.pm
+++ b/test/testlib/checkhandshake.pm
@@ -23,8 +23,9 @@ use constant {
CLIENT_AUTH_HANDSHAKE => 8,
RENEG_HANDSHAKE => 16,
NPN_HANDSHAKE => 32,
+ EC_HANDSHAKE => 64,
- ALL_HANDSHAKES => 63
+ ALL_HANDSHAKES => 127
};
use constant {
@@ -43,6 +44,8 @@ use constant {
NPN_CLI_EXTENSION => 0x00000800,
NPN_SRV_EXTENSION => 0x00001000,
SRP_CLI_EXTENSION => 0x00002000,
+ #Client side for ec point formats is a default extension
+ EC_POINT_FORMAT_SRV_EXTENSION => 0x00004000,
};
our @handmessages = ();