summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libssl/Makefile5
-rw-r--r--src/regress/lib/libssl/tlsext/tlsexttest.c12
2 files changed, 9 insertions, 8 deletions
diff --git a/src/regress/lib/libssl/Makefile b/src/regress/lib/libssl/Makefile
index ccff27278b..c4133e32e5 100644
--- a/src/regress/lib/libssl/Makefile
+++ b/src/regress/lib/libssl/Makefile
@@ -1,16 +1,17 @@
1# $OpenBSD: Makefile,v 1.30 2018/11/09 19:31:50 tb Exp $ 1# $OpenBSD: Makefile,v 1.31 2018/11/10 08:10:31 beck Exp $
2 2
3SUBDIR += asn1 3SUBDIR += asn1
4SUBDIR += bytestring 4SUBDIR += bytestring
5SUBDIR += ciphers 5SUBDIR += ciphers
6SUBDIR += client 6SUBDIR += client
7SUBDIR += interop
8SUBDIR += pqueue 7SUBDIR += pqueue
9SUBDIR += server 8SUBDIR += server
10SUBDIR += ssl 9SUBDIR += ssl
11SUBDIR += tlsext 10SUBDIR += tlsext
12SUBDIR += key_schedule 11SUBDIR += key_schedule
13SUBDIR += unit 12SUBDIR += unit
13# Things that take a long time shoud go below here.
14SUBDIR += interop
14 15
15install: 16install:
16 17
diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c
index b50736d802..4953c7bf24 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.19 2018/11/06 01:19:35 jsing Exp $ */ 1/* $OpenBSD: tlsexttest.c,v 1.20 2018/11/10 08:10:31 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>
@@ -1583,27 +1583,27 @@ test_tlsext_sigalgs_clienthello(void)
1583 goto done; 1583 goto done;
1584 } 1584 }
1585 1585
1586 if (ssl->cert->pkeys[SSL_PKEY_RSA_SIGN].digest != EVP_sha512()) { 1586 if (ssl->cert->pkeys[SSL_PKEY_RSA_SIGN].sigalg->md() != EVP_sha512()) {
1587 fprintf(stderr, "FAIL: RSA sign digest mismatch\n"); 1587 fprintf(stderr, "FAIL: RSA sign digest mismatch\n");
1588 failure = 1; 1588 failure = 1;
1589 goto done; 1589 goto done;
1590 } 1590 }
1591 if (ssl->cert->pkeys[SSL_PKEY_RSA_ENC].digest != EVP_sha512()) { 1591 if (ssl->cert->pkeys[SSL_PKEY_RSA_ENC].sigalg->md() != EVP_sha512()) {
1592 fprintf(stderr, "FAIL: RSA enc digest mismatch\n"); 1592 fprintf(stderr, "FAIL: RSA enc digest mismatch\n");
1593 failure = 1; 1593 failure = 1;
1594 goto done; 1594 goto done;
1595 } 1595 }
1596 if (ssl->cert->pkeys[SSL_PKEY_ECC].digest != EVP_sha512()) { 1596 if (ssl->cert->pkeys[SSL_PKEY_ECC].sigalg->md() != EVP_sha512()) {
1597 fprintf(stderr, "FAIL: ECC digest mismatch\n"); 1597 fprintf(stderr, "FAIL: ECC digest mismatch\n");
1598 failure = 1; 1598 failure = 1;
1599 goto done; 1599 goto done;
1600 } 1600 }
1601 if (ssl->cert->pkeys[SSL_PKEY_GOST01].digest != EVP_streebog512()) { 1601 if (ssl->cert->pkeys[SSL_PKEY_GOST01].sigalg->md() != EVP_streebog512()) {
1602 fprintf(stderr, "FAIL: GOST01 digest mismatch\n"); 1602 fprintf(stderr, "FAIL: GOST01 digest mismatch\n");
1603 failure = 1; 1603 failure = 1;
1604 goto done; 1604 goto done;
1605 } 1605 }
1606 1606
1607 done: 1607 done:
1608 CBB_cleanup(&cbb); 1608 CBB_cleanup(&cbb);
1609 SSL_CTX_free(ssl_ctx); 1609 SSL_CTX_free(ssl_ctx);