From: tb Date: Mon, 27 May 2024 16:12:55 +0000 (+0000) Subject: openssl x509: rename pub_key to dsa_pub_key X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4692ea2bd2d8a58f25477a2d0bf9582c73bd1ee0;p=openbsd openssl x509: rename pub_key to dsa_pub_key suggested by jsing --- diff --git a/usr.bin/openssl/x509.c b/usr.bin/openssl/x509.c index 5f27b3ae6fe..1ebdfb005f8 100644 --- a/usr.bin/openssl/x509.c +++ b/usr.bin/openssl/x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.c,v 1.38 2024/05/27 16:11:16 tb Exp $ */ +/* $OpenBSD: x509.c,v 1.39 2024/05/27 16:12:55 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1159,11 +1159,11 @@ x509_main(int argc, char **argv) BN_print(STDout, n); } else if (EVP_PKEY_id(pubkey) == EVP_PKEY_DSA) { DSA *dsa = EVP_PKEY_get0_DSA(pubkey); - const BIGNUM *pub_key = NULL; + const BIGNUM *dsa_pub_key = NULL; - DSA_get0_key(dsa, &pub_key, NULL); + DSA_get0_key(dsa, &dsa_pub_key, NULL); - BN_print(STDout, pub_key); + BN_print(STDout, dsa_pub_key); } else BIO_printf(STDout, "Wrong Algorithm type");