diff options
Diffstat (limited to 'src/regress/lib/libssl/tlsext/tlsexttest.c')
-rw-r--r-- | src/regress/lib/libssl/tlsext/tlsexttest.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c index eb8cef7ef5..3d03c2c0d3 100644 --- a/src/regress/lib/libssl/tlsext/tlsexttest.c +++ b/src/regress/lib/libssl/tlsext/tlsexttest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tlsexttest.c,v 1.35 2020/04/17 17:24:03 jsing Exp $ */ | 1 | /* $OpenBSD: tlsexttest.c,v 1.36 2020/05/11 18:20:01 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> | 4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> |
@@ -1407,6 +1407,7 @@ test_tlsext_ri_server(void) | |||
1407 | if ((ssl = SSL_new(ssl_ctx)) == NULL) | 1407 | if ((ssl = SSL_new(ssl_ctx)) == NULL) |
1408 | errx(1, "failed to create SSL"); | 1408 | errx(1, "failed to create SSL"); |
1409 | 1409 | ||
1410 | ssl->version = TLS1_2_VERSION; | ||
1410 | if (tlsext_ri_server_needs(ssl)) { | 1411 | if (tlsext_ri_server_needs(ssl)) { |
1411 | FAIL("server should not need RI\n"); | 1412 | FAIL("server should not need RI\n"); |
1412 | goto err; | 1413 | goto err; |
@@ -2812,12 +2813,14 @@ test_tlsext_clienthello_build(void) | |||
2812 | return (failure); | 2813 | return (failure); |
2813 | } | 2814 | } |
2814 | 2815 | ||
2815 | unsigned char tlsext_serverhello_default[] = {}; | 2816 | unsigned char tlsext_serverhello_default[] = { |
2817 | 0x00, 0x06, 0x00, 0x2b, 0x00, 0x02, 0x03, 0x04, | ||
2818 | }; | ||
2816 | 2819 | ||
2817 | unsigned char tlsext_serverhello_enabled[] = { | 2820 | unsigned char tlsext_serverhello_enabled[] = { |
2818 | 0x00, 0x13, 0xff, 0x01, 0x00, 0x01, 0x00, 0x00, | 2821 | 0x00, 0x10, 0x00, 0x2b, 0x00, 0x02, 0x03, 0x04, |
2819 | 0x05, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x02, 0x01, | 2822 | 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, 0x23, |
2820 | 0x00, 0x00, 0x23, 0x00, 0x00, | 2823 | 0x00, 0x00, |
2821 | }; | 2824 | }; |
2822 | 2825 | ||
2823 | static int | 2826 | static int |