diff options
| -rw-r--r-- | PICA_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PICA_client.c b/PICA_client.c index 8903072..1b2c94a 100644 --- a/PICA_client.c +++ b/PICA_client.c @@ -373,7 +373,7 @@ static int verify_peer_cert_common(X509 **peer_cert, SSL *ssl, const unsigned ch if (!*peer_cert) return PICA_ERRNOPEERCERT; - pubkey = (*peer_cert)->cert_info->key->pkey; + pubkey = X509_get_pubkey(*peer_cert); if (!pubkey) return PICA_ERRNOPEERCERT; |
