diff options
| author | Anton <anton@picapica> | 2019-02-17 20:45:42 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-02-17 20:45:42 +0400 |
| commit | 230671dba44ef2a1c00e2730f1f94597f5244ab1 (patch) | |
| tree | 47497f1ead201555e46bb8e50b735faca3cbebf5 | |
| parent | c1856913ef78ceffc4766cd53686c86d0c314e3f (diff) | |
| download | pica-pica-230671dba44ef2a1c00e2730f1f94597f5244ab1.tar.gz pica-pica-230671dba44ef2a1c00e2730f1f94597f5244ab1.zip | |
fixed getting public key from cert, use X509_get_pubkey()
| -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; |
