mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 12:23:32 +00:00
Be more defensive when openssl (#895)
This commit is contained in:
parent
63fc9ebef6
commit
9d1decf582
1 changed files with 5 additions and 3 deletions
|
@ -94,10 +94,12 @@ class Signature {
|
|||
|
||||
$key = \openssl_pkey_new( $config );
|
||||
$priv_key = null;
|
||||
$detail = array();
|
||||
if ( $key ) {
|
||||
\openssl_pkey_export( $key, $priv_key );
|
||||
|
||||
\openssl_pkey_export( $key, $priv_key );
|
||||
|
||||
$detail = \openssl_pkey_get_details( $key );
|
||||
$detail = \openssl_pkey_get_details( $key );
|
||||
}
|
||||
|
||||
// check if keys are valid
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue