From 2de05b956d4213dfe52a77fa8d79b76eeeb2ddf7 Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 14 Jan 2022 09:26:41 +0000 Subject: [PATCH] Convert openssl(1) rsa.c for opaque RSA ok inoguchi jsing --- usr.bin/openssl/rsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/openssl/rsa.c b/usr.bin/openssl/rsa.c index 0d331f6a9ad..acc05ee0a45 100644 --- a/usr.bin/openssl/rsa.c +++ b/usr.bin/openssl/rsa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa.c,v 1.15 2021/11/26 16:23:27 tb Exp $ */ +/* $OpenBSD: rsa.c,v 1.16 2022/01/14 09:26:41 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -328,7 +328,7 @@ rsa_main(int argc, char **argv) } if (rsa_config.modulus) { BIO_printf(out, "Modulus="); - BN_print(out, rsa->n); + BN_print(out, RSA_get0_n(rsa)); BIO_printf(out, "\n"); } if (rsa_config.check) { -- 2.20.1