diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-06-15 09:06:49 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-06-15 09:08:32 +0200 |
commit | aff5f32fe0d610261dfacb3cdefa779569a84745 (patch) | |
tree | ef305e30f71685970b92e3adc7ddada790297ad5 | |
parent | 6395f8f68c40ae3e96456ef55d199d371dc9703f (diff) | |
download | gnutls-aff5f32fe0d610261dfacb3cdefa779569a84745.tar.gz |
tests: improved duplicate extension test
Instead of sending two duplicate extensions of which one is invalid,
send two valid ones instead. That way, we avoid the possibility of false
positives due to the validation code of the extension contents.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | tests/duplicate-extensions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/duplicate-extensions.c b/tests/duplicate-extensions.c index e9ec304813..c6aa8cbdf1 100644 --- a/tests/duplicate-extensions.c +++ b/tests/duplicate-extensions.c @@ -82,10 +82,10 @@ static unsigned char tls1_hello[] = "\xc0\x34\x01\x00\x00\x5d\x00\x17\x00\x00\x00\x16\x00\x00\x00\x05" "\x00\x05\x01\x00\x00\x00\x00\x00\x00\x00\x13\x00\x11\x00\x00\x0e" "\x77\x77\x77\x2e\x61\x6d\x61\x7a\x6f\x6e\x2e\x63\x6f\x6d\xff\x01" - "\x00\x01\x00\x00\x23\x00\x00\x00\x0a\x00\x08\x00\x06\x00\x17\x00" - "\x18\x00\x19\x00\x0a\x00\x02\x01\x00\x00\x0d\x00\x16\x00\x14\x04" - "\x01\x04\x03\x05\x01\x05\x03\x06\x01\x06\x03\x03\x01\x03\x03\x02" - "\x01\x02\x03"; + "\x00\x01\x00\x00\x23\x00\x00\x00\x0b\x00\x02\x01\x00\x00\x0b\x00" + "\x02\x01\x00\x00\x0d\x00\x16\x00\x14\x04\x01\x04\x03\x05\x01\x05" + "\x03\x06\x01\x06\x03\x03\x01\x03\x03\x02\x01\x02\x03\x00\x0a\x00" + "\x02\x00\x17"; static void client(int sd) { |