summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libssl/ssl_sigalgs.c7
-rw-r--r--src/regress/lib/libssl/client/clienttest.c24
-rw-r--r--src/regress/lib/libssl/tlsext/tlsexttest.c28
3 files changed, 22 insertions, 37 deletions
diff --git a/src/lib/libssl/ssl_sigalgs.c b/src/lib/libssl/ssl_sigalgs.c
index 76cb441b07..fdea93e1b0 100644
--- a/src/lib/libssl/ssl_sigalgs.c
+++ b/src/lib/libssl/ssl_sigalgs.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_sigalgs.c,v 1.15 2019/01/23 23:47:13 beck Exp $ */ 1/* $OpenBSD: ssl_sigalgs.c,v 1.16 2019/01/24 00:07:58 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2018-2019 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2018-2019 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -182,17 +182,12 @@ uint16_t tls12_sigalgs[] = {
182 SIGALG_RSA_PSS_RSAE_SHA512, 182 SIGALG_RSA_PSS_RSAE_SHA512,
183 SIGALG_RSA_PKCS1_SHA512, 183 SIGALG_RSA_PKCS1_SHA512,
184 SIGALG_ECDSA_SECP521R1_SHA512, 184 SIGALG_ECDSA_SECP521R1_SHA512,
185 SIGALG_GOSTR12_512_STREEBOG_512,
186 SIGALG_RSA_PSS_RSAE_SHA384, 185 SIGALG_RSA_PSS_RSAE_SHA384,
187 SIGALG_RSA_PKCS1_SHA384, 186 SIGALG_RSA_PKCS1_SHA384,
188 SIGALG_ECDSA_SECP384R1_SHA384, 187 SIGALG_ECDSA_SECP384R1_SHA384,
189 SIGALG_RSA_PSS_RSAE_SHA256, 188 SIGALG_RSA_PSS_RSAE_SHA256,
190 SIGALG_RSA_PKCS1_SHA256, 189 SIGALG_RSA_PKCS1_SHA256,
191 SIGALG_ECDSA_SECP256R1_SHA256, 190 SIGALG_ECDSA_SECP256R1_SHA256,
192 SIGALG_GOSTR12_256_STREEBOG_256,
193 SIGALG_GOSTR01_GOST94,
194 SIGALG_RSA_PKCS1_SHA224,
195 SIGALG_ECDSA_SECP224R1_SHA224,
196 SIGALG_RSA_PKCS1_SHA1, /* XXX */ 191 SIGALG_RSA_PKCS1_SHA1, /* XXX */
197 SIGALG_ECDSA_SHA1, /* XXX */ 192 SIGALG_ECDSA_SHA1, /* XXX */
198}; 193};
diff --git a/src/regress/lib/libssl/client/clienttest.c b/src/regress/lib/libssl/client/clienttest.c
index 25a8790e61..6b8ea7d8bd 100644
--- a/src/regress/lib/libssl/client/clienttest.c
+++ b/src/regress/lib/libssl/client/clienttest.c
@@ -141,12 +141,12 @@ static unsigned char cipher_list_tls12_chacha[] = {
141}; 141};
142 142
143static unsigned char client_hello_tls12[] = { 143static unsigned char client_hello_tls12[] = {
144 0x16, 0x03, 0x01, 0x00, 0xc5, 0x01, 0x00, 0x00, 144 0x16, 0x03, 0x01, 0x00, 0xbb, 0x01, 0x00, 0x00,
145 0xc1, 0x03, 0x03, 0xc9, 0xf9, 0x1f, 0x05, 0xaf, 145 0xb7, 0x03, 0x03, 0x2b, 0x39, 0xcc, 0x56, 0xfc,
146 0x61, 0xd7, 0xe7, 0x84, 0xd1, 0x1c, 0x6f, 0x79, 146 0xc4, 0x98, 0x8e, 0xfc, 0x22, 0x89, 0xc5, 0x1e,
147 0x32, 0x04, 0x8e, 0x5c, 0xe3, 0x18, 0x5a, 0x85, 147 0xa9, 0x88, 0xbd, 0x6e, 0xd8, 0xd1, 0xd6, 0xc1,
148 0xee, 0x44, 0xe1, 0xca, 0x32, 0xce, 0x07, 0xd3, 148 0xc3, 0x12, 0xe8, 0xe0, 0x1e, 0xfa, 0xa8, 0x21,
149 0xdb, 0x0f, 0x91, 0x00, 0x00, 0x5c, 0xc0, 0x30, 149 0xd9, 0x2d, 0x4d, 0x00, 0x00, 0x5c, 0xc0, 0x30,
150 0xc0, 0x2c, 0xc0, 0x28, 0xc0, 0x24, 0xc0, 0x14, 150 0xc0, 0x2c, 0xc0, 0x28, 0xc0, 0x24, 0xc0, 0x14,
151 0xc0, 0x0a, 0x00, 0x9f, 0x00, 0x6b, 0x00, 0x39, 151 0xc0, 0x0a, 0x00, 0x9f, 0x00, 0x6b, 0x00, 0x39,
152 0xcc, 0xa9, 0xcc, 0xa8, 0xcc, 0xaa, 0xff, 0x85, 152 0xcc, 0xa9, 0xcc, 0xa8, 0xcc, 0xaa, 0xff, 0x85,
@@ -158,15 +158,13 @@ static unsigned char client_hello_tls12[] = {
158 0x00, 0x3c, 0x00, 0x2f, 0x00, 0xba, 0x00, 0x41, 158 0x00, 0x3c, 0x00, 0x2f, 0x00, 0xba, 0x00, 0x41,
159 0xc0, 0x11, 0xc0, 0x07, 0x00, 0x05, 0x00, 0x04, 159 0xc0, 0x11, 0xc0, 0x07, 0x00, 0x05, 0x00, 0x04,
160 0xc0, 0x12, 0xc0, 0x08, 0x00, 0x16, 0x00, 0x0a, 160 0xc0, 0x12, 0xc0, 0x08, 0x00, 0x16, 0x00, 0x0a,
161 0x00, 0xff, 0x01, 0x00, 0x00, 0x3c, 0x00, 0x0b, 161 0x00, 0xff, 0x01, 0x00, 0x00, 0x32, 0x00, 0x0b,
162 0x00, 0x02, 0x01, 0x00, 0x00, 0x0a, 0x00, 0x08, 162 0x00, 0x02, 0x01, 0x00, 0x00, 0x0a, 0x00, 0x08,
163 0x00, 0x06, 0x00, 0x1d, 0x00, 0x17, 0x00, 0x18, 163 0x00, 0x06, 0x00, 0x1d, 0x00, 0x17, 0x00, 0x18,
164 0x00, 0x23, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x22, 164 0x00, 0x23, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x18,
165 0x00, 0x20, 0x08, 0x06, 0x06, 0x01, 0x06, 0x03, 165 0x00, 0x16, 0x08, 0x06, 0x06, 0x01, 0x06, 0x03,
166 0xef, 0xef, 0x08, 0x05, 0x05, 0x01, 0x05, 0x03, 166 0x08, 0x05, 0x05, 0x01, 0x05, 0x03, 0x08, 0x04,
167 0x08, 0x04, 0x04, 0x01, 0x04, 0x03, 0xee, 0xee, 167 0x04, 0x01, 0x04, 0x03, 0x02, 0x01, 0x02, 0x03,
168 0xed, 0xed, 0x03, 0x01, 0x03, 0x03, 0x02, 0x01,
169 0x02, 0x03,
170}; 168};
171 169
172struct client_hello_test { 170struct client_hello_test {
diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c
index 32895a49ad..05b18b5b05 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.25 2019/01/23 18:39:28 beck Exp $ */ 1/* $OpenBSD: tlsexttest.c,v 1.26 2019/01/24 00:07:58 beck 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>
@@ -1505,11 +1505,9 @@ test_tlsext_ri_server(void)
1505 */ 1505 */
1506 1506
1507static unsigned char tlsext_sigalgs_client[] = { 1507static unsigned char tlsext_sigalgs_client[] = {
1508 0x00, 0x20, 0x08, 0x06, 0x06, 0x01, 0x06, 0x03, 1508 0x00, 0x16, 0x08, 0x06, 0x06, 0x01, 0x06, 0x03,
1509 0xef, 0xef, 0x08, 0x05, 0x05, 0x01, 0x05, 0x03, 1509 0x08, 0x05, 0x05, 0x01, 0x05, 0x03, 0x08, 0x04,
1510 0x08, 0x04, 0x04, 0x01, 0x04, 0x03, 0xee, 0xee, 1510 0x04, 0x01, 0x04, 0x03, 0x02, 0x01, 0x02, 0x03,
1511 0xed, 0xed, 0x03, 0x01, 0x03, 0x03, 0x02, 0x01,
1512 0x02, 0x03,
1513}; 1511};
1514 1512
1515static int 1513static int
@@ -1599,11 +1597,6 @@ test_tlsext_sigalgs_client(void)
1599 failure = 1; 1597 failure = 1;
1600 goto done; 1598 goto done;
1601 } 1599 }
1602 if (ssl->cert->pkeys[SSL_PKEY_GOST01].sigalg->md() != EVP_streebog512()) {
1603 fprintf(stderr, "FAIL: GOST01 digest mismatch\n");
1604 failure = 1;
1605 goto done;
1606 }
1607 1600
1608 done: 1601 done:
1609 CBB_cleanup(&cbb); 1602 CBB_cleanup(&cbb);
@@ -2733,14 +2726,13 @@ test_tlsext_srtp_server(void)
2733#endif /* OPENSSL_NO_SRTP */ 2726#endif /* OPENSSL_NO_SRTP */
2734 2727
2735unsigned char tlsext_clienthello_default[] = { 2728unsigned char tlsext_clienthello_default[] = {
2736 0x00, 0x3c, 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 2729 0x00, 0x32, 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00,
2737 0x00, 0x0a, 0x00, 0x08, 0x00, 0x06, 0x00, 0x1d, 2730 0x00, 0x0a, 0x00, 0x08, 0x00, 0x06, 0x00, 0x1d,
2738 0x00, 0x17, 0x00, 0x18, 0x00, 0x23, 0x00, 0x00, 2731 0x00, 0x17, 0x00, 0x18, 0x00, 0x23, 0x00, 0x00,
2739 0x00, 0x0d, 0x00, 0x22, 0x00, 0x20, 0x08, 0x06, 2732 0x00, 0x0d, 0x00, 0x18, 0x00, 0x16, 0x08, 0x06,
2740 0x06, 0x01, 0x06, 0x03, 0xef, 0xef, 0x08, 0x05, 2733 0x06, 0x01, 0x06, 0x03, 0x08, 0x05, 0x05, 0x01,
2741 0x05, 0x01, 0x05, 0x03, 0x08, 0x04, 0x04, 0x01, 2734 0x05, 0x03, 0x08, 0x04, 0x04, 0x01, 0x04, 0x03,
2742 0x04, 0x03, 0xee, 0xee, 0xed, 0xed, 0x03, 0x01, 2735 0x02, 0x01, 0x02, 0x03,
2743 0x03, 0x03, 0x02, 0x01, 0x02, 0x03,
2744}; 2736};
2745 2737
2746unsigned char tlsext_clienthello_disabled[] = {}; 2738unsigned char tlsext_clienthello_disabled[] = {};
@@ -3097,7 +3089,7 @@ test_tlsext_keyshare_client(void)
3097 } 3089 }
3098 3090
3099 if (dlen != sizeof(tlsext_keyshare_client)) { 3091 if (dlen != sizeof(tlsext_keyshare_client)) {
3100 FAIL("got client sigalgs with length %zu, " 3092 FAIL("got client keyshare with length %zu, "
3101 "want length %zu\n", dlen, (size_t) sizeof(tlsext_keyshare_client)); 3093 "want length %zu\n", dlen, (size_t) sizeof(tlsext_keyshare_client));
3102 failure = 1; 3094 failure = 1;
3103 goto done; 3095 goto done;