diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-02-18 19:59:15 +0100 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-02-18 21:10:36 +0100 |
| commit | 736b22dc0b2fc36e9bd87f2ee5af8c4b2be9fd3d (patch) | |
| tree | d64c1ceccf5eb553e6a210105238c32da693c22a /ext/openssl/openssl.stub.php | |
| parent | 172010a08d0916ab1678f7f0768472c120330307 (diff) | |
| download | php-git-736b22dc0b2fc36e9bd87f2ee5af8c4b2be9fd3d.tar.gz | |
Add stubs for aliases
Closes GH-5187
Diffstat (limited to 'ext/openssl/openssl.stub.php')
| -rw-r--r-- | ext/openssl/openssl.stub.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/openssl/openssl.stub.php b/ext/openssl/openssl.stub.php index e75f79c906..413414117f 100644 --- a/ext/openssl/openssl.stub.php +++ b/ext/openssl/openssl.stub.php @@ -74,15 +74,30 @@ function openssl_pkey_export($key, &$out, ?string $passphrase = null, ?array $co */ function openssl_pkey_get_public($cert) {} +/** + * @param resource|string|array $cert + * @return resource|false + */ +function openssl_get_publickey($cert) {} + /** @param resource $key */ function openssl_pkey_free($key): void {} +/** @param resource $key */ +function openssl_free_key($key): void {} + /** * @param resource|string|array $key * @return resource|false */ function openssl_pkey_get_private($key, string $passphrase = UNKNOWN) {} +/** + * @param resource|string|array $key + * @return resource|false + */ +function openssl_get_privatekey($key, string $passphrase = UNKNOWN) {} + /** @param resource $key */ function openssl_pkey_get_details($key): array|false {} |
