diff options
author | Matt Caswell <matt@openssl.org> | 2016-03-30 17:18:55 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-04-03 00:23:56 +0100 |
commit | 6e9fa57c6ddde7df49983251373a05cd663aac22 (patch) | |
tree | 1930de43f7e9ec5a9a9597f8d70965f4b1aa80b7 /apps/dsa.c | |
parent | 1258396d73cf937e4daaf2c35377011b9366f956 (diff) | |
download | openssl-new-6e9fa57c6ddde7df49983251373a05cd663aac22.tar.gz |
Make DSA_METHOD opaque
Move the dsa_method structure out of the public header file, and provide
getter and setter functions for creating and modifying custom DSA_METHODs.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Stephen Henson <steve@openssl.org>
Diffstat (limited to 'apps/dsa.c')
-rw-r--r-- | apps/dsa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dsa.c b/apps/dsa.c index 9038e3bfb7..1c841a3a80 100644 --- a/apps/dsa.c +++ b/apps/dsa.c @@ -243,8 +243,10 @@ int dsa_main(int argc, char **argv) } if (modulus) { + BIGNUM *pub_key = NULL; + DSA_get0_key(dsa, &pub_key, NULL); BIO_printf(out, "Public Key="); - BN_print(out, DSA_get0_pub_key(dsa)); + BN_print(out, pub_key); BIO_printf(out, "\n"); } |