From 72c7c5fb43b3e1245a15a9172c199e07fb003c30 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 12 Jan 2022 08:59:56 +0000 Subject: Rework dsatest to use accessors and link statically for now --- src/regress/lib/libcrypto/dsa/dsatest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/regress/lib/libcrypto/dsa/dsatest.c') 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 @@ -/* $OpenBSD: dsatest.c,v 1.6 2021/11/18 15:11:17 tb Exp $ */ +/* $OpenBSD: dsatest.c,v 1.7 2022/01/12 08:59:56 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -163,21 +163,21 @@ main(int argc, char **argv) goto end; } - i = BN_bn2bin(dsa->q, buf); + i = BN_bn2bin(DSA_get0_q(dsa), buf); j = sizeof(out_q); if ((i != j) || (memcmp(buf, out_q, i) != 0)) { BIO_printf(bio_err, "q value is wrong\n"); goto end; } - i = BN_bn2bin(dsa->p, buf); + i = BN_bn2bin(DSA_get0_p(dsa), buf); j = sizeof(out_p); if ((i != j) || (memcmp(buf, out_p, i) != 0)) { BIO_printf(bio_err, "p value is wrong\n"); goto end; } - i = BN_bn2bin(dsa->g, buf); + i = BN_bn2bin(DSA_get0_g(dsa), buf); j = sizeof(out_g); if ((i != j) || (memcmp(buf, out_g, i) != 0)) { BIO_printf(bio_err, "g value is wrong\n"); -- cgit v1.2.3-55-g6feb