summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libcrypto/dsa/Makefile6
-rw-r--r--src/regress/lib/libcrypto/dsa/dsatest.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/regress/lib/libcrypto/dsa/Makefile b/src/regress/lib/libcrypto/dsa/Makefile
index 0574c6e282..489c2225d2 100644
--- a/src/regress/lib/libcrypto/dsa/Makefile
+++ b/src/regress/lib/libcrypto/dsa/Makefile
@@ -1,10 +1,10 @@
1# $OpenBSD: Makefile,v 1.3 2014/07/08 15:53:52 jsing Exp $ 1# $OpenBSD: Makefile,v 1.4 2022/01/12 08:59:56 tb Exp $
2 2
3PROG= dsatest 3PROG= dsatest
4LDADD= -lcrypto 4LDADD= ${CRYPTO_INT} # XXX link dynamically after bump
5DPADD= ${LIBCRYPTO} 5DPADD= ${LIBCRYPTO}
6WARNINGS= Yes 6WARNINGS= Yes
7CFLAGS+= -DLIBRESSL_INTERNAL -Werror 7CFLAGS+= -DLIBRESSL_INTERNAL -DLIBRESSL_CRYPTO_INTERNAL -Werror
8 8
9REGRESS_TARGETS=regress-dsatest 9REGRESS_TARGETS=regress-dsatest
10 10
diff --git a/src/regress/lib/libcrypto/dsa/dsatest.c b/src/regress/lib/libcrypto/dsa/dsatest.c
index 004bd3c33e..e5b56c08d0 100644
--- a/src/regress/lib/libcrypto/dsa/dsatest.c
+++ b/src/regress/lib/libcrypto/dsa/dsatest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dsatest.c,v 1.6 2021/11/18 15:11:17 tb Exp $ */ 1/* $OpenBSD: dsatest.c,v 1.7 2022/01/12 08:59:56 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -163,21 +163,21 @@ main(int argc, char **argv)
163 goto end; 163 goto end;
164 } 164 }
165 165
166 i = BN_bn2bin(dsa->q, buf); 166 i = BN_bn2bin(DSA_get0_q(dsa), buf);
167 j = sizeof(out_q); 167 j = sizeof(out_q);
168 if ((i != j) || (memcmp(buf, out_q, i) != 0)) { 168 if ((i != j) || (memcmp(buf, out_q, i) != 0)) {
169 BIO_printf(bio_err, "q value is wrong\n"); 169 BIO_printf(bio_err, "q value is wrong\n");
170 goto end; 170 goto end;
171 } 171 }
172 172
173 i = BN_bn2bin(dsa->p, buf); 173 i = BN_bn2bin(DSA_get0_p(dsa), buf);
174 j = sizeof(out_p); 174 j = sizeof(out_p);
175 if ((i != j) || (memcmp(buf, out_p, i) != 0)) { 175 if ((i != j) || (memcmp(buf, out_p, i) != 0)) {
176 BIO_printf(bio_err, "p value is wrong\n"); 176 BIO_printf(bio_err, "p value is wrong\n");
177 goto end; 177 goto end;
178 } 178 }
179 179
180 i = BN_bn2bin(dsa->g, buf); 180 i = BN_bn2bin(DSA_get0_g(dsa), buf);
181 j = sizeof(out_g); 181 j = sizeof(out_g);
182 if ((i != j) || (memcmp(buf, out_g, i) != 0)) { 182 if ((i != j) || (memcmp(buf, out_g, i) != 0)) {
183 BIO_printf(bio_err, "g value is wrong\n"); 183 BIO_printf(bio_err, "g value is wrong\n");