1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/openssl/openssl.stub.php
Rimvydas Zilinskas e4593c51ff Add more openssl stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2019-10-30 11:20:48 +01:00

104 lines
3.3 KiB
PHP

<?php
function openssl_x509_export_to_file($x509, string $outfilename, bool $notext = true): bool {}
function openssl_x509_export($x509 , &$out, bool $notext = true): bool {}
/** @return string|false */
function openssl_x509_fingerprint($x509, string $method = 'sha1', bool $raw_output = false) {}
function openssl_x509_check_private_key($cert, $key): bool {}
function openssl_x509_verify($cert, $key): int {}
/** @return array|false */
function openssl_x509_parse($x509, bool $shortname = true) {}
/** @return bool|int */
function openssl_x509_checkpurpose($x509cert, int $purpose, ?array $cainfo = [], string $untrustedfile = UNKNOWN) {}
/** @return resource|false */
function openssl_x509_read($cert) {}
/** @return false|void */
function openssl_x509_free($x509) {}
/**
* @param resource|string $x509cert
* @param resource|string|array $priv_key
*/
function openssl_pkcs12_export_to_file($x509cert, string $filename, $priv_key, string $pass, array $args = UNKNOWN): bool {}
/**
* @param resource|string $x509
* @param resource|string|array $priv_key
*/
function openssl_pkcs12_export($x509 , &$out, $priv_key, string $pass, array $args = UNKNOWN): bool {}
function openssl_pkcs12_read(string $pkcs12, &$certs, string $pass): bool {}
/** @param resource $csr */
function openssl_csr_export_to_file($csr, string $outfilename, bool $notext = true): bool {}
/** @param resource $csr */
function openssl_csr_export($csr, &$out, bool $notext = true): bool {}
/**
* @param resource|string $csr
* @param resource|string $cacert
* @param resource|string|array $priv_key
* @return resource|false
*/
function openssl_csr_sign($csr, $cacert = null, $priv_key, int $days, ?array $config_args = null, int $serial = 0) {}
/** @return resource|false */
function openssl_csr_new(array $dn, &$privkey, ?array $configargs = null, ?array $extraattribs = null) {}
/**
* @param resource|string $csr
* @return array|false
*/
function openssl_csr_get_subject($csr, bool $use_shortnames = true) {}
/**
* @param resource|string $csr
* @return resource|false
*/
function openssl_csr_get_public_key($csr, bool $use_shortnames = true) {}
/** @return resource|false */
function openssl_pkey_new(?array $configargs = null) {}
/** @param resource|string|array $key */
function openssl_pkey_export_to_file($key, string $outfilename, ?string $passphrase = null, ?array $configargs = null): bool {}
/** @param resource|string|array $key */
function openssl_pkey_export($key, &$out, ?string $passphrase = null, ?array $configargs = null): bool {}
/**
* @param resource|string|array $cert
* @return resource|false
*/
function openssl_pkey_get_public($cert) {}
/** @param resource $key */
function openssl_pkey_free($key): void {}
/**
* @param resource|string|array $key
* @return resource|false
*/
function openssl_pkey_get_private($key, string $passphrase = UNKNOWN) {}
/**
* @param resource $key
* @return array|false
*/
function openssl_pkey_get_details($key) {}
/** @return string|false */
function openssl_pbkdf2(string $password, string $salt, int $key_length, int $iterations, string $digest_algorithm = 'sha1') {}
/** @return bool|int */
function openssl_pkcs7_verify(string $filename, int $flags, string $signerscerts = UNKNOWN, array $cainfo = UNKNOWN, string $extracerts = UNKNOWN, string $content = UNKNOWN, string $pk7 = UNKNOWN) {}