diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-04-07 00:20:11 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-07-20 01:35:38 -0400 |
commit | 1c72f70df43a0ceb118a990b9554913e26a83696 (patch) | |
tree | 6f7e4ed58214f50f32417ee89fcacd68bcb8ca96 /crypto/x509 | |
parent | 415e7c488e09119a42be24129e38ddd43524ee06 (diff) |
Use more X509_REQ_get0_pubkey & X509_get0_pubkey
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1284)
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/t_req.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/x509/t_req.c b/crypto/x509/t_req.c index 0d0447bd2b..dbe4be3db1 100644 --- a/crypto/x509/t_req.c +++ b/crypto/x509/t_req.c @@ -86,13 +86,12 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, if (BIO_puts(bp, "\n") <= 0) goto err; - pkey = X509_REQ_get_pubkey(x); + pkey = X509_REQ_get0_pubkey(x); if (pkey == NULL) { BIO_printf(bp, "%12sUnable to load Public Key\n", ""); ERR_print_errors(bp); } else { EVP_PKEY_print_public(bp, pkey, 16, NULL); - EVP_PKEY_free(pkey); } } |