Convert openssl(1) dsa.c to opaque DSA
authortb <tb@openbsd.org>
Fri, 14 Jan 2022 09:23:42 +0000 (09:23 +0000)
committertb <tb@openbsd.org>
Fri, 14 Jan 2022 09:23:42 +0000 (09:23 +0000)
ok inoguchi jsing

usr.bin/openssl/dsa.c

index 1b5e302..df45cd6 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsa.c,v 1.15 2019/07/14 03:30:45 guenther Exp $ */
+/* $OpenBSD: dsa.c,v 1.16 2022/01/14 09:23:42 tb Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -315,7 +315,7 @@ dsa_main(int argc, char **argv)
        }
        if (dsa_config.modulus) {
                fprintf(stdout, "Public Key=");
-               BN_print(out, dsa->pub_key);
+               BN_print(out, DSA_get0_pub_key(dsa));
                fprintf(stdout, "\n");
        }
        if (dsa_config.noout)