Fixed a bug in pluto's x509 handling.
This bug would have lead to a segmentation fault, if no public key could have been extracted from a certificate.
This commit is contained in:
+1
-1
@@ -419,7 +419,7 @@ void list_x509cert_chain(const char *caption, cert_t* cert,
|
|||||||
check_expiry(notAfter, CA_CERT_WARNING_INTERVAL, TRUE));
|
check_expiry(notAfter, CA_CERT_WARNING_INTERVAL, TRUE));
|
||||||
|
|
||||||
key = certificate->get_public_key(certificate);
|
key = certificate->get_public_key(certificate);
|
||||||
if (key);
|
if (key)
|
||||||
{
|
{
|
||||||
whack_log(RC_COMMENT, " pubkey: %N %4d bits%s",
|
whack_log(RC_COMMENT, " pubkey: %N %4d bits%s",
|
||||||
key_type_names, key->get_type(key),
|
key_type_names, key->get_type(key),
|
||||||
|
|||||||
Reference in New Issue
Block a user