From 9862e9aa98ee1e38fbcef8d1dd5db0e750eb5e8d Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 2 Apr 2016 15:12:58 +0200 Subject: Make the RSA structure opaque Move rsa_st away from public headers. Add accessor/writer functions for the public RSA data. Adapt all other source to use the accessors and writers. Reviewed-by: Matt Caswell --- apps/rsa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/rsa.c') diff --git a/apps/rsa.c b/apps/rsa.c index 38cedf7b77..980d9ef911 100644 --- a/apps/rsa.c +++ b/apps/rsa.c @@ -310,8 +310,10 @@ int rsa_main(int argc, char **argv) } if (modulus) { + BIGNUM *n; + RSA_get0_key(rsa, &n, NULL, NULL); BIO_printf(out, "Modulus="); - BN_print(out, rsa->n); + BN_print(out, n); BIO_printf(out, "\n"); } -- cgit v1.2.3