From: Nikos Mavrogiannopoulos Date: Thu, 15 Jun 2017 07:06:49 +0000 (+0200) Subject: tests: improved duplicate extension test X-Git-Tag: gnutls_3_6_0~436 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aff5f32fe0d610261dfacb3cdefa779569a84745;p=thirdparty%2Fgnutls.git 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 --- 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) {