Skip to content

Commit

Permalink
Add missing key ec in return for function openssl_pkey_get_details
Browse files Browse the repository at this point in the history
OPENSSL_KEYTYPE_EC, an additional array key named "ec", containing the key data is returned. 

Source:
https://www.php.net/manual/en/function.openssl-pkey-get-details.php
  • Loading branch information
Rotzbua authored and isfedorov committed Jan 29, 2024
1 parent 2e8e4c6 commit 2fc4935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openssl/openssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function openssl_pkey_get_public(#[LanguageLevelTypeAware(['8.0' => 'OpenSSLAsym
* Depending on the key type used, additional details may be returned. Note that
* some elements may not always be available.
*/
#[ArrayShape(["bits" => "int", "key" => "string", "rsa" => "array", "dsa" => "array", "dh" => "array", "type" => "int"])]
#[ArrayShape(["bits" => "int", "key" => "string", "rsa" => "array", "dsa" => "array", "dh" => "array", "ec" => "array", "type" => "int"])]
function openssl_pkey_get_details(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey"], default: "resource")] $key): array|false {}

/**
Expand Down

0 comments on commit 2fc4935

Please sign in to comment.