New function X509_get0_pubkey
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
This commit is contained in:
@@ -2206,10 +2206,9 @@ static void print_stuff(BIO *bio, SSL *s, int full)
|
||||
SSL_CIPHER_get_version(c), SSL_CIPHER_get_name(c));
|
||||
if (peer != NULL) {
|
||||
EVP_PKEY *pktmp;
|
||||
pktmp = X509_get_pubkey(peer);
|
||||
pktmp = X509_get0_pubkey(peer);
|
||||
BIO_printf(bio, "Server public key is %d bit\n",
|
||||
EVP_PKEY_bits(pktmp));
|
||||
EVP_PKEY_free(pktmp);
|
||||
}
|
||||
BIO_printf(bio, "Secure Renegotiation IS%s supported\n",
|
||||
SSL_get_secure_renegotiation_support(s) ? "" : " NOT");
|
||||
|
||||
Reference in New Issue
Block a user