mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Support the actual #[\SensitiveParameter]
attribute in stubs (#8836)
This commit is contained in:
parent
f22e0df033
commit
342e18f105
26 changed files with 752 additions and 502 deletions
|
@ -117,19 +117,6 @@ static zend_always_inline zend_attribute *zend_add_class_constant_attribute(zend
|
||||||
return zend_add_attribute(&c->attributes, name, argc, flags, 0, 0);
|
return zend_add_attribute(&c->attributes, name, argc, flags, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static zend_always_inline zend_attribute *zend_mark_function_parameter_as_sensitive(const HashTable *table, const char *func_name, uint32_t parameter)
|
|
||||||
{
|
|
||||||
zend_function *func = zend_hash_str_find_ptr(table, func_name, strlen(func_name));
|
|
||||||
ZEND_ASSERT(func != NULL);
|
|
||||||
|
|
||||||
return zend_add_parameter_attribute(
|
|
||||||
func,
|
|
||||||
parameter,
|
|
||||||
zend_ce_sensitive_parameter->name,
|
|
||||||
0
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
void zend_register_attribute_ce(void);
|
void zend_register_attribute_ce(void);
|
||||||
void zend_attributes_shutdown(void);
|
void zend_attributes_shutdown(void);
|
||||||
|
|
||||||
|
|
|
@ -815,9 +815,12 @@ class ArgInfo {
|
||||||
public $phpDocType;
|
public $phpDocType;
|
||||||
/** @var string|null */
|
/** @var string|null */
|
||||||
public $defaultValue;
|
public $defaultValue;
|
||||||
/** @var bool */
|
/** @var AttributeInfo[] */
|
||||||
public $isSensitive;
|
public $attributes;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param AttributeInfo[] $attributes
|
||||||
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
string $name,
|
string $name,
|
||||||
int $sendBy,
|
int $sendBy,
|
||||||
|
@ -825,14 +828,14 @@ class ArgInfo {
|
||||||
?Type $type,
|
?Type $type,
|
||||||
?Type $phpDocType,
|
?Type $phpDocType,
|
||||||
?string $defaultValue,
|
?string $defaultValue,
|
||||||
bool $isSensitive
|
array $attributes
|
||||||
) {
|
) {
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
$this->sendBy = $sendBy;
|
$this->sendBy = $sendBy;
|
||||||
$this->isVariadic = $isVariadic;
|
$this->isVariadic = $isVariadic;
|
||||||
$this->setTypes($type, $phpDocType);
|
$this->setTypes($type, $phpDocType);
|
||||||
$this->defaultValue = $defaultValue;
|
$this->defaultValue = $defaultValue;
|
||||||
$this->isSensitive = $isSensitive;
|
$this->attributes = $attributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function equals(ArgInfo $other): bool {
|
public function equals(ArgInfo $other): bool {
|
||||||
|
@ -840,8 +843,7 @@ class ArgInfo {
|
||||||
&& $this->sendBy === $other->sendBy
|
&& $this->sendBy === $other->sendBy
|
||||||
&& $this->isVariadic === $other->isVariadic
|
&& $this->isVariadic === $other->isVariadic
|
||||||
&& Type::equals($this->type, $other->type)
|
&& Type::equals($this->type, $other->type)
|
||||||
&& $this->defaultValue === $other->defaultValue
|
&& $this->defaultValue === $other->defaultValue;
|
||||||
&& $this->isSensitive === $other->isSensitive;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSendByString(): string {
|
public function getSendByString(): string {
|
||||||
|
@ -2570,7 +2572,7 @@ class ClassInfo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($attributeInitializationCode = generateAttributeInitialization($this->funcInfos, $this->cond)) {
|
if ($attributeInitializationCode = generateAttributeInitialization($this->funcInfos, $this->cond, $allConstInfos)) {
|
||||||
if (!$php82MinimumCompatibility) {
|
if (!$php82MinimumCompatibility) {
|
||||||
$code .= "#if (PHP_VERSION_ID >= " . PHP_82_VERSION_ID . ")\n";
|
$code .= "#if (PHP_VERSION_ID >= " . PHP_82_VERSION_ID . ")\n";
|
||||||
}
|
}
|
||||||
|
@ -3151,7 +3153,7 @@ class DocCommentTag {
|
||||||
|
|
||||||
if ($this->name === "param") {
|
if ($this->name === "param") {
|
||||||
preg_match('/^\s*[\w\|\\\\\[\]]+\s*\$(\w+).*$/', $value, $matches);
|
preg_match('/^\s*[\w\|\\\\\[\]]+\s*\$(\w+).*$/', $value, $matches);
|
||||||
} elseif ($this->name === "prefer-ref" || $this->name === "sensitive-param") {
|
} elseif ($this->name === "prefer-ref") {
|
||||||
preg_match('/^\s*\$(\w+).*$/', $value, $matches);
|
preg_match('/^\s*\$(\w+).*$/', $value, $matches);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3242,7 +3244,6 @@ function parseFunctionLike(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'prefer-ref':
|
case 'prefer-ref':
|
||||||
case 'sensitive-param':
|
|
||||||
$varName = $tag->getVariableName();
|
$varName = $tag->getVariableName();
|
||||||
if (!isset($paramMeta[$varName])) {
|
if (!isset($paramMeta[$varName])) {
|
||||||
$paramMeta[$varName] = [];
|
$paramMeta[$varName] = [];
|
||||||
|
@ -3260,7 +3261,12 @@ function parseFunctionLike(
|
||||||
foreach ($func->getParams() as $i => $param) {
|
foreach ($func->getParams() as $i => $param) {
|
||||||
$varName = $param->var->name;
|
$varName = $param->var->name;
|
||||||
$preferRef = !empty($paramMeta[$varName]['prefer-ref']);
|
$preferRef = !empty($paramMeta[$varName]['prefer-ref']);
|
||||||
$isSensitive = !empty($paramMeta[$varName]['sensitive-param']);
|
$attributes = [];
|
||||||
|
foreach ($param->attrGroups as $attrGroup) {
|
||||||
|
foreach ($attrGroup->attrs as $attr) {
|
||||||
|
$attributes[] = new AttributeInfo($attr->name->toString(), $attr->args);
|
||||||
|
}
|
||||||
|
}
|
||||||
unset($paramMeta[$varName]);
|
unset($paramMeta[$varName]);
|
||||||
|
|
||||||
if (isset($varNameSet[$varName])) {
|
if (isset($varNameSet[$varName])) {
|
||||||
|
@ -3308,7 +3314,7 @@ function parseFunctionLike(
|
||||||
$type,
|
$type,
|
||||||
isset($docParamTypes[$varName]) ? Type::fromString($docParamTypes[$varName]) : null,
|
isset($docParamTypes[$varName]) ? Type::fromString($docParamTypes[$varName]) : null,
|
||||||
$param->default ? $prettyPrinter->prettyPrintExpr($param->default) : null,
|
$param->default ? $prettyPrinter->prettyPrintExpr($param->default) : null,
|
||||||
$isSensitive
|
$attributes
|
||||||
);
|
);
|
||||||
if (!$param->default && !$param->variadic) {
|
if (!$param->default && !$param->variadic) {
|
||||||
$numRequiredArgs = $i + 1;
|
$numRequiredArgs = $i + 1;
|
||||||
|
@ -3962,7 +3968,7 @@ function generateArgInfoCode(
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($fileInfo->generateClassEntries) {
|
if ($fileInfo->generateClassEntries) {
|
||||||
$attributeInitializationCode = generateAttributeInitialization($fileInfo->funcInfos);
|
$attributeInitializationCode = generateAttributeInitialization($fileInfo->funcInfos, null, $allConstInfos);
|
||||||
|
|
||||||
if ($attributeInitializationCode !== "" || !empty($fileInfo->constInfos)) {
|
if ($attributeInitializationCode !== "" || !empty($fileInfo->constInfos)) {
|
||||||
$code .= "\nstatic void register_{$stubFilenameWithoutExtension}_symbols(int module_number)\n";
|
$code .= "\nstatic void register_{$stubFilenameWithoutExtension}_symbols(int module_number)\n";
|
||||||
|
@ -4029,25 +4035,23 @@ function generateFunctionEntries(?Name $className, array $funcInfos, ?string $co
|
||||||
/**
|
/**
|
||||||
* @param iterable<FuncInfo> $funcInfos
|
* @param iterable<FuncInfo> $funcInfos
|
||||||
*/
|
*/
|
||||||
function generateAttributeInitialization(iterable $funcInfos, ?string $parentCond = null): string {
|
function generateAttributeInitialization(iterable $funcInfos, ?string $parentCond = null, iterable $allConstInfos): string {
|
||||||
return generateCodeWithConditions(
|
return generateCodeWithConditions(
|
||||||
$funcInfos,
|
$funcInfos,
|
||||||
"",
|
"",
|
||||||
static function (FuncInfo $funcInfo) {
|
static function (FuncInfo $funcInfo) use ($allConstInfos) {
|
||||||
$code = null;
|
$code = null;
|
||||||
|
|
||||||
foreach ($funcInfo->args as $index => $arg) {
|
foreach ($funcInfo->args as $index => $arg) {
|
||||||
if (!$arg->isSensitive) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($funcInfo->name instanceof MethodName) {
|
if ($funcInfo->name instanceof MethodName) {
|
||||||
$functionTable = "&class_entry->function_table";
|
$functionTable = "&class_entry->function_table";
|
||||||
} else {
|
} else {
|
||||||
$functionTable = "CG(function_table)";
|
$functionTable = "CG(function_table)";
|
||||||
}
|
}
|
||||||
|
|
||||||
$code .= "\tzend_mark_function_parameter_as_sensitive($functionTable, \"" . $funcInfo->name->getNameForAttributes() . "\", $index);\n";
|
foreach ($arg->attributes as $attribute) {
|
||||||
|
$code .= $attribute->generateCode("zend_add_parameter_attribute(zend_hash_str_find_ptr($functionTable, \"" . $funcInfo->name->getNameForAttributes() . "\", sizeof(\"" . $funcInfo->name->getNameForAttributes() . "\") - 1), $index", "{$funcInfo->name->getMethodSynopsisFilename()}_arg{$index}", $allConstInfos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $code;
|
return $code;
|
||||||
|
|
|
@ -75,8 +75,7 @@ namespace {
|
||||||
function ftp_ssl_connect(string $hostname, int $port = 21, int $timeout = 90): FTP\Connection|false {}
|
function ftp_ssl_connect(string $hostname, int $port = 21, int $timeout = 90): FTP\Connection|false {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
function ftp_login(FTP\Connection $ftp, string $username, #[\SensitiveParameter] string $password): bool {}
|
||||||
function ftp_login(FTP\Connection $ftp, string $username, string $password): bool {}
|
|
||||||
function ftp_pwd(FTP\Connection $ftp): string|false {}
|
function ftp_pwd(FTP\Connection $ftp): string|false {}
|
||||||
function ftp_cdup(FTP\Connection $ftp): bool {}
|
function ftp_cdup(FTP\Connection $ftp): bool {}
|
||||||
function ftp_chdir(FTP\Connection $ftp, string $directory): bool {}
|
function ftp_chdir(FTP\Connection $ftp, string $directory): bool {}
|
||||||
|
|
7
ext/ftp/ftp_arginfo.h
generated
7
ext/ftp/ftp_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: f3728c451a9cd130e9ffdf48389e2f68b4f82423 */
|
* Stub hash: 626d7a2c3ba884188722a07c4c273dbca0b86242 */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ftp_connect, 0, 1, FTP\\Connection, MAY_BE_FALSE)
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ftp_connect, 0, 1, FTP\\Connection, MAY_BE_FALSE)
|
||||||
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
|
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
|
||||||
|
@ -294,7 +294,10 @@ static void register_ftp_symbols(int module_number)
|
||||||
REGISTER_LONG_CONSTANT("FTP_FINISHED", PHP_FTP_FINISHED, CONST_CS | CONST_PERSISTENT);
|
REGISTER_LONG_CONSTANT("FTP_FINISHED", PHP_FTP_FINISHED, CONST_CS | CONST_PERSISTENT);
|
||||||
REGISTER_LONG_CONSTANT("FTP_MOREDATA", PHP_FTP_MOREDATA, CONST_CS | CONST_PERSISTENT);
|
REGISTER_LONG_CONSTANT("FTP_MOREDATA", PHP_FTP_MOREDATA, CONST_CS | CONST_PERSISTENT);
|
||||||
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "ftp_login", 2);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_ftp_login_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "ftp_login", sizeof("ftp_login") - 1), 2, attribute_name_SensitiveParameter_ftp_login_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ftp_login_arg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static zend_class_entry *register_class_FTP_Connection(void)
|
static zend_class_entry *register_class_FTP_Connection(void)
|
||||||
|
|
|
@ -15,22 +15,19 @@ function hash(string $algo, string $data, bool $binary = false, array $options =
|
||||||
function hash_file(string $algo, string $filename, bool $binary = false, array $options = []): string|false {}
|
function hash_file(string $algo, string $filename, bool $binary = false, array $options = []): string|false {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $key
|
|
||||||
* @refcount 1
|
* @refcount 1
|
||||||
*/
|
*/
|
||||||
function hash_hmac(string $algo, string $data, string $key, bool $binary = false): string {}
|
function hash_hmac(string $algo, string $data, #[\SensitiveParameter] string $key, bool $binary = false): string {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $key
|
|
||||||
* @refcount 1
|
* @refcount 1
|
||||||
*/
|
*/
|
||||||
function hash_hmac_file(string $algo, string $filename, string $key, bool $binary = false): string|false {}
|
function hash_hmac_file(string $algo, string $filename, #[\SensitiveParameter] string $key, bool $binary = false): string|false {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $key
|
|
||||||
* @refcount 1
|
* @refcount 1
|
||||||
*/
|
*/
|
||||||
function hash_init(string $algo, int $flags = 0, string $key = "", array $options = []): HashContext {}
|
function hash_init(string $algo, int $flags = 0, #[\SensitiveParameter] string $key = "", array $options = []): HashContext {}
|
||||||
|
|
||||||
function hash_update(HashContext $context, string $data): bool {}
|
function hash_update(HashContext $context, string $data): bool {}
|
||||||
|
|
||||||
|
@ -59,22 +56,16 @@ function hash_algos(): array {}
|
||||||
function hash_hmac_algos(): array {}
|
function hash_hmac_algos(): array {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @refcount 1
|
* @refcount 1
|
||||||
*/
|
*/
|
||||||
function hash_pbkdf2(string $algo, string $password, string $salt, int $iterations, int $length = 0, bool $binary = false): string {}
|
function hash_pbkdf2(string $algo, #[\SensitiveParameter] string $password, string $salt, int $iterations, int $length = 0, bool $binary = false): string {}
|
||||||
|
|
||||||
|
function hash_equals(#[\SensitiveParameter] string $known_string, #[\SensitiveParameter] string $user_string): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $known_string
|
|
||||||
* @sensitive-param $user_string
|
|
||||||
*/
|
|
||||||
function hash_equals(string $known_string, string $user_string): bool {}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @sensitive-param $key
|
|
||||||
* @refcount 1
|
* @refcount 1
|
||||||
*/
|
*/
|
||||||
function hash_hkdf(string $algo, string $key, int $length = 0, string $info = "", string $salt = ""): string {}
|
function hash_hkdf(string $algo, #[\SensitiveParameter] string $key, int $length = 0, string $info = "", string $salt = ""): string {}
|
||||||
|
|
||||||
#ifdef PHP_MHASH_BC
|
#ifdef PHP_MHASH_BC
|
||||||
/** @deprecated */
|
/** @deprecated */
|
||||||
|
|
37
ext/hash/hash_arginfo.h
generated
37
ext/hash/hash_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: fb95b61917a29769f4be4f5d7b5d589a39ae0c4e */
|
* Stub hash: 0d28e37a0608d601bc1a79425870cff849dadc0f */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash, 0, 2, IS_STRING, 0)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash, 0, 2, IS_STRING, 0)
|
||||||
ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
|
ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0)
|
||||||
|
@ -214,13 +214,34 @@ static void register_hash_symbols(int module_number)
|
||||||
{
|
{
|
||||||
REGISTER_LONG_CONSTANT("HASH_HMAC", PHP_HASH_HMAC, CONST_CS | CONST_PERSISTENT);
|
REGISTER_LONG_CONSTANT("HASH_HMAC", PHP_HASH_HMAC, CONST_CS | CONST_PERSISTENT);
|
||||||
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "hash_hmac", 2);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "hash_hmac_file", 2);
|
zend_string *attribute_name_SensitiveParameter_hash_hmac_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "hash_init", 2);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hmac", sizeof("hash_hmac") - 1), 2, attribute_name_SensitiveParameter_hash_hmac_arg2, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "hash_pbkdf2", 1);
|
zend_string_release(attribute_name_SensitiveParameter_hash_hmac_arg2);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "hash_equals", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "hash_equals", 1);
|
zend_string *attribute_name_SensitiveParameter_hash_hmac_file_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "hash_hkdf", 1);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hmac_file", sizeof("hash_hmac_file") - 1), 2, attribute_name_SensitiveParameter_hash_hmac_file_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_hash_hmac_file_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_hash_init_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_init", sizeof("hash_init") - 1), 2, attribute_name_SensitiveParameter_hash_init_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_hash_init_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_hash_pbkdf2_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_pbkdf2", sizeof("hash_pbkdf2") - 1), 1, attribute_name_SensitiveParameter_hash_pbkdf2_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_hash_pbkdf2_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_hash_equals_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_equals", sizeof("hash_equals") - 1), 0, attribute_name_SensitiveParameter_hash_equals_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_hash_equals_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_hash_equals_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_equals", sizeof("hash_equals") - 1), 1, attribute_name_SensitiveParameter_hash_equals_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_hash_equals_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_hash_hkdf_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "hash_hkdf", sizeof("hash_hkdf") - 1), 1, attribute_name_SensitiveParameter_hash_hkdf_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_hash_hkdf_arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static zend_class_entry *register_class_HashContext(void)
|
static zend_class_entry *register_class_HashContext(void)
|
||||||
|
|
|
@ -405,8 +405,7 @@ namespace {
|
||||||
*/
|
*/
|
||||||
const IMAP_GC_TEXTS = UNKNOWN;
|
const IMAP_GC_TEXTS = UNKNOWN;
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
function imap_open(string $mailbox, string $user, #[\SensitiveParameter] string $password, int $flags = 0, int $retries = 0, array $options = []): IMAP\Connection|false {}
|
||||||
function imap_open(string $mailbox, string $user, string $password, int $flags = 0, int $retries = 0, array $options = []): IMAP\Connection|false {}
|
|
||||||
|
|
||||||
function imap_reopen(IMAP\Connection $imap, string $mailbox, int $flags = 0, int $retries = 0): bool {}
|
function imap_reopen(IMAP\Connection $imap, string $mailbox, int $flags = 0, int $retries = 0): bool {}
|
||||||
|
|
||||||
|
|
7
ext/imap/php_imap_arginfo.h
generated
7
ext/imap/php_imap_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 0f1acb4f23b4c82e58aac65af39ce29029e203e5 */
|
* Stub hash: 822fbcdcfe25192fe22bea50766cf798aee76865 */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_imap_open, 0, 3, IMAP\\Connection, MAY_BE_FALSE)
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_imap_open, 0, 3, IMAP\\Connection, MAY_BE_FALSE)
|
||||||
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
|
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
|
||||||
|
@ -595,7 +595,10 @@ static void register_php_imap_symbols(int module_number)
|
||||||
REGISTER_LONG_CONSTANT("IMAP_GC_ENV", GC_ENV, CONST_CS | CONST_PERSISTENT);
|
REGISTER_LONG_CONSTANT("IMAP_GC_ENV", GC_ENV, CONST_CS | CONST_PERSISTENT);
|
||||||
REGISTER_LONG_CONSTANT("IMAP_GC_TEXTS", GC_TEXTS, CONST_CS | CONST_PERSISTENT);
|
REGISTER_LONG_CONSTANT("IMAP_GC_TEXTS", GC_TEXTS, CONST_CS | CONST_PERSISTENT);
|
||||||
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "imap_open", 2);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_imap_open_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "imap_open", sizeof("imap_open") - 1), 2, attribute_name_SensitiveParameter_imap_open_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_imap_open_arg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static zend_class_entry *register_class_IMAP_Connection(void)
|
static zend_class_entry *register_class_IMAP_Connection(void)
|
||||||
|
|
|
@ -610,10 +610,7 @@ namespace {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_ORALDAP
|
#ifdef HAVE_ORALDAP
|
||||||
/**
|
function ldap_connect(?string $uri = null, int $port = 389, string $wallet = UNKNOWN, #[\SensitiveParameter] string $password = UNKNOWN, int $auth_mode = GSLC_SSL_NO_AUTH): LDAP\Connection|false {}
|
||||||
* @sensitive-param $password
|
|
||||||
*/
|
|
||||||
function ldap_connect(?string $uri = null, int $port = 389, string $wallet = UNKNOWN, string $password = UNKNOWN, int $auth_mode = GSLC_SSL_NO_AUTH): LDAP\Connection|false {}
|
|
||||||
#else
|
#else
|
||||||
function ldap_connect(?string $uri = null, int $port = 389): LDAP\Connection|false {}
|
function ldap_connect(?string $uri = null, int $port = 389): LDAP\Connection|false {}
|
||||||
#endif
|
#endif
|
||||||
|
@ -623,21 +620,12 @@ namespace {
|
||||||
/** @alias ldap_unbind */
|
/** @alias ldap_unbind */
|
||||||
function ldap_close(LDAP\Connection $ldap): bool {}
|
function ldap_close(LDAP\Connection $ldap): bool {}
|
||||||
|
|
||||||
/**
|
function ldap_bind(LDAP\Connection $ldap, ?string $dn = null, #[\SensitiveParameter] ?string $password = null): bool {}
|
||||||
* @sensitive-param $password
|
|
||||||
*/
|
|
||||||
function ldap_bind(LDAP\Connection $ldap, ?string $dn = null, ?string $password = null): bool {}
|
|
||||||
|
|
||||||
/**
|
function ldap_bind_ext(LDAP\Connection $ldap, ?string $dn = null, #[\SensitiveParameter] ?string $password = null, ?array $controls = null): LDAP\Result|false {}
|
||||||
* @sensitive-param $password
|
|
||||||
*/
|
|
||||||
function ldap_bind_ext(LDAP\Connection $ldap, ?string $dn = null, ?string $password = null, ?array $controls = null): LDAP\Result|false {}
|
|
||||||
|
|
||||||
#ifdef HAVE_LDAP_SASL
|
#ifdef HAVE_LDAP_SASL
|
||||||
/**
|
function ldap_sasl_bind(LDAP\Connection $ldap, ?string $dn = null, #[\SensitiveParameter] ?string $password = null, ?string $mech = null, ?string $realm = null, ?string $authc_id = null, ?string $authz_id = null, ?string $props = null): bool {}
|
||||||
* @sensitive-param $password
|
|
||||||
*/
|
|
||||||
function ldap_sasl_bind(LDAP\Connection $ldap, ?string $dn = null, ?string $password = null, ?string $mech = null, ?string $realm = null, ?string $authc_id = null, ?string $authz_id = null, ?string $props = null): bool {}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @param LDAP\Connection|array $ldap */
|
/** @param LDAP\Connection|array $ldap */
|
||||||
|
@ -791,10 +779,8 @@ namespace {
|
||||||
#ifdef HAVE_LDAP_PASSWD
|
#ifdef HAVE_LDAP_PASSWD
|
||||||
/**
|
/**
|
||||||
* @param array $controls
|
* @param array $controls
|
||||||
* @sensitive-param $old_password
|
|
||||||
* @sensitive-param $new_password
|
|
||||||
*/
|
*/
|
||||||
function ldap_exop_passwd(LDAP\Connection $ldap, string $user = "", string $old_password = "", string $new_password = "", &$controls = null): string|bool {}
|
function ldap_exop_passwd(LDAP\Connection $ldap, string $user = "", #[\SensitiveParameter] string $old_password = "", #[\SensitiveParameter] string $new_password = "", &$controls = null): string|bool {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
32
ext/ldap/ldap_arginfo.h
generated
32
ext/ldap/ldap_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 67b3287b7dfa9beec9d9981214de8099f8224fe2 */
|
* Stub hash: d13eb65a462e331f393657ce748e29f0c582b993 */
|
||||||
|
|
||||||
#if defined(HAVE_ORALDAP)
|
#if defined(HAVE_ORALDAP)
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ldap_connect, 0, 0, LDAP\\Connection, MAY_BE_FALSE)
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ldap_connect, 0, 0, LDAP\\Connection, MAY_BE_FALSE)
|
||||||
|
@ -831,16 +831,34 @@ static void register_ldap_symbols(int module_number)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_ORALDAP)
|
#if defined(HAVE_ORALDAP)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "ldap_connect", 3);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_ldap_connect_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "ldap_connect", sizeof("ldap_connect") - 1), 3, attribute_name_SensitiveParameter_ldap_connect_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ldap_connect_arg3);
|
||||||
#endif
|
#endif
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "ldap_bind", 2);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "ldap_bind_ext", 2);
|
zend_string *attribute_name_SensitiveParameter_ldap_bind_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "ldap_bind", sizeof("ldap_bind") - 1), 2, attribute_name_SensitiveParameter_ldap_bind_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ldap_bind_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_ldap_bind_ext_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "ldap_bind_ext", sizeof("ldap_bind_ext") - 1), 2, attribute_name_SensitiveParameter_ldap_bind_ext_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ldap_bind_ext_arg2);
|
||||||
#if defined(HAVE_LDAP_SASL)
|
#if defined(HAVE_LDAP_SASL)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "ldap_sasl_bind", 2);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_ldap_sasl_bind_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "ldap_sasl_bind", sizeof("ldap_sasl_bind") - 1), 2, attribute_name_SensitiveParameter_ldap_sasl_bind_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ldap_sasl_bind_arg2);
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_LDAP_PASSWD)
|
#if defined(HAVE_LDAP_PASSWD)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "ldap_exop_passwd", 2);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "ldap_exop_passwd", 3);
|
zend_string *attribute_name_SensitiveParameter_ldap_exop_passwd_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "ldap_exop_passwd", sizeof("ldap_exop_passwd") - 1), 2, attribute_name_SensitiveParameter_ldap_exop_passwd_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ldap_exop_passwd_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_ldap_exop_passwd_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "ldap_exop_passwd", sizeof("ldap_exop_passwd") - 1), 3, attribute_name_SensitiveParameter_ldap_exop_passwd_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ldap_exop_passwd_arg3);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,11 +126,10 @@ class mysqli
|
||||||
*/
|
*/
|
||||||
public int $warning_count;
|
public int $warning_count;
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
?string $hostname = null,
|
?string $hostname = null,
|
||||||
?string $username = null,
|
?string $username = null,
|
||||||
?string $password = null,
|
#[\SensitiveParameter] ?string $password = null,
|
||||||
?string $database = null,
|
?string $database = null,
|
||||||
?int $port = null,
|
?int $port = null,
|
||||||
?string $socket = null
|
?string $socket = null
|
||||||
|
@ -149,11 +148,10 @@ class mysqli
|
||||||
public function begin_transaction(int $flags = 0, ?string $name = null): bool {}
|
public function begin_transaction(int $flags = 0, ?string $name = null): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @tentative-return-type
|
* @tentative-return-type
|
||||||
* @alias mysqli_change_user
|
* @alias mysqli_change_user
|
||||||
*/
|
*/
|
||||||
public function change_user(string $username, string $password, ?string $database): bool {}
|
public function change_user(string $username, #[\SensitiveParameter] string $password, ?string $database): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @tentative-return-type
|
* @tentative-return-type
|
||||||
|
@ -175,7 +173,6 @@ class mysqli
|
||||||
public function commit(int $flags = 0, ?string $name = null): bool {}
|
public function commit(int $flags = 0, ?string $name = null): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @tentative-return-type
|
* @tentative-return-type
|
||||||
* @alias mysqli_connect
|
* @alias mysqli_connect
|
||||||
* @no-verify
|
* @no-verify
|
||||||
|
@ -183,7 +180,7 @@ class mysqli
|
||||||
public function connect(
|
public function connect(
|
||||||
?string $hostname = null,
|
?string $hostname = null,
|
||||||
?string $username = null,
|
?string $username = null,
|
||||||
?string $password = null,
|
#[\SensitiveParameter] ?string $password = null,
|
||||||
?string $database = null,
|
?string $database = null,
|
||||||
?int $port = null,
|
?int $port = null,
|
||||||
?string $socket = null
|
?string $socket = null
|
||||||
|
@ -294,14 +291,13 @@ class mysqli
|
||||||
public function query(string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool {}
|
public function query(string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @tentative-return-type
|
* @tentative-return-type
|
||||||
* @alias mysqli_real_connect
|
* @alias mysqli_real_connect
|
||||||
*/
|
*/
|
||||||
public function real_connect(
|
public function real_connect(
|
||||||
?string $hostname = null,
|
?string $hostname = null,
|
||||||
?string $username = null,
|
?string $username = null,
|
||||||
?string $password = null,
|
#[\SensitiveParameter] ?string $password = null,
|
||||||
?string $database = null,
|
?string $database = null,
|
||||||
?int $port = null,
|
?int $port = null,
|
||||||
?string $socket = null,
|
?string $socket = null,
|
||||||
|
@ -748,8 +744,7 @@ function mysqli_autocommit(mysqli $mysql, bool $enable): bool {}
|
||||||
|
|
||||||
function mysqli_begin_transaction(mysqli $mysql, int $flags = 0, ?string $name = null): bool {}
|
function mysqli_begin_transaction(mysqli $mysql, int $flags = 0, ?string $name = null): bool {}
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
function mysqli_change_user(mysqli $mysql, string $username, #[\SensitiveParameter] string $password, ?string $database): bool {}
|
||||||
function mysqli_change_user(mysqli $mysql, string $username, string $password, ?string $database): bool {}
|
|
||||||
|
|
||||||
/** @refcount 1 */
|
/** @refcount 1 */
|
||||||
function mysqli_character_set_name(mysqli $mysql): string {}
|
function mysqli_character_set_name(mysqli $mysql): string {}
|
||||||
|
@ -760,12 +755,11 @@ function mysqli_commit(mysqli $mysql, int $flags = 0, ?string $name = null): boo
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @refcount 1
|
* @refcount 1
|
||||||
* @sensitive-param $password
|
|
||||||
*/
|
*/
|
||||||
function mysqli_connect(
|
function mysqli_connect(
|
||||||
?string $hostname = null,
|
?string $hostname = null,
|
||||||
?string $username = null,
|
?string $username = null,
|
||||||
?string $password = null,
|
#[\SensitiveParameter] ?string $password = null,
|
||||||
?string $database = null,
|
?string $database = null,
|
||||||
?int $port = null,
|
?int $port = null,
|
||||||
?string $socket = null
|
?string $socket = null
|
||||||
|
@ -937,11 +931,11 @@ function mysqli_report(int $flags): bool {}
|
||||||
/** @refcount 1 */
|
/** @refcount 1 */
|
||||||
function mysqli_query(mysqli $mysql, string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool {}
|
function mysqli_query(mysqli $mysql, string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool {}
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
|
||||||
function mysqli_real_connect(
|
function mysqli_real_connect(
|
||||||
mysqli $mysql,
|
mysqli $mysql,
|
||||||
?string $hostname = null,
|
?string $hostname = null,
|
||||||
?string $username = null,
|
?string $username = null,
|
||||||
|
#[\SensitiveParameter]
|
||||||
?string $password = null,
|
?string $password = null,
|
||||||
?string $database = null,
|
?string $database = null,
|
||||||
?int $port = null,
|
?int $port = null,
|
||||||
|
|
37
ext/mysqli/mysqli_arginfo.h
generated
37
ext/mysqli/mysqli_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 2dae4302d825a7f5da3c4e00ce87aebc5502a8af */
|
* Stub hash: 9db7bea22e25a7f3d70a556f0945c74511866de2 */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
|
||||||
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)
|
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)
|
||||||
|
@ -1045,9 +1045,18 @@ static const zend_function_entry class_mysqli_sql_exception_methods[] = {
|
||||||
|
|
||||||
static void register_mysqli_symbols(int module_number)
|
static void register_mysqli_symbols(int module_number)
|
||||||
{
|
{
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "mysqli_change_user", 2);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "mysqli_connect", 2);
|
zend_string *attribute_name_SensitiveParameter_mysqli_change_user_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "mysqli_real_connect", 3);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "mysqli_change_user", sizeof("mysqli_change_user") - 1), 2, attribute_name_SensitiveParameter_mysqli_change_user_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_mysqli_change_user_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_mysqli_connect_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "mysqli_connect", sizeof("mysqli_connect") - 1), 2, attribute_name_SensitiveParameter_mysqli_connect_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_mysqli_connect_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_mysqli_real_connect_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "mysqli_real_connect", sizeof("mysqli_real_connect") - 1), 3, attribute_name_SensitiveParameter_mysqli_real_connect_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_mysqli_real_connect_arg3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static zend_class_entry *register_class_mysqli_driver(void)
|
static zend_class_entry *register_class_mysqli_driver(void)
|
||||||
|
@ -1200,10 +1209,22 @@ static zend_class_entry *register_class_mysqli(void)
|
||||||
zend_declare_typed_property(class_entry, property_warning_count_name, &property_warning_count_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
zend_declare_typed_property(class_entry, property_warning_count_name, &property_warning_count_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||||
zend_string_release(property_warning_count_name);
|
zend_string_release(property_warning_count_name);
|
||||||
|
|
||||||
zend_mark_function_parameter_as_sensitive(&class_entry->function_table, "__construct", 2);
|
|
||||||
zend_mark_function_parameter_as_sensitive(&class_entry->function_table, "change_user", 1);
|
zend_string *attribute_name_SensitiveParameter_mysqli___construct_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(&class_entry->function_table, "connect", 2);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "__construct", sizeof("__construct") - 1), 2, attribute_name_SensitiveParameter_mysqli___construct_arg2, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(&class_entry->function_table, "real_connect", 2);
|
zend_string_release(attribute_name_SensitiveParameter_mysqli___construct_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_mysqli_change_user_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "change_user", sizeof("change_user") - 1), 1, attribute_name_SensitiveParameter_mysqli_change_user_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_mysqli_change_user_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_mysqli_connect_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "connect", sizeof("connect") - 1), 2, attribute_name_SensitiveParameter_mysqli_connect_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_mysqli_connect_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_mysqli_real_connect_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "real_connect", sizeof("real_connect") - 1), 2, attribute_name_SensitiveParameter_mysqli_real_connect_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_mysqli_real_connect_arg2);
|
||||||
|
|
||||||
return class_entry;
|
return class_entry;
|
||||||
}
|
}
|
||||||
|
|
|
@ -295,46 +295,40 @@ function oci_close($connection): ?bool {}
|
||||||
function ocilogoff($connection): ?bool {}
|
function ocilogoff($connection): ?bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @return resource|false
|
* @return resource|false
|
||||||
*/
|
*/
|
||||||
function oci_new_connect(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
function oci_new_connect(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @return resource|false
|
* @return resource|false
|
||||||
* @alias oci_new_connect
|
* @alias oci_new_connect
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
function ocinlogon(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
function ocinlogon(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @return resource|false
|
* @return resource|false
|
||||||
*/
|
*/
|
||||||
function oci_connect(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
function oci_connect(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @return resource|false
|
* @return resource|false
|
||||||
* @alias oci_connect
|
* @alias oci_connect
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
function ocilogon(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
function ocilogon(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @return resource|false
|
* @return resource|false
|
||||||
*/
|
*/
|
||||||
function oci_pconnect(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
function oci_pconnect(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @return resource|false
|
* @return resource|false
|
||||||
* @alias oci_pconnect
|
* @alias oci_pconnect
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
function ociplogon(string $username, string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
function ociplogon(string $username, #[\SensitiveParameter] string $password, ?string $connection_string = null, string $encoding = "", int $session_mode = OCI_DEFAULT) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param resource|null $connection_or_statement
|
* @param resource|null $connection_or_statement
|
||||||
|
|
32
ext/oci8/oci8_arginfo.h
generated
32
ext/oci8/oci8_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 592fbc9718ff272e1cb182025963683541a7a646 */
|
* Stub hash: e942a76bf66ad950c12f459b3f62bb6a0edf680c */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_oci_define_by_name, 0, 3, _IS_BOOL, 0)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_oci_define_by_name, 0, 3, _IS_BOOL, 0)
|
||||||
ZEND_ARG_INFO(0, statement)
|
ZEND_ARG_INFO(0, statement)
|
||||||
|
@ -801,12 +801,30 @@ static const zend_function_entry class_OCICollection_methods[] = {
|
||||||
|
|
||||||
static void register_oci8_symbols(int module_number)
|
static void register_oci8_symbols(int module_number)
|
||||||
{
|
{
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "oci_new_connect", 1);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "ocinlogon", 1);
|
zend_string *attribute_name_SensitiveParameter_oci_new_connect_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "oci_connect", 1);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "oci_new_connect", sizeof("oci_new_connect") - 1), 1, attribute_name_SensitiveParameter_oci_new_connect_arg1, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "ocilogon", 1);
|
zend_string_release(attribute_name_SensitiveParameter_oci_new_connect_arg1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "oci_pconnect", 1);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "ociplogon", 1);
|
zend_string *attribute_name_SensitiveParameter_ocinlogon_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "ocinlogon", sizeof("ocinlogon") - 1), 1, attribute_name_SensitiveParameter_ocinlogon_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ocinlogon_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_oci_connect_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "oci_connect", sizeof("oci_connect") - 1), 1, attribute_name_SensitiveParameter_oci_connect_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_oci_connect_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_ocilogon_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "ocilogon", sizeof("ocilogon") - 1), 1, attribute_name_SensitiveParameter_ocilogon_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ocilogon_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_oci_pconnect_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "oci_pconnect", sizeof("oci_pconnect") - 1), 1, attribute_name_SensitiveParameter_oci_pconnect_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_oci_pconnect_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_ociplogon_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "ociplogon", sizeof("ociplogon") - 1), 1, attribute_name_SensitiveParameter_ociplogon_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ociplogon_arg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static zend_class_entry *register_class_OCILob(void)
|
static zend_class_entry *register_class_OCILob(void)
|
||||||
|
|
|
@ -70,16 +70,14 @@ function odbc_result_all($statement, string $format = ""): int|false {}
|
||||||
function odbc_free_result($statement): bool {}
|
function odbc_free_result($statement): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @return resource|false
|
* @return resource|false
|
||||||
*/
|
*/
|
||||||
function odbc_connect(string $dsn, string $user, string $password, int $cursor_option = SQL_CUR_USE_DRIVER) {}
|
function odbc_connect(string $dsn, string $user, #[\SensitiveParameter] string $password, int $cursor_option = SQL_CUR_USE_DRIVER) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @return resource|false
|
* @return resource|false
|
||||||
*/
|
*/
|
||||||
function odbc_pconnect(string $dsn, string $user, string $password, int $cursor_option = SQL_CUR_USE_DRIVER) {}
|
function odbc_pconnect(string $dsn, string $user, #[\SensitiveParameter] string $password, int $cursor_option = SQL_CUR_USE_DRIVER) {}
|
||||||
|
|
||||||
/** @param resource $odbc */
|
/** @param resource $odbc */
|
||||||
function odbc_close($odbc): void {}
|
function odbc_close($odbc): void {}
|
||||||
|
|
12
ext/odbc/odbc_arginfo.h
generated
12
ext/odbc/odbc_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 66b702c6f84c0ae63c8aa53c8a667324a71651a0 */
|
* Stub hash: 35ace4a5907342f2f2c6960cc27e119d7e5fb8f3 */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_close_all, 0, 0, IS_VOID, 0)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_close_all, 0, 0, IS_VOID, 0)
|
||||||
ZEND_END_ARG_INFO()
|
ZEND_END_ARG_INFO()
|
||||||
|
@ -394,6 +394,12 @@ static const zend_function_entry ext_functions[] = {
|
||||||
|
|
||||||
static void register_odbc_symbols(int module_number)
|
static void register_odbc_symbols(int module_number)
|
||||||
{
|
{
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "odbc_connect", 2);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "odbc_pconnect", 2);
|
zend_string *attribute_name_SensitiveParameter_odbc_connect_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "odbc_connect", sizeof("odbc_connect") - 1), 2, attribute_name_SensitiveParameter_odbc_connect_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_odbc_connect_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_odbc_pconnect_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "odbc_pconnect", sizeof("odbc_pconnect") - 1), 2, attribute_name_SensitiveParameter_odbc_pconnect_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_odbc_pconnect_arg2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,9 +35,8 @@ function openssl_x509_fingerprint(OpenSSLCertificate|string $certificate, string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_x509_check_private_key(OpenSSLCertificate|string $certificate, $private_key): bool {}
|
function openssl_x509_check_private_key(OpenSSLCertificate|string $certificate, #[\SensitiveParameter] $private_key): bool {}
|
||||||
|
|
||||||
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key */
|
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key */
|
||||||
function openssl_x509_verify(OpenSSLCertificate|string $certificate, $public_key): int {}
|
function openssl_x509_verify(OpenSSLCertificate|string $certificate, $public_key): int {}
|
||||||
|
@ -57,24 +56,19 @@ function openssl_x509_free(OpenSSLCertificate $certificate): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
* @sensitive-param $passphrase
|
|
||||||
*/
|
*/
|
||||||
function openssl_pkcs12_export_to_file(OpenSSLCertificate|string $certificate, string $output_filename, $private_key, string $passphrase, array $options = []): bool {}
|
function openssl_pkcs12_export_to_file(OpenSSLCertificate|string $certificate, string $output_filename, #[\SensitiveParameter] $private_key, #[\SensitiveParameter] string $passphrase, array $options = []): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $output
|
* @param string $output
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
* @sensitive-param $passphrase
|
|
||||||
*/
|
*/
|
||||||
function openssl_pkcs12_export(OpenSSLCertificate|string $certificate, &$output, $private_key, string $passphrase, array $options = []): bool {}
|
function openssl_pkcs12_export(OpenSSLCertificate|string $certificate, &$output, #[\SensitiveParameter] $private_key, #[\SensitiveParameter] string $passphrase, array $options = []): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array $certificates
|
* @param array $certificates
|
||||||
* @sensitive-param $passphrase
|
|
||||||
*/
|
*/
|
||||||
function openssl_pkcs12_read(string $pkcs12, &$certificates, string $passphrase): bool {}
|
function openssl_pkcs12_read(string $pkcs12, &$certificates, #[\SensitiveParameter] string $passphrase): bool {}
|
||||||
|
|
||||||
function openssl_csr_export_to_file(OpenSSLCertificateSigningRequest|string $csr, string $output_filename, bool $no_text = true): bool {}
|
function openssl_csr_export_to_file(OpenSSLCertificateSigningRequest|string $csr, string $output_filename, bool $no_text = true): bool {}
|
||||||
|
|
||||||
|
@ -83,15 +77,13 @@ function openssl_csr_export(OpenSSLCertificateSigningRequest|string $csr, &$outp
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_csr_sign(OpenSSLCertificateSigningRequest|string $csr, OpenSSLCertificate|string|null $ca_certificate, $private_key, int $days, ?array $options = null, int $serial = 0): OpenSSLCertificate|false {}
|
function openssl_csr_sign(OpenSSLCertificateSigningRequest|string $csr, OpenSSLCertificate|string|null $ca_certificate, #[\SensitiveParameter] $private_key, int $days, ?array $options = null, int $serial = 0): OpenSSLCertificate|false {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey $private_key
|
* @param OpenSSLAsymmetricKey $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_csr_new(array $distinguished_names, &$private_key, ?array $options = null, ?array $extra_attributes = null): OpenSSLCertificateSigningRequest|false {}
|
function openssl_csr_new(array $distinguished_names, #[\SensitiveParameter] &$private_key, ?array $options = null, ?array $extra_attributes = null): OpenSSLCertificateSigningRequest|false {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<string, string|array>|false
|
* @return array<string, string|array>|false
|
||||||
|
@ -105,18 +97,14 @@ function openssl_pkey_new(?array $options = null): OpenSSLAsymmetricKey|false {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $key
|
||||||
* @sensitive-param $key
|
|
||||||
* @sensitive-param $passphrase
|
|
||||||
*/
|
*/
|
||||||
function openssl_pkey_export_to_file($key, string $output_filename, ?string $passphrase = null, ?array $options = null): bool {}
|
function openssl_pkey_export_to_file(#[\SensitiveParameter] $key, string $output_filename, #[\SensitiveParameter] ?string $passphrase = null, ?array $options = null): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $key
|
||||||
* @param string $output
|
* @param string $output
|
||||||
* @sensitive-param $key
|
|
||||||
* @sensitive-param $passphrase
|
|
||||||
*/
|
*/
|
||||||
function openssl_pkey_export($key, &$output, ?string $passphrase = null, ?array $options = null): bool {}
|
function openssl_pkey_export(#[\SensitiveParameter] $key, &$output, #[\SensitiveParameter] ?string $passphrase = null, ?array $options = null): bool {}
|
||||||
|
|
||||||
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key */
|
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key */
|
||||||
function openssl_pkey_get_public($public_key): OpenSSLAsymmetricKey|false {}
|
function openssl_pkey_get_public($public_key): OpenSSLAsymmetricKey|false {}
|
||||||
|
@ -140,18 +128,14 @@ function openssl_free_key(OpenSSLAsymmetricKey $key): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
* @sensitive-param $passphrase
|
|
||||||
*/
|
*/
|
||||||
function openssl_pkey_get_private($private_key, ?string $passphrase = null): OpenSSLAsymmetricKey|false {}
|
function openssl_pkey_get_private(#[\SensitiveParameter] $private_key, #[\SensitiveParameter] ?string $passphrase = null): OpenSSLAsymmetricKey|false {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
* @sensitive-param $passphrase
|
|
||||||
* @alias openssl_pkey_get_private
|
* @alias openssl_pkey_get_private
|
||||||
*/
|
*/
|
||||||
function openssl_get_privatekey($private_key, ?string $passphrase = null): OpenSSLAsymmetricKey|false {}
|
function openssl_get_privatekey(#[\SensitiveParameter] $private_key, #[\SensitiveParameter] ?string $passphrase = null): OpenSSLAsymmetricKey|false {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<string, int|string|array>|false
|
* @return array<string, int|string|array>|false
|
||||||
|
@ -159,8 +143,7 @@ function openssl_get_privatekey($private_key, ?string $passphrase = null): OpenS
|
||||||
*/
|
*/
|
||||||
function openssl_pkey_get_details(OpenSSLAsymmetricKey $key): array|false {}
|
function openssl_pkey_get_details(OpenSSLAsymmetricKey $key): array|false {}
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
function openssl_pbkdf2(#[\SensitiveParameter] string $password, string $salt, int $key_length, int $iterations, string $digest_algo = "sha1"): string|false {}
|
||||||
function openssl_pbkdf2(string $password, string $salt, int $key_length, int $iterations, string $digest_algo = "sha1"): string|false {}
|
|
||||||
|
|
||||||
function openssl_pkcs7_verify(string $input_filename, int $flags, ?string $signers_certificates_filename = null, array $ca_info = [], ?string $untrusted_certificates_filename = null, ?string $content = null, ?string $output_filename = null): bool|int {}
|
function openssl_pkcs7_verify(string $input_filename, int $flags, ?string $signers_certificates_filename = null, array $ca_info = [], ?string $untrusted_certificates_filename = null, ?string $content = null, ?string $output_filename = null): bool|int {}
|
||||||
|
|
||||||
|
@ -169,17 +152,14 @@ function openssl_pkcs7_encrypt(string $input_filename, string $output_filename,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_pkcs7_sign(string $input_filename, string $output_filename, OpenSSLCertificate|string $certificate, $private_key, ?array $headers, int $flags = PKCS7_DETACHED, ?string $untrusted_certificates_filename = null): bool {}
|
function openssl_pkcs7_sign(string $input_filename, string $output_filename, OpenSSLCertificate|string $certificate, #[\SensitiveParameter] $private_key, ?array $headers, int $flags = PKCS7_DETACHED, ?string $untrusted_certificates_filename = null): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLCertificate|string $certificate
|
* @param OpenSSLCertificate|string $certificate
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null $private_key
|
||||||
* @sensitive-param $certificate
|
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_pkcs7_decrypt(string $input_filename, string $output_filename, $certificate, $private_key = null): bool {}
|
function openssl_pkcs7_decrypt(string $input_filename, string $output_filename, #[\SensitiveParameter] $certificate, #[\SensitiveParameter] $private_key = null): bool {}
|
||||||
|
|
||||||
/** @param array $certificates */
|
/** @param array $certificates */
|
||||||
function openssl_pkcs7_read(string $data, &$certificates): bool {}
|
function openssl_pkcs7_read(string $data, &$certificates): bool {}
|
||||||
|
@ -191,17 +171,14 @@ function openssl_cms_encrypt(string $input_filename, string $output_filename, $c
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_cms_sign(string $input_filename, string $output_filename, OpenSSLCertificate|string $certificate, $private_key, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, ?string $untrusted_certificates_filename = null): bool {}
|
function openssl_cms_sign(string $input_filename, string $output_filename, OpenSSLCertificate|string $certificate, #[\SensitiveParameter] $private_key, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, ?string $untrusted_certificates_filename = null): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLCertificate|string $certificate
|
* @param OpenSSLCertificate|string $certificate
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null $private_key
|
||||||
* @sensitive-param $certificate
|
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_cms_decrypt(string $input_filename, string $output_filename, $certificate, $private_key = null, int $encoding = OPENSSL_ENCODING_SMIME): bool {}
|
function openssl_cms_decrypt(string $input_filename, string $output_filename, #[\SensitiveParameter] $certificate, #[\SensitiveParameter] $private_key = null, int $encoding = OPENSSL_ENCODING_SMIME): bool {}
|
||||||
|
|
||||||
/** @param array $certificates */
|
/** @param array $certificates */
|
||||||
function openssl_cms_read(string $input_filename, &$certificates): bool {}
|
function openssl_cms_read(string $input_filename, &$certificates): bool {}
|
||||||
|
@ -209,41 +186,34 @@ function openssl_cms_read(string $input_filename, &$certificates): bool {}
|
||||||
/**
|
/**
|
||||||
* @param string $encrypted_data
|
* @param string $encrypted_data
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $data
|
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_private_encrypt(string $data, &$encrypted_data, $private_key, int $padding = OPENSSL_PKCS1_PADDING): bool {}
|
function openssl_private_encrypt(#[\SensitiveParameter] string $data, &$encrypted_data, #[\SensitiveParameter] $private_key, int $padding = OPENSSL_PKCS1_PADDING): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $decrypted_data
|
* @param string $decrypted_data
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $decrypted_data
|
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_private_decrypt(string $data, &$decrypted_data, $private_key, int $padding = OPENSSL_PKCS1_PADDING): bool {}
|
function openssl_private_decrypt(string $data, #[\SensitiveParameter] &$decrypted_data, #[\SensitiveParameter] $private_key, int $padding = OPENSSL_PKCS1_PADDING): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $encrypted_data
|
* @param string $encrypted_data
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
|
||||||
* @sensitive-param $data
|
|
||||||
*/
|
*/
|
||||||
function openssl_public_encrypt(string $data, &$encrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): bool {}
|
function openssl_public_encrypt(#[\SensitiveParameter] string $data, &$encrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $decrypted_data
|
* @param string $decrypted_data
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
|
||||||
* @sensitive-param $decrypted_data
|
|
||||||
*/
|
*/
|
||||||
function openssl_public_decrypt(string $data, &$decrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): bool {}
|
function openssl_public_decrypt(string $data, #[\SensitiveParameter] &$decrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): bool {}
|
||||||
|
|
||||||
function openssl_error_string(): string|false {}
|
function openssl_error_string(): string|false {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $signature
|
* @param string $signature
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_sign(string $data, &$signature, $private_key, string|int $algorithm = OPENSSL_ALGO_SHA1): bool {}
|
function openssl_sign(string $data, &$signature, #[\SensitiveParameter] $private_key, string|int $algorithm = OPENSSL_ALGO_SHA1): bool {}
|
||||||
|
|
||||||
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key */
|
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key */
|
||||||
function openssl_verify(string $data, string $signature, $public_key, string|int $algorithm = OPENSSL_ALGO_SHA1): int|false {}
|
function openssl_verify(string $data, string $signature, $public_key, string|int $algorithm = OPENSSL_ALGO_SHA1): int|false {}
|
||||||
|
@ -252,17 +222,14 @@ function openssl_verify(string $data, string $signature, $public_key, string|int
|
||||||
* @param string $sealed_data
|
* @param string $sealed_data
|
||||||
* @param array $encrypted_keys
|
* @param array $encrypted_keys
|
||||||
* @param string $iv
|
* @param string $iv
|
||||||
* @sensitive-param $data
|
|
||||||
*/
|
*/
|
||||||
function openssl_seal(string $data, &$sealed_data, &$encrypted_keys, array $public_key, string $cipher_algo, &$iv = null): int|false {}
|
function openssl_seal(#[\SensitiveParameter] string $data, &$sealed_data, &$encrypted_keys, array $public_key, string $cipher_algo, &$iv = null): int|false {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $output
|
* @param string $output
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $output
|
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_open(string $data, &$output, string $encrypted_key, $private_key, string $cipher_algo, ?string $iv = null): bool {}
|
function openssl_open(string $data, #[\SensitiveParameter] &$output, string $encrypted_key, #[\SensitiveParameter] $private_key, string $cipher_algo, ?string $iv = null): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<int, string>
|
* @return array<int, string>
|
||||||
|
@ -288,33 +255,25 @@ function openssl_digest(string $data, string $digest_algo, bool $binary = false)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $tag
|
* @param string $tag
|
||||||
* @sensitive-param $data
|
|
||||||
* @sensitive-param $passphrase
|
|
||||||
*/
|
*/
|
||||||
function openssl_encrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", &$tag = null, string $aad = "", int $tag_length = 16): string|false {}
|
function openssl_encrypt(#[\SensitiveParameter] string $data, string $cipher_algo, #[\SensitiveParameter] string $passphrase, int $options = 0, string $iv = "", &$tag = null, string $aad = "", int $tag_length = 16): string|false {}
|
||||||
|
|
||||||
/**
|
function openssl_decrypt(string $data, string $cipher_algo, #[\SensitiveParameter] string $passphrase, int $options = 0, string $iv = "", ?string $tag = null, string $aad = ""): string|false {}
|
||||||
* @sensitive-param $passphrase
|
|
||||||
*/
|
|
||||||
function openssl_decrypt(string $data, string $cipher_algo, string $passphrase, int $options = 0, string $iv = "", ?string $tag = null, string $aad = ""): string|false {}
|
|
||||||
|
|
||||||
function openssl_cipher_iv_length(string $cipher_algo): int|false {}
|
function openssl_cipher_iv_length(string $cipher_algo): int|false {}
|
||||||
|
|
||||||
/** @sensitive-param $private_key */
|
function openssl_dh_compute_key(string $public_key, #[\SensitiveParameter] OpenSSLAsymmetricKey $private_key): string|false {}
|
||||||
function openssl_dh_compute_key(string $public_key, OpenSSLAsymmetricKey $private_key): string|false {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
|
||||||
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
|
||||||
* @sensitive-param $private_key
|
|
||||||
*/
|
*/
|
||||||
function openssl_pkey_derive($public_key, $private_key, int $key_length = 0): string|false {}
|
function openssl_pkey_derive($public_key, #[\SensitiveParameter] $private_key, int $key_length = 0): string|false {}
|
||||||
|
|
||||||
/** @param bool $strong_result */
|
/** @param bool $strong_result */
|
||||||
function openssl_random_pseudo_bytes(int $length, &$strong_result = null): string {}
|
function openssl_random_pseudo_bytes(int $length, &$strong_result = null): string {}
|
||||||
|
|
||||||
/** @sensitive-param $private_key */
|
function openssl_spki_new(#[\SensitiveParameter] OpenSSLAsymmetricKey $private_key, string $challenge, int $digest_algo = OPENSSL_ALGO_MD5): string|false {}
|
||||||
function openssl_spki_new(OpenSSLAsymmetricKey $private_key, string $challenge, int $digest_algo = OPENSSL_ALGO_MD5): string|false {}
|
|
||||||
|
|
||||||
function openssl_spki_verify(string $spki): bool {}
|
function openssl_spki_verify(string $spki): bool {}
|
||||||
|
|
||||||
|
|
197
ext/openssl/openssl_arginfo.h
generated
197
ext/openssl/openssl_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 9e75d730683f247a5787fe7d493039b7e4fa4399 */
|
* Stub hash: dd3aebb7712f9b77851a2fdb7a91f9d46b4b42cf */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_export_to_file, 0, 2, _IS_BOOL, 0)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_export_to_file, 0, 2, _IS_BOOL, 0)
|
||||||
ZEND_ARG_OBJ_TYPE_MASK(0, certificate, OpenSSLCertificate, MAY_BE_STRING, NULL)
|
ZEND_ARG_OBJ_TYPE_MASK(0, certificate, OpenSSLCertificate, MAY_BE_STRING, NULL)
|
||||||
|
@ -536,45 +536,162 @@ static const zend_function_entry class_OpenSSLAsymmetricKey_methods[] = {
|
||||||
|
|
||||||
static void register_openssl_symbols(int module_number)
|
static void register_openssl_symbols(int module_number)
|
||||||
{
|
{
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_x509_check_private_key", 1);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs12_export_to_file", 2);
|
zend_string *attribute_name_SensitiveParameter_openssl_x509_check_private_key_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs12_export_to_file", 3);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_x509_check_private_key", sizeof("openssl_x509_check_private_key") - 1), 1, attribute_name_SensitiveParameter_openssl_x509_check_private_key_arg1, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs12_export", 2);
|
zend_string_release(attribute_name_SensitiveParameter_openssl_x509_check_private_key_arg1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs12_export", 3);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs12_read", 2);
|
zend_string *attribute_name_SensitiveParameter_openssl_pkcs12_export_to_file_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_csr_sign", 2);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs12_export_to_file", sizeof("openssl_pkcs12_export_to_file") - 1), 2, attribute_name_SensitiveParameter_openssl_pkcs12_export_to_file_arg2, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_csr_new", 1);
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkcs12_export_to_file_arg2);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_export_to_file", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_export_to_file", 2);
|
zend_string *attribute_name_SensitiveParameter_openssl_pkcs12_export_to_file_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_export", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs12_export_to_file", sizeof("openssl_pkcs12_export_to_file") - 1), 3, attribute_name_SensitiveParameter_openssl_pkcs12_export_to_file_arg3, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_export", 2);
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkcs12_export_to_file_arg3);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_get_private", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_get_private", 1);
|
zend_string *attribute_name_SensitiveParameter_openssl_pkcs12_export_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_get_privatekey", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs12_export", sizeof("openssl_pkcs12_export") - 1), 2, attribute_name_SensitiveParameter_openssl_pkcs12_export_arg2, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_get_privatekey", 1);
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkcs12_export_arg2);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pbkdf2", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs7_sign", 3);
|
zend_string *attribute_name_SensitiveParameter_openssl_pkcs12_export_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs7_decrypt", 2);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs12_export", sizeof("openssl_pkcs12_export") - 1), 3, attribute_name_SensitiveParameter_openssl_pkcs12_export_arg3, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs7_decrypt", 3);
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkcs12_export_arg3);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_cms_sign", 3);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_cms_decrypt", 2);
|
zend_string *attribute_name_SensitiveParameter_openssl_pkcs12_read_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_cms_decrypt", 3);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs12_read", sizeof("openssl_pkcs12_read") - 1), 2, attribute_name_SensitiveParameter_openssl_pkcs12_read_arg2, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_private_encrypt", 0);
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkcs12_read_arg2);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_private_encrypt", 2);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_private_decrypt", 1);
|
zend_string *attribute_name_SensitiveParameter_openssl_csr_sign_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_private_decrypt", 2);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_csr_sign", sizeof("openssl_csr_sign") - 1), 2, attribute_name_SensitiveParameter_openssl_csr_sign_arg2, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_public_encrypt", 0);
|
zend_string_release(attribute_name_SensitiveParameter_openssl_csr_sign_arg2);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_public_decrypt", 1);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_sign", 2);
|
zend_string *attribute_name_SensitiveParameter_openssl_csr_new_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_seal", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_csr_new", sizeof("openssl_csr_new") - 1), 1, attribute_name_SensitiveParameter_openssl_csr_new_arg1, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_open", 1);
|
zend_string_release(attribute_name_SensitiveParameter_openssl_csr_new_arg1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_open", 3);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_encrypt", 0);
|
zend_string *attribute_name_SensitiveParameter_openssl_pkey_export_to_file_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_encrypt", 2);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_export_to_file", sizeof("openssl_pkey_export_to_file") - 1), 0, attribute_name_SensitiveParameter_openssl_pkey_export_to_file_arg0, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_decrypt", 2);
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkey_export_to_file_arg0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_dh_compute_key", 1);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_derive", 1);
|
zend_string *attribute_name_SensitiveParameter_openssl_pkey_export_to_file_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_spki_new", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_export_to_file", sizeof("openssl_pkey_export_to_file") - 1), 2, attribute_name_SensitiveParameter_openssl_pkey_export_to_file_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkey_export_to_file_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_pkey_export_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_export", sizeof("openssl_pkey_export") - 1), 0, attribute_name_SensitiveParameter_openssl_pkey_export_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkey_export_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_pkey_export_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_export", sizeof("openssl_pkey_export") - 1), 2, attribute_name_SensitiveParameter_openssl_pkey_export_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkey_export_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_pkey_get_private_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_get_private", sizeof("openssl_pkey_get_private") - 1), 0, attribute_name_SensitiveParameter_openssl_pkey_get_private_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkey_get_private_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_pkey_get_private_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_get_private", sizeof("openssl_pkey_get_private") - 1), 1, attribute_name_SensitiveParameter_openssl_pkey_get_private_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkey_get_private_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_get_privatekey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_get_privatekey", sizeof("openssl_get_privatekey") - 1), 0, attribute_name_SensitiveParameter_openssl_get_privatekey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_get_privatekey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_get_privatekey_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_get_privatekey", sizeof("openssl_get_privatekey") - 1), 1, attribute_name_SensitiveParameter_openssl_get_privatekey_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_get_privatekey_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_pbkdf2_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pbkdf2", sizeof("openssl_pbkdf2") - 1), 0, attribute_name_SensitiveParameter_openssl_pbkdf2_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pbkdf2_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_pkcs7_sign_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs7_sign", sizeof("openssl_pkcs7_sign") - 1), 3, attribute_name_SensitiveParameter_openssl_pkcs7_sign_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkcs7_sign_arg3);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_pkcs7_decrypt_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs7_decrypt", sizeof("openssl_pkcs7_decrypt") - 1), 2, attribute_name_SensitiveParameter_openssl_pkcs7_decrypt_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkcs7_decrypt_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_pkcs7_decrypt_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkcs7_decrypt", sizeof("openssl_pkcs7_decrypt") - 1), 3, attribute_name_SensitiveParameter_openssl_pkcs7_decrypt_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkcs7_decrypt_arg3);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_cms_sign_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_cms_sign", sizeof("openssl_cms_sign") - 1), 3, attribute_name_SensitiveParameter_openssl_cms_sign_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_cms_sign_arg3);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_cms_decrypt_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_cms_decrypt", sizeof("openssl_cms_decrypt") - 1), 2, attribute_name_SensitiveParameter_openssl_cms_decrypt_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_cms_decrypt_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_cms_decrypt_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_cms_decrypt", sizeof("openssl_cms_decrypt") - 1), 3, attribute_name_SensitiveParameter_openssl_cms_decrypt_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_cms_decrypt_arg3);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_private_encrypt_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_private_encrypt", sizeof("openssl_private_encrypt") - 1), 0, attribute_name_SensitiveParameter_openssl_private_encrypt_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_private_encrypt_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_private_encrypt_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_private_encrypt", sizeof("openssl_private_encrypt") - 1), 2, attribute_name_SensitiveParameter_openssl_private_encrypt_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_private_encrypt_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_private_decrypt_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_private_decrypt", sizeof("openssl_private_decrypt") - 1), 1, attribute_name_SensitiveParameter_openssl_private_decrypt_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_private_decrypt_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_private_decrypt_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_private_decrypt", sizeof("openssl_private_decrypt") - 1), 2, attribute_name_SensitiveParameter_openssl_private_decrypt_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_private_decrypt_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_public_encrypt_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_public_encrypt", sizeof("openssl_public_encrypt") - 1), 0, attribute_name_SensitiveParameter_openssl_public_encrypt_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_public_encrypt_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_public_decrypt_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_public_decrypt", sizeof("openssl_public_decrypt") - 1), 1, attribute_name_SensitiveParameter_openssl_public_decrypt_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_public_decrypt_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_sign_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_sign", sizeof("openssl_sign") - 1), 2, attribute_name_SensitiveParameter_openssl_sign_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_sign_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_seal_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_seal", sizeof("openssl_seal") - 1), 0, attribute_name_SensitiveParameter_openssl_seal_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_seal_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_open_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_open", sizeof("openssl_open") - 1), 1, attribute_name_SensitiveParameter_openssl_open_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_open_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_open_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_open", sizeof("openssl_open") - 1), 3, attribute_name_SensitiveParameter_openssl_open_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_open_arg3);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_encrypt_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_encrypt", sizeof("openssl_encrypt") - 1), 0, attribute_name_SensitiveParameter_openssl_encrypt_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_encrypt_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_encrypt_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_encrypt", sizeof("openssl_encrypt") - 1), 2, attribute_name_SensitiveParameter_openssl_encrypt_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_encrypt_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_decrypt_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_decrypt", sizeof("openssl_decrypt") - 1), 2, attribute_name_SensitiveParameter_openssl_decrypt_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_decrypt_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_dh_compute_key_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_dh_compute_key", sizeof("openssl_dh_compute_key") - 1), 1, attribute_name_SensitiveParameter_openssl_dh_compute_key_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_dh_compute_key_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_pkey_derive_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_pkey_derive", sizeof("openssl_pkey_derive") - 1), 1, attribute_name_SensitiveParameter_openssl_pkey_derive_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_pkey_derive_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_openssl_spki_new_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "openssl_spki_new", sizeof("openssl_spki_new") - 1), 0, attribute_name_SensitiveParameter_openssl_spki_new_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_openssl_spki_new_arg0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static zend_class_entry *register_class_OpenSSLCertificate(void)
|
static zend_class_entry *register_class_OpenSSLCertificate(void)
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
/** @not-serializable */
|
/** @not-serializable */
|
||||||
class PDO
|
class PDO
|
||||||
{
|
{
|
||||||
/** @sensitive-param $password */
|
public function __construct(string $dsn, ?string $username = null, #[\SensitiveParameter] ?string $password = null, ?array $options = null) {}
|
||||||
public function __construct(string $dsn, ?string $username = null, ?string $password = null, ?array $options = null) {}
|
|
||||||
|
|
||||||
/** @tentative-return-type */
|
/** @tentative-return-type */
|
||||||
public function beginTransaction(): bool {}
|
public function beginTransaction(): bool {}
|
||||||
|
|
7
ext/pdo/pdo_dbh_arginfo.h
generated
7
ext/pdo/pdo_dbh_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 5d26f6875ff2704506a9f94b171adbe13aa40483 */
|
* Stub hash: 396898ebbc520f48eb80a111e19fecf6d07ce241 */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO___construct, 0, 0, 1)
|
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO___construct, 0, 0, 1)
|
||||||
ZEND_ARG_TYPE_INFO(0, dsn, IS_STRING, 0)
|
ZEND_ARG_TYPE_INFO(0, dsn, IS_STRING, 0)
|
||||||
|
@ -103,7 +103,10 @@ static zend_class_entry *register_class_PDO(void)
|
||||||
class_entry = zend_register_internal_class_ex(&ce, NULL);
|
class_entry = zend_register_internal_class_ex(&ce, NULL);
|
||||||
class_entry->ce_flags |= ZEND_ACC_NOT_SERIALIZABLE;
|
class_entry->ce_flags |= ZEND_ACC_NOT_SERIALIZABLE;
|
||||||
|
|
||||||
zend_mark_function_parameter_as_sensitive(&class_entry->function_table, "__construct", 2);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_PDO___construct_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "__construct", sizeof("__construct") - 1), 2, attribute_name_SensitiveParameter_PDO___construct_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_PDO___construct_arg2);
|
||||||
|
|
||||||
return class_entry;
|
return class_entry;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,92 +5,58 @@
|
||||||
function sodium_crypto_aead_aes256gcm_is_available(): bool {}
|
function sodium_crypto_aead_aes256gcm_is_available(): bool {}
|
||||||
|
|
||||||
#ifdef HAVE_AESGCM
|
#ifdef HAVE_AESGCM
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_aead_aes256gcm_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string|false {}
|
||||||
function sodium_crypto_aead_aes256gcm_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string|false {}
|
|
||||||
|
|
||||||
/**
|
function sodium_crypto_aead_aes256gcm_encrypt(#[\SensitiveParameter] string $message, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string {}
|
||||||
* @sensitive-param $message
|
|
||||||
* @sensitive-param $key
|
|
||||||
*/
|
|
||||||
function sodium_crypto_aead_aes256gcm_encrypt(string $message, string $additional_data, string $nonce, string $key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_aead_aes256gcm_keygen(): string {}
|
function sodium_crypto_aead_aes256gcm_keygen(): string {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_aead_chacha20poly1305_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string|false {}
|
||||||
function sodium_crypto_aead_chacha20poly1305_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string|false {}
|
|
||||||
|
|
||||||
/**
|
function sodium_crypto_aead_chacha20poly1305_encrypt(#[\SensitiveParameter] string $message, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string {}
|
||||||
* @sensitive-param $message
|
|
||||||
* @sensitive-param $key
|
|
||||||
*/
|
|
||||||
function sodium_crypto_aead_chacha20poly1305_encrypt(string $message, string $additional_data, string $nonce, string $key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_aead_chacha20poly1305_keygen(): string {}
|
function sodium_crypto_aead_chacha20poly1305_keygen(): string {}
|
||||||
|
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_aead_chacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string|false {}
|
||||||
function sodium_crypto_aead_chacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string|false {}
|
|
||||||
|
|
||||||
/**
|
function sodium_crypto_aead_chacha20poly1305_ietf_encrypt(#[\SensitiveParameter] string $message, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string {}
|
||||||
* @sensitive-param $message
|
|
||||||
* @sensitive-param $key
|
|
||||||
*/
|
|
||||||
function sodium_crypto_aead_chacha20poly1305_ietf_encrypt(string $message, string $additional_data, string $nonce, string $key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_aead_chacha20poly1305_ietf_keygen(): string {}
|
function sodium_crypto_aead_chacha20poly1305_ietf_keygen(): string {}
|
||||||
|
|
||||||
#ifdef crypto_aead_xchacha20poly1305_IETF_NPUBBYTES
|
#ifdef crypto_aead_xchacha20poly1305_IETF_NPUBBYTES
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string|false {}
|
||||||
function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string|false {}
|
|
||||||
|
|
||||||
function sodium_crypto_aead_xchacha20poly1305_ietf_keygen(): string {}
|
function sodium_crypto_aead_xchacha20poly1305_ietf_keygen(): string {}
|
||||||
|
|
||||||
/**
|
function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt(#[\SensitiveParameter] string $message, string $additional_data, string $nonce, #[\SensitiveParameter] string $key): string {}
|
||||||
* @sensitive-param $message
|
|
||||||
* @sensitive-param $key
|
|
||||||
*/
|
|
||||||
function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt(string $message, string $additional_data, string $nonce, string $key): string {}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_auth(string $message, #[\SensitiveParameter] string $key): string {}
|
||||||
function sodium_crypto_auth(string $message, string $key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_auth_keygen(): string {}
|
function sodium_crypto_auth_keygen(): string {}
|
||||||
|
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_auth_verify(string $mac, string $message, #[\SensitiveParameter] string $key): bool {}
|
||||||
function sodium_crypto_auth_verify(string $mac, string $message, string $key): bool {}
|
|
||||||
|
|
||||||
/**
|
function sodium_crypto_box(#[\SensitiveParameter] string $message, string $nonce, #[\SensitiveParameter] string $key_pair): string {}
|
||||||
* @sensitive-param $message
|
|
||||||
* @sensitive-param $key_pair
|
|
||||||
*/
|
|
||||||
function sodium_crypto_box(string $message, string $nonce, string $key_pair): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_box_keypair(): string {}
|
function sodium_crypto_box_keypair(): string {}
|
||||||
|
|
||||||
/** @sensitive-param $seed */
|
function sodium_crypto_box_seed_keypair(#[\SensitiveParameter] string $seed): string {}
|
||||||
function sodium_crypto_box_seed_keypair(string $seed): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $secret_key */
|
function sodium_crypto_box_keypair_from_secretkey_and_publickey(#[\SensitiveParameter] string $secret_key, string $public_key): string {}
|
||||||
function sodium_crypto_box_keypair_from_secretkey_and_publickey(string $secret_key, string $public_key): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $key_pair */
|
function sodium_crypto_box_open(string $ciphertext, string $nonce, #[\SensitiveParameter] string $key_pair): string|false {}
|
||||||
function sodium_crypto_box_open(string $ciphertext, string $nonce, string $key_pair): string|false {}
|
|
||||||
|
|
||||||
/** @sensitive-param $key_pair */
|
function sodium_crypto_box_publickey(#[\SensitiveParameter] string $key_pair): string {}
|
||||||
function sodium_crypto_box_publickey(string $key_pair): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $secret_key */
|
function sodium_crypto_box_publickey_from_secretkey(#[\SensitiveParameter] string $secret_key): string {}
|
||||||
function sodium_crypto_box_publickey_from_secretkey(string $secret_key): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $message */
|
function sodium_crypto_box_seal(#[\SensitiveParameter] string $message, string $public_key): string {}
|
||||||
function sodium_crypto_box_seal(string $message, string $public_key): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $key_pair */
|
function sodium_crypto_box_seal_open(string $ciphertext, #[\SensitiveParameter] string $key_pair): string|false {}
|
||||||
function sodium_crypto_box_seal_open(string $ciphertext, string $key_pair): string|false {}
|
|
||||||
|
|
||||||
/** @sensitive-param $key_pair */
|
function sodium_crypto_box_secretkey(#[\SensitiveParameter] string $key_pair): string {}
|
||||||
function sodium_crypto_box_secretkey(string $key_pair): string {}
|
|
||||||
|
|
||||||
#ifdef crypto_core_ristretto255_HASHBYTES
|
#ifdef crypto_core_ristretto255_HASHBYTES
|
||||||
function sodium_crypto_core_ristretto255_add(string $p, string $q): string {}
|
function sodium_crypto_core_ristretto255_add(string $p, string $q): string {}
|
||||||
|
@ -122,54 +88,43 @@ function sodium_crypto_core_ristretto255_sub(string $p, string $q): string {}
|
||||||
|
|
||||||
function sodium_crypto_kx_keypair(): string {}
|
function sodium_crypto_kx_keypair(): string {}
|
||||||
|
|
||||||
/** @sensitive-param $key_pair */
|
function sodium_crypto_kx_publickey(#[\SensitiveParameter] string $key_pair): string {}
|
||||||
function sodium_crypto_kx_publickey(string $key_pair): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $key_pair */
|
function sodium_crypto_kx_secretkey(#[\SensitiveParameter] string $key_pair): string {}
|
||||||
function sodium_crypto_kx_secretkey(string $key_pair): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $seed */
|
function sodium_crypto_kx_seed_keypair(#[\SensitiveParameter] string $seed): string {}
|
||||||
function sodium_crypto_kx_seed_keypair(string $seed): string {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $client_key_pair
|
|
||||||
* @return array<int, string>
|
* @return array<int, string>
|
||||||
*/
|
*/
|
||||||
function sodium_crypto_kx_client_session_keys(string $client_key_pair, string $server_key): array {}
|
function sodium_crypto_kx_client_session_keys(#[\SensitiveParameter] string $client_key_pair, string $server_key): array {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $server_key_pair
|
|
||||||
* @return array<int, string>
|
* @return array<int, string>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function sodium_crypto_kx_server_session_keys(string $server_key_pair, string $client_key): array {}
|
function sodium_crypto_kx_server_session_keys(#[\SensitiveParameter] string $server_key_pair, string $client_key): array {}
|
||||||
|
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_generichash(string $message, #[\SensitiveParameter] string $key = "", int $length = SODIUM_CRYPTO_GENERICHASH_BYTES): string {}
|
||||||
function sodium_crypto_generichash(string $message, string $key = "", int $length = SODIUM_CRYPTO_GENERICHASH_BYTES): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_generichash_keygen(): string {}
|
function sodium_crypto_generichash_keygen(): string {}
|
||||||
|
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_generichash_init(#[\SensitiveParameter] string $key = "", int $length = SODIUM_CRYPTO_GENERICHASH_BYTES): string {}
|
||||||
function sodium_crypto_generichash_init(string $key = "", int $length = SODIUM_CRYPTO_GENERICHASH_BYTES): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_generichash_update(string &$state, string $message): true {}
|
function sodium_crypto_generichash_update(string &$state, string $message): true {}
|
||||||
|
|
||||||
function sodium_crypto_generichash_final(string &$state, int $length = SODIUM_CRYPTO_GENERICHASH_BYTES): string {}
|
function sodium_crypto_generichash_final(string &$state, int $length = SODIUM_CRYPTO_GENERICHASH_BYTES): string {}
|
||||||
|
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_kdf_derive_from_key(int $subkey_length, int $subkey_id, string $context, #[\SensitiveParameter] string $key): string {}
|
||||||
function sodium_crypto_kdf_derive_from_key(int $subkey_length, int $subkey_id, string $context, string $key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_kdf_keygen(): string {}
|
function sodium_crypto_kdf_keygen(): string {}
|
||||||
|
|
||||||
#ifdef crypto_pwhash_SALTBYTES
|
#ifdef crypto_pwhash_SALTBYTES
|
||||||
/** @sensitive-param $password */
|
function sodium_crypto_pwhash(int $length, #[\SensitiveParameter] string $password, string $salt, int $opslimit, int $memlimit, int $algo = SODIUM_CRYPTO_PWHASH_ALG_DEFAULT): string {}
|
||||||
function sodium_crypto_pwhash(int $length, string $password, string $salt, int $opslimit, int $memlimit, int $algo = SODIUM_CRYPTO_PWHASH_ALG_DEFAULT): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
function sodium_crypto_pwhash_str(#[\SensitiveParameter] string $password, int $opslimit, int $memlimit): string {}
|
||||||
function sodium_crypto_pwhash_str(string $password, int $opslimit, int $memlimit): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
function sodium_crypto_pwhash_str_verify(string $hash, #[\SensitiveParameter] string $password): bool {}
|
||||||
function sodium_crypto_pwhash_str_verify(string $hash, string $password): bool {}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SODIUM_LIBRARY_VERSION_MAJOR > 9 || (SODIUM_LIBRARY_VERSION_MAJOR == 9 && SODIUM_LIBRARY_VERSION_MINOR >= 6)
|
#if SODIUM_LIBRARY_VERSION_MAJOR > 9 || (SODIUM_LIBRARY_VERSION_MAJOR == 9 && SODIUM_LIBRARY_VERSION_MINOR >= 6)
|
||||||
|
@ -177,14 +132,11 @@ function sodium_crypto_pwhash_str_needs_rehash(string $password, int $opslimit,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef crypto_pwhash_scryptsalsa208sha256_SALTBYTES
|
#ifdef crypto_pwhash_scryptsalsa208sha256_SALTBYTES
|
||||||
/** @sensitive-param $password */
|
function sodium_crypto_pwhash_scryptsalsa208sha256(int $length, #[\SensitiveParameter] string $password, string $salt, int $opslimit, int $memlimit): string {}
|
||||||
function sodium_crypto_pwhash_scryptsalsa208sha256(int $length, string $password, string $salt, int $opslimit, int $memlimit): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
function sodium_crypto_pwhash_scryptsalsa208sha256_str(#[\SensitiveParameter] string $password, int $opslimit, int $memlimit): string {}
|
||||||
function sodium_crypto_pwhash_scryptsalsa208sha256_str(string $password, int $opslimit, int $memlimit): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
function sodium_crypto_pwhash_scryptsalsa208sha256_str_verify(string $hash, #[\SensitiveParameter] string $password): bool {}
|
||||||
function sodium_crypto_pwhash_scryptsalsa208sha256_str_verify(string $hash, string $password): bool {}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
function sodium_crypto_scalarmult(string $n, string $p): string {}
|
function sodium_crypto_scalarmult(string $n, string $p): string {}
|
||||||
|
@ -195,33 +147,23 @@ function sodium_crypto_scalarmult_ristretto255(string $n, string $p): string {}
|
||||||
function sodium_crypto_scalarmult_ristretto255_base(string $n): string {}
|
function sodium_crypto_scalarmult_ristretto255_base(string $n): string {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
function sodium_crypto_secretbox(#[\SensitiveParameter] string $message, string $nonce, #[\SensitiveParameter] string $key): string {}
|
||||||
* @sensitive-param $message
|
|
||||||
* @sensitive-param $key
|
|
||||||
*/
|
|
||||||
function sodium_crypto_secretbox(string $message, string $nonce, string $key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_secretbox_keygen(): string {}
|
function sodium_crypto_secretbox_keygen(): string {}
|
||||||
|
|
||||||
/**
|
function sodium_crypto_secretbox_open(string $ciphertext, string $nonce, #[\SensitiveParameter] string $key): string|false {}
|
||||||
* @sensitive-param $key
|
|
||||||
*/
|
|
||||||
function sodium_crypto_secretbox_open(string $ciphertext, string $nonce, string $key): string|false {}
|
|
||||||
|
|
||||||
#ifdef crypto_secretstream_xchacha20poly1305_ABYTES
|
#ifdef crypto_secretstream_xchacha20poly1305_ABYTES
|
||||||
function sodium_crypto_secretstream_xchacha20poly1305_keygen(): string {}
|
function sodium_crypto_secretstream_xchacha20poly1305_keygen(): string {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $key
|
|
||||||
* @return array<int, string>
|
* @return array<int, string>
|
||||||
*/
|
*/
|
||||||
function sodium_crypto_secretstream_xchacha20poly1305_init_push(string $key): array {}
|
function sodium_crypto_secretstream_xchacha20poly1305_init_push(#[\SensitiveParameter] string $key): array {}
|
||||||
|
|
||||||
/** @sensitive-param $message */
|
function sodium_crypto_secretstream_xchacha20poly1305_push(string &$state, #[\SensitiveParameter] string $message, string $additional_data = "", int $tag = SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_MESSAGE): string {}
|
||||||
function sodium_crypto_secretstream_xchacha20poly1305_push(string &$state, string $message, string $additional_data = "", int $tag = SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_MESSAGE): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_secretstream_xchacha20poly1305_init_pull(string $header, #[\SensitiveParameter] string $key): string {}
|
||||||
function sodium_crypto_secretstream_xchacha20poly1305_init_pull(string $header, string $key): string {}
|
|
||||||
|
|
||||||
/** @return array<int, int|string>|false */
|
/** @return array<int, int|string>|false */
|
||||||
function sodium_crypto_secretstream_xchacha20poly1305_pull(string &$state, string $ciphertext, string $additional_data = ""): array|false {}
|
function sodium_crypto_secretstream_xchacha20poly1305_pull(string &$state, string $ciphertext, string $additional_data = ""): array|false {}
|
||||||
|
@ -229,116 +171,77 @@ function sodium_crypto_secretstream_xchacha20poly1305_pull(string &$state, strin
|
||||||
function sodium_crypto_secretstream_xchacha20poly1305_rekey(string &$state): void {}
|
function sodium_crypto_secretstream_xchacha20poly1305_rekey(string &$state): void {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_shorthash(string $message, #[\SensitiveParameter] string $key): string {}
|
||||||
function sodium_crypto_shorthash(string $message, string $key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_shorthash_keygen(): string {}
|
function sodium_crypto_shorthash_keygen(): string {}
|
||||||
|
|
||||||
/** @sensitive-param $secret_key */
|
function sodium_crypto_sign(string $message, #[\SensitiveParameter] string $secret_key): string {}
|
||||||
function sodium_crypto_sign(string $message, string $secret_key): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $secret_key */
|
function sodium_crypto_sign_detached(string $message, #[\SensitiveParameter] string $secret_key): string {}
|
||||||
function sodium_crypto_sign_detached(string $message, string $secret_key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_sign_ed25519_pk_to_curve25519(string $public_key): string {}
|
function sodium_crypto_sign_ed25519_pk_to_curve25519(string $public_key): string {}
|
||||||
|
|
||||||
/** @sensitive-param $secret_key */
|
function sodium_crypto_sign_ed25519_sk_to_curve25519(#[\SensitiveParameter] string $secret_key): string {}
|
||||||
function sodium_crypto_sign_ed25519_sk_to_curve25519(string $secret_key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_sign_keypair(): string {}
|
function sodium_crypto_sign_keypair(): string {}
|
||||||
|
|
||||||
/** @sensitive-param $secret_key */
|
function sodium_crypto_sign_keypair_from_secretkey_and_publickey(#[\SensitiveParameter] string $secret_key, string $public_key): string {}
|
||||||
function sodium_crypto_sign_keypair_from_secretkey_and_publickey(string $secret_key, string $public_key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_sign_open(string $signed_message, string $public_key): string|false {}
|
function sodium_crypto_sign_open(string $signed_message, string $public_key): string|false {}
|
||||||
|
|
||||||
/** @sensitive-param $key_pair */
|
function sodium_crypto_sign_publickey(#[\SensitiveParameter] string $key_pair): string {}
|
||||||
function sodium_crypto_sign_publickey(string $key_pair): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $key_pair */
|
function sodium_crypto_sign_secretkey(#[\SensitiveParameter] string $key_pair): string {}
|
||||||
function sodium_crypto_sign_secretkey(string $key_pair): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $secret_key */
|
function sodium_crypto_sign_publickey_from_secretkey(#[\SensitiveParameter] string $secret_key): string {}
|
||||||
function sodium_crypto_sign_publickey_from_secretkey(string $secret_key): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $seed */
|
function sodium_crypto_sign_seed_keypair(#[\SensitiveParameter] string $seed): string {}
|
||||||
function sodium_crypto_sign_seed_keypair(string $seed): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_sign_verify_detached(string $signature, string $message, string $public_key): bool {}
|
function sodium_crypto_sign_verify_detached(string $signature, string $message, string $public_key): bool {}
|
||||||
|
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_stream(int $length, string $nonce, #[\SensitiveParameter] string $key): string {}
|
||||||
function sodium_crypto_stream(int $length, string $nonce, string $key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_stream_keygen(): string {}
|
function sodium_crypto_stream_keygen(): string {}
|
||||||
|
|
||||||
/**
|
function sodium_crypto_stream_xor(#[\SensitiveParameter] string $message, string $nonce, #[\SensitiveParameter] string $key): string {}
|
||||||
* @sensitive-param $message
|
|
||||||
* @sensitive-param $key
|
|
||||||
*/
|
|
||||||
function sodium_crypto_stream_xor(string $message, string $nonce, string $key): string {}
|
|
||||||
|
|
||||||
#if defined(crypto_stream_xchacha20_KEYBYTES)
|
#if defined(crypto_stream_xchacha20_KEYBYTES)
|
||||||
/** @sensitive-param $key */
|
function sodium_crypto_stream_xchacha20(int $length, string $nonce, #[\SensitiveParameter] string $key): string {}
|
||||||
function sodium_crypto_stream_xchacha20(int $length, string $nonce, string $key): string {}
|
|
||||||
|
|
||||||
function sodium_crypto_stream_xchacha20_keygen(): string {}
|
function sodium_crypto_stream_xchacha20_keygen(): string {}
|
||||||
|
|
||||||
/**
|
function sodium_crypto_stream_xchacha20_xor(#[\SensitiveParameter] string $message, string $nonce, #[\SensitiveParameter] string $key): string {}
|
||||||
* @sensitive-param $message
|
|
||||||
* @sensitive-param $key
|
|
||||||
*/
|
|
||||||
function sodium_crypto_stream_xchacha20_xor(string $message, string $nonce, string $key): string {}
|
|
||||||
|
|
||||||
/**
|
function sodium_crypto_stream_xchacha20_xor_ic(#[\SensitiveParameter] string $message, string $nonce, int $counter,#[\SensitiveParameter] string $key): string {}
|
||||||
* @sensitive-param $message
|
|
||||||
* @sensitive-param $key
|
|
||||||
*/
|
|
||||||
function sodium_crypto_stream_xchacha20_xor_ic(string $message, string $nonce, int $counter, string $key): string {}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
function sodium_add(string &$string1, string $string2): void {}
|
function sodium_add(string &$string1, string $string2): void {}
|
||||||
|
|
||||||
/**
|
function sodium_compare(#[\SensitiveParameter] string $string1, #[\SensitiveParameter] string $string2): int {}
|
||||||
* @sensitive-param $string1
|
|
||||||
* @sensitive-param $string2
|
|
||||||
*/
|
|
||||||
function sodium_compare(string $string1, string $string2): int {}
|
|
||||||
|
|
||||||
function sodium_increment(string &$string): void {}
|
function sodium_increment(string &$string): void {}
|
||||||
|
|
||||||
/**
|
function sodium_memcmp(#[\SensitiveParameter] string $string1, #[\SensitiveParameter] string $string2): int {}
|
||||||
* @sensitive-param $string1
|
|
||||||
* @sensitive-param $string2
|
|
||||||
*/
|
|
||||||
function sodium_memcmp(string $string1, string $string2): int {}
|
|
||||||
|
|
||||||
/** @sensitive-param $string */
|
function sodium_memzero(#[\SensitiveParameter] string &$string): void {}
|
||||||
function sodium_memzero(string &$string): void {}
|
|
||||||
|
|
||||||
/** @sensitive-param $string */
|
function sodium_pad(#[\SensitiveParameter] string $string, int $block_size): string {}
|
||||||
function sodium_pad(string $string, int $block_size): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $string */
|
function sodium_unpad(#[\SensitiveParameter] string $string, int $block_size): string {}
|
||||||
function sodium_unpad(string $string, int $block_size): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $string */
|
function sodium_bin2hex(#[\SensitiveParameter] string $string): string {}
|
||||||
function sodium_bin2hex(string $string): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $string */
|
function sodium_hex2bin(#[\SensitiveParameter] string $string, string $ignore = ""): string {}
|
||||||
function sodium_hex2bin(string $string, string $ignore = ""): string {}
|
|
||||||
|
|
||||||
#ifdef sodium_base64_VARIANT_ORIGINAL
|
#ifdef sodium_base64_VARIANT_ORIGINAL
|
||||||
/** @sensitive-param $string */
|
function sodium_bin2base64(#[\SensitiveParameter] string $string, int $id): string {}
|
||||||
function sodium_bin2base64(string $string, int $id): string {}
|
|
||||||
|
|
||||||
/** @sensitive-param $string */
|
function sodium_base642bin(#[\SensitiveParameter] string $string, int $id, string $ignore = ""): string {}
|
||||||
function sodium_base642bin(string $string, int $id, string $ignore = ""): string {}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $secret_key
|
|
||||||
* @alias sodium_crypto_box_publickey_from_secretkey
|
* @alias sodium_crypto_box_publickey_from_secretkey
|
||||||
*/
|
*/
|
||||||
function sodium_crypto_scalarmult_base(string $secret_key): string {}
|
function sodium_crypto_scalarmult_base(#[\SensitiveParameter] string $secret_key): string {}
|
||||||
|
|
||||||
class SodiumException extends Exception {}
|
class SodiumException extends Exception {}
|
||||||
|
|
371
ext/sodium/libsodium_arginfo.h
generated
371
ext/sodium/libsodium_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: ba84ba9ace7a751935d7beead34e3fbb9a511cc7 */
|
* Stub hash: 6b0ca95e37b504c23938bc08511ead9671cd8996 */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_crypto_aead_aes256gcm_is_available, 0, 0, _IS_BOOL, 0)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_crypto_aead_aes256gcm_is_available, 0, 0, _IS_BOOL, 0)
|
||||||
ZEND_END_ARG_INFO()
|
ZEND_END_ARG_INFO()
|
||||||
|
@ -470,9 +470,7 @@ ZEND_END_ARG_INFO()
|
||||||
|
|
||||||
#define arginfo_sodium_memcmp arginfo_sodium_compare
|
#define arginfo_sodium_memcmp arginfo_sodium_compare
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_memzero, 0, 1, IS_VOID, 0)
|
#define arginfo_sodium_memzero arginfo_sodium_increment
|
||||||
ZEND_ARG_TYPE_INFO(1, string, IS_STRING, 0)
|
|
||||||
ZEND_END_ARG_INFO()
|
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_pad, 0, 2, IS_STRING, 0)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_pad, 0, 2, IS_STRING, 0)
|
||||||
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
|
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
|
||||||
|
@ -889,114 +887,333 @@ static const zend_function_entry class_SodiumException_methods[] = {
|
||||||
static void register_libsodium_symbols(int module_number)
|
static void register_libsodium_symbols(int module_number)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_AESGCM)
|
#if defined(HAVE_AESGCM)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_aes256gcm_decrypt", 3);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_aes256gcm_decrypt_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_aes256gcm_decrypt", sizeof("sodium_crypto_aead_aes256gcm_decrypt") - 1), 3, attribute_name_SensitiveParameter_sodium_crypto_aead_aes256gcm_decrypt_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_aes256gcm_decrypt_arg3);
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_AESGCM)
|
#if defined(HAVE_AESGCM)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_aes256gcm_encrypt", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_aes256gcm_encrypt", 3);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_aes256gcm_encrypt_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_aes256gcm_encrypt", sizeof("sodium_crypto_aead_aes256gcm_encrypt") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_aead_aes256gcm_encrypt_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_aes256gcm_encrypt_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_aes256gcm_encrypt_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_aes256gcm_encrypt", sizeof("sodium_crypto_aead_aes256gcm_encrypt") - 1), 3, attribute_name_SensitiveParameter_sodium_crypto_aead_aes256gcm_encrypt_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_aes256gcm_encrypt_arg3);
|
||||||
#endif
|
#endif
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_chacha20poly1305_decrypt", 3);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_chacha20poly1305_encrypt", 0);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_decrypt_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_chacha20poly1305_encrypt", 3);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_chacha20poly1305_decrypt", sizeof("sodium_crypto_aead_chacha20poly1305_decrypt") - 1), 3, attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_decrypt_arg3, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_chacha20poly1305_ietf_decrypt", 3);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_decrypt_arg3);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_chacha20poly1305_ietf_encrypt", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_chacha20poly1305_ietf_encrypt", 3);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_encrypt_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_chacha20poly1305_encrypt", sizeof("sodium_crypto_aead_chacha20poly1305_encrypt") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_encrypt_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_encrypt_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_encrypt_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_chacha20poly1305_encrypt", sizeof("sodium_crypto_aead_chacha20poly1305_encrypt") - 1), 3, attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_encrypt_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_encrypt_arg3);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_ietf_decrypt_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_chacha20poly1305_ietf_decrypt", sizeof("sodium_crypto_aead_chacha20poly1305_ietf_decrypt") - 1), 3, attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_ietf_decrypt_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_ietf_decrypt_arg3);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_ietf_encrypt_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_chacha20poly1305_ietf_encrypt", sizeof("sodium_crypto_aead_chacha20poly1305_ietf_encrypt") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_ietf_encrypt_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_ietf_encrypt_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_ietf_encrypt_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_chacha20poly1305_ietf_encrypt", sizeof("sodium_crypto_aead_chacha20poly1305_ietf_encrypt") - 1), 3, attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_ietf_encrypt_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_chacha20poly1305_ietf_encrypt_arg3);
|
||||||
#if defined(crypto_aead_xchacha20poly1305_IETF_NPUBBYTES)
|
#if defined(crypto_aead_xchacha20poly1305_IETF_NPUBBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_xchacha20poly1305_ietf_decrypt", 3);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_xchacha20poly1305_ietf_decrypt_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_xchacha20poly1305_ietf_decrypt", sizeof("sodium_crypto_aead_xchacha20poly1305_ietf_decrypt") - 1), 3, attribute_name_SensitiveParameter_sodium_crypto_aead_xchacha20poly1305_ietf_decrypt_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_xchacha20poly1305_ietf_decrypt_arg3);
|
||||||
#endif
|
#endif
|
||||||
#if defined(crypto_aead_xchacha20poly1305_IETF_NPUBBYTES)
|
#if defined(crypto_aead_xchacha20poly1305_IETF_NPUBBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_xchacha20poly1305_ietf_encrypt", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_aead_xchacha20poly1305_ietf_encrypt", 3);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_xchacha20poly1305_ietf_encrypt_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_xchacha20poly1305_ietf_encrypt", sizeof("sodium_crypto_aead_xchacha20poly1305_ietf_encrypt") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_aead_xchacha20poly1305_ietf_encrypt_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_xchacha20poly1305_ietf_encrypt_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_aead_xchacha20poly1305_ietf_encrypt_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_aead_xchacha20poly1305_ietf_encrypt", sizeof("sodium_crypto_aead_xchacha20poly1305_ietf_encrypt") - 1), 3, attribute_name_SensitiveParameter_sodium_crypto_aead_xchacha20poly1305_ietf_encrypt_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_aead_xchacha20poly1305_ietf_encrypt_arg3);
|
||||||
#endif
|
#endif
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_auth", 1);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_auth_verify", 2);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_auth_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_box", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_auth", sizeof("sodium_crypto_auth") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_auth_arg1, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_box", 2);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_auth_arg1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_box_seed_keypair", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_box_keypair_from_secretkey_and_publickey", 0);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_auth_verify_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_box_open", 2);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_auth_verify", sizeof("sodium_crypto_auth_verify") - 1), 2, attribute_name_SensitiveParameter_sodium_crypto_auth_verify_arg2, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_box_publickey", 0);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_auth_verify_arg2);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_box_publickey_from_secretkey", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_box_seal", 0);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_box_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_box_seal_open", 1);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box", sizeof("sodium_crypto_box") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_box_arg0, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_box_secretkey", 0);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_box_arg0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_kx_publickey", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_kx_secretkey", 0);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_box_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_kx_seed_keypair", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box", sizeof("sodium_crypto_box") - 1), 2, attribute_name_SensitiveParameter_sodium_crypto_box_arg2, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_kx_client_session_keys", 0);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_box_arg2);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_kx_server_session_keys", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_generichash", 1);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_box_seed_keypair_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_generichash_init", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box_seed_keypair", sizeof("sodium_crypto_box_seed_keypair") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_box_seed_keypair_arg0, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_kdf_derive_from_key", 3);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_box_seed_keypair_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_box_keypair_from_secretkey_and_publickey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box_keypair_from_secretkey_and_publickey", sizeof("sodium_crypto_box_keypair_from_secretkey_and_publickey") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_box_keypair_from_secretkey_and_publickey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_box_keypair_from_secretkey_and_publickey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_box_open_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box_open", sizeof("sodium_crypto_box_open") - 1), 2, attribute_name_SensitiveParameter_sodium_crypto_box_open_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_box_open_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_box_publickey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box_publickey", sizeof("sodium_crypto_box_publickey") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_box_publickey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_box_publickey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_box_publickey_from_secretkey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box_publickey_from_secretkey", sizeof("sodium_crypto_box_publickey_from_secretkey") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_box_publickey_from_secretkey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_box_publickey_from_secretkey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_box_seal_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box_seal", sizeof("sodium_crypto_box_seal") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_box_seal_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_box_seal_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_box_seal_open_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box_seal_open", sizeof("sodium_crypto_box_seal_open") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_box_seal_open_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_box_seal_open_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_box_secretkey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_box_secretkey", sizeof("sodium_crypto_box_secretkey") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_box_secretkey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_box_secretkey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_kx_publickey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_kx_publickey", sizeof("sodium_crypto_kx_publickey") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_kx_publickey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_kx_publickey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_kx_secretkey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_kx_secretkey", sizeof("sodium_crypto_kx_secretkey") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_kx_secretkey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_kx_secretkey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_kx_seed_keypair_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_kx_seed_keypair", sizeof("sodium_crypto_kx_seed_keypair") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_kx_seed_keypair_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_kx_seed_keypair_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_kx_client_session_keys_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_kx_client_session_keys", sizeof("sodium_crypto_kx_client_session_keys") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_kx_client_session_keys_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_kx_client_session_keys_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_kx_server_session_keys_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_kx_server_session_keys", sizeof("sodium_crypto_kx_server_session_keys") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_kx_server_session_keys_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_kx_server_session_keys_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_generichash_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_generichash", sizeof("sodium_crypto_generichash") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_generichash_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_generichash_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_generichash_init_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_generichash_init", sizeof("sodium_crypto_generichash_init") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_generichash_init_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_generichash_init_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_kdf_derive_from_key_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_kdf_derive_from_key", sizeof("sodium_crypto_kdf_derive_from_key") - 1), 3, attribute_name_SensitiveParameter_sodium_crypto_kdf_derive_from_key_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_kdf_derive_from_key_arg3);
|
||||||
#if defined(crypto_pwhash_SALTBYTES)
|
#if defined(crypto_pwhash_SALTBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_pwhash", 1);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_pwhash_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_pwhash", sizeof("sodium_crypto_pwhash") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_pwhash_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_pwhash_arg1);
|
||||||
#endif
|
#endif
|
||||||
#if defined(crypto_pwhash_SALTBYTES)
|
#if defined(crypto_pwhash_SALTBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_pwhash_str", 0);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_pwhash_str_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_pwhash_str", sizeof("sodium_crypto_pwhash_str") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_pwhash_str_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_pwhash_str_arg0);
|
||||||
#endif
|
#endif
|
||||||
#if defined(crypto_pwhash_SALTBYTES)
|
#if defined(crypto_pwhash_SALTBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_pwhash_str_verify", 1);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_pwhash_str_verify_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_pwhash_str_verify", sizeof("sodium_crypto_pwhash_str_verify") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_pwhash_str_verify_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_pwhash_str_verify_arg1);
|
||||||
#endif
|
#endif
|
||||||
#if defined(crypto_pwhash_scryptsalsa208sha256_SALTBYTES)
|
#if defined(crypto_pwhash_scryptsalsa208sha256_SALTBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_pwhash_scryptsalsa208sha256", 1);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_pwhash_scryptsalsa208sha256_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_pwhash_scryptsalsa208sha256", sizeof("sodium_crypto_pwhash_scryptsalsa208sha256") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_pwhash_scryptsalsa208sha256_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_pwhash_scryptsalsa208sha256_arg1);
|
||||||
#endif
|
#endif
|
||||||
#if defined(crypto_pwhash_scryptsalsa208sha256_SALTBYTES)
|
#if defined(crypto_pwhash_scryptsalsa208sha256_SALTBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_pwhash_scryptsalsa208sha256_str", 0);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_pwhash_scryptsalsa208sha256_str_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_pwhash_scryptsalsa208sha256_str", sizeof("sodium_crypto_pwhash_scryptsalsa208sha256_str") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_pwhash_scryptsalsa208sha256_str_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_pwhash_scryptsalsa208sha256_str_arg0);
|
||||||
#endif
|
#endif
|
||||||
#if defined(crypto_pwhash_scryptsalsa208sha256_SALTBYTES)
|
#if defined(crypto_pwhash_scryptsalsa208sha256_SALTBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_pwhash_scryptsalsa208sha256_str_verify", 1);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_pwhash_scryptsalsa208sha256_str_verify_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_pwhash_scryptsalsa208sha256_str_verify", sizeof("sodium_crypto_pwhash_scryptsalsa208sha256_str_verify") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_pwhash_scryptsalsa208sha256_str_verify_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_pwhash_scryptsalsa208sha256_str_verify_arg1);
|
||||||
#endif
|
#endif
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_secretbox", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_secretbox", 2);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_secretbox_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_secretbox_open", 2);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_secretbox", sizeof("sodium_crypto_secretbox") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_secretbox_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_secretbox_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_secretbox_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_secretbox", sizeof("sodium_crypto_secretbox") - 1), 2, attribute_name_SensitiveParameter_sodium_crypto_secretbox_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_secretbox_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_secretbox_open_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_secretbox_open", sizeof("sodium_crypto_secretbox_open") - 1), 2, attribute_name_SensitiveParameter_sodium_crypto_secretbox_open_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_secretbox_open_arg2);
|
||||||
#if defined(crypto_secretstream_xchacha20poly1305_ABYTES)
|
#if defined(crypto_secretstream_xchacha20poly1305_ABYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_secretstream_xchacha20poly1305_init_push", 0);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_secretstream_xchacha20poly1305_init_push_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_secretstream_xchacha20poly1305_init_push", sizeof("sodium_crypto_secretstream_xchacha20poly1305_init_push") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_secretstream_xchacha20poly1305_init_push_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_secretstream_xchacha20poly1305_init_push_arg0);
|
||||||
#endif
|
#endif
|
||||||
#if defined(crypto_secretstream_xchacha20poly1305_ABYTES)
|
#if defined(crypto_secretstream_xchacha20poly1305_ABYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_secretstream_xchacha20poly1305_push", 1);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_secretstream_xchacha20poly1305_push_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_secretstream_xchacha20poly1305_push", sizeof("sodium_crypto_secretstream_xchacha20poly1305_push") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_secretstream_xchacha20poly1305_push_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_secretstream_xchacha20poly1305_push_arg1);
|
||||||
#endif
|
#endif
|
||||||
#if defined(crypto_secretstream_xchacha20poly1305_ABYTES)
|
#if defined(crypto_secretstream_xchacha20poly1305_ABYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_secretstream_xchacha20poly1305_init_pull", 1);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_secretstream_xchacha20poly1305_init_pull_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_secretstream_xchacha20poly1305_init_pull", sizeof("sodium_crypto_secretstream_xchacha20poly1305_init_pull") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_secretstream_xchacha20poly1305_init_pull_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_secretstream_xchacha20poly1305_init_pull_arg1);
|
||||||
#endif
|
#endif
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_shorthash", 1);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_sign", 1);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_shorthash_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_sign_detached", 1);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_shorthash", sizeof("sodium_crypto_shorthash") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_shorthash_arg1, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_sign_ed25519_sk_to_curve25519", 0);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_shorthash_arg1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_sign_keypair_from_secretkey_and_publickey", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_sign_publickey", 0);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_sign_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_sign_secretkey", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_sign", sizeof("sodium_crypto_sign") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_sign_arg1, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_sign_publickey_from_secretkey", 0);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_sign_arg1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_sign_seed_keypair", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_stream", 2);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_sign_detached_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_stream_xor", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_sign_detached", sizeof("sodium_crypto_sign_detached") - 1), 1, attribute_name_SensitiveParameter_sodium_crypto_sign_detached_arg1, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_stream_xor", 2);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_sign_detached_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_sign_ed25519_sk_to_curve25519_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_sign_ed25519_sk_to_curve25519", sizeof("sodium_crypto_sign_ed25519_sk_to_curve25519") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_sign_ed25519_sk_to_curve25519_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_sign_ed25519_sk_to_curve25519_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_sign_keypair_from_secretkey_and_publickey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_sign_keypair_from_secretkey_and_publickey", sizeof("sodium_crypto_sign_keypair_from_secretkey_and_publickey") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_sign_keypair_from_secretkey_and_publickey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_sign_keypair_from_secretkey_and_publickey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_sign_publickey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_sign_publickey", sizeof("sodium_crypto_sign_publickey") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_sign_publickey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_sign_publickey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_sign_secretkey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_sign_secretkey", sizeof("sodium_crypto_sign_secretkey") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_sign_secretkey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_sign_secretkey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_sign_publickey_from_secretkey_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_sign_publickey_from_secretkey", sizeof("sodium_crypto_sign_publickey_from_secretkey") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_sign_publickey_from_secretkey_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_sign_publickey_from_secretkey_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_sign_seed_keypair_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_sign_seed_keypair", sizeof("sodium_crypto_sign_seed_keypair") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_sign_seed_keypair_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_sign_seed_keypair_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_stream_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_stream", sizeof("sodium_crypto_stream") - 1), 2, attribute_name_SensitiveParameter_sodium_crypto_stream_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_stream_arg2);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_stream_xor_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_stream_xor", sizeof("sodium_crypto_stream_xor") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_stream_xor_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_stream_xor_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_stream_xor_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_stream_xor", sizeof("sodium_crypto_stream_xor") - 1), 2, attribute_name_SensitiveParameter_sodium_crypto_stream_xor_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_stream_xor_arg2);
|
||||||
#if defined(crypto_stream_xchacha20_KEYBYTES)
|
#if defined(crypto_stream_xchacha20_KEYBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_stream_xchacha20", 2);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_stream_xchacha20", sizeof("sodium_crypto_stream_xchacha20") - 1), 2, attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_arg2);
|
||||||
#endif
|
#endif
|
||||||
#if defined(crypto_stream_xchacha20_KEYBYTES)
|
#if defined(crypto_stream_xchacha20_KEYBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_stream_xchacha20_xor", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_stream_xchacha20_xor", 2);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_stream_xchacha20_xor", sizeof("sodium_crypto_stream_xchacha20_xor") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_stream_xchacha20_xor", sizeof("sodium_crypto_stream_xchacha20_xor") - 1), 2, attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_arg2);
|
||||||
#endif
|
#endif
|
||||||
#if defined(crypto_stream_xchacha20_KEYBYTES)
|
#if defined(crypto_stream_xchacha20_KEYBYTES)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_stream_xchacha20_xor_ic", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_stream_xchacha20_xor_ic", 3);
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_ic_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_stream_xchacha20_xor_ic", sizeof("sodium_crypto_stream_xchacha20_xor_ic") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_ic_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_ic_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_ic_arg3 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_stream_xchacha20_xor_ic", sizeof("sodium_crypto_stream_xchacha20_xor_ic") - 1), 3, attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_ic_arg3, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_stream_xchacha20_xor_ic_arg3);
|
||||||
#endif
|
#endif
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_compare", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_compare", 1);
|
zend_string *attribute_name_SensitiveParameter_sodium_compare_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_memcmp", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_compare", sizeof("sodium_compare") - 1), 0, attribute_name_SensitiveParameter_sodium_compare_arg0, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_memcmp", 1);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_compare_arg0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_memzero", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_pad", 0);
|
zend_string *attribute_name_SensitiveParameter_sodium_compare_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_unpad", 0);
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_compare", sizeof("sodium_compare") - 1), 1, attribute_name_SensitiveParameter_sodium_compare_arg1, 0);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_bin2hex", 0);
|
zend_string_release(attribute_name_SensitiveParameter_sodium_compare_arg1);
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_hex2bin", 0);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_memcmp_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_memcmp", sizeof("sodium_memcmp") - 1), 0, attribute_name_SensitiveParameter_sodium_memcmp_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_memcmp_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_memcmp_arg1 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_memcmp", sizeof("sodium_memcmp") - 1), 1, attribute_name_SensitiveParameter_sodium_memcmp_arg1, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_memcmp_arg1);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_memzero_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_memzero", sizeof("sodium_memzero") - 1), 0, attribute_name_SensitiveParameter_sodium_memzero_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_memzero_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_pad_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_pad", sizeof("sodium_pad") - 1), 0, attribute_name_SensitiveParameter_sodium_pad_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_pad_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_unpad_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_unpad", sizeof("sodium_unpad") - 1), 0, attribute_name_SensitiveParameter_sodium_unpad_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_unpad_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_bin2hex_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_bin2hex", sizeof("sodium_bin2hex") - 1), 0, attribute_name_SensitiveParameter_sodium_bin2hex_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_bin2hex_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_hex2bin_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_hex2bin", sizeof("sodium_hex2bin") - 1), 0, attribute_name_SensitiveParameter_sodium_hex2bin_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_hex2bin_arg0);
|
||||||
#if defined(sodium_base64_VARIANT_ORIGINAL)
|
#if defined(sodium_base64_VARIANT_ORIGINAL)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_bin2base64", 0);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_bin2base64_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_bin2base64", sizeof("sodium_bin2base64") - 1), 0, attribute_name_SensitiveParameter_sodium_bin2base64_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_bin2base64_arg0);
|
||||||
#endif
|
#endif
|
||||||
#if defined(sodium_base64_VARIANT_ORIGINAL)
|
#if defined(sodium_base64_VARIANT_ORIGINAL)
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_base642bin", 0);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_base642bin_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_base642bin", sizeof("sodium_base642bin") - 1), 0, attribute_name_SensitiveParameter_sodium_base642bin_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_base642bin_arg0);
|
||||||
#endif
|
#endif
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "sodium_crypto_scalarmult_base", 0);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_sodium_crypto_scalarmult_base_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "sodium_crypto_scalarmult_base", sizeof("sodium_crypto_scalarmult_base") - 1), 0, attribute_name_SensitiveParameter_sodium_crypto_scalarmult_base_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_sodium_crypto_scalarmult_base_arg0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static zend_class_entry *register_class_SodiumException(zend_class_entry *class_entry_Exception)
|
static zend_class_entry *register_class_SodiumException(zend_class_entry *class_entry_Exception)
|
||||||
|
|
|
@ -1623,15 +1623,13 @@ function unpack(string $format, string $string, int $offset = 0): array|false {}
|
||||||
function password_get_info(string $hash): array {}
|
function password_get_info(string $hash): array {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @refcount 1
|
* @refcount 1
|
||||||
*/
|
*/
|
||||||
function password_hash(string $password, string|int|null $algo, array $options = []): string {}
|
function password_hash(#[\SensitiveParameter] string $password, string|int|null $algo, array $options = []): string {}
|
||||||
|
|
||||||
function password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool {}
|
function password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool {}
|
||||||
|
|
||||||
/** @sensitive-param $password */
|
function password_verify(#[\SensitiveParameter] string $password, string $hash): bool {}
|
||||||
function password_verify(string $password, string $hash): bool {}
|
|
||||||
|
|
||||||
function password_algos(): array {}
|
function password_algos(): array {}
|
||||||
|
|
||||||
|
|
12
ext/standard/basic_functions_arginfo.h
generated
12
ext/standard/basic_functions_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 978052ddd734a50694d59f6e92bbf5f1cc946bd2 */
|
* Stub hash: 9fe68f4baa560dedf96b551c051cfaf3e6532d15 */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
|
||||||
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
|
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
|
||||||
|
@ -3531,8 +3531,14 @@ static void register_basic_functions_symbols(int module_number)
|
||||||
REGISTER_DOUBLE_CONSTANT("M_E", M_E, CONST_CS | CONST_PERSISTENT);
|
REGISTER_DOUBLE_CONSTANT("M_E", M_E, CONST_CS | CONST_PERSISTENT);
|
||||||
ZEND_ASSERT(M_E == 2.7182818284590451);
|
ZEND_ASSERT(M_E == 2.7182818284590451);
|
||||||
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "password_hash", 0);
|
|
||||||
zend_mark_function_parameter_as_sensitive(CG(function_table), "password_verify", 0);
|
zend_string *attribute_name_SensitiveParameter_password_hash_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "password_hash", sizeof("password_hash") - 1), 0, attribute_name_SensitiveParameter_password_hash_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_password_hash_arg0);
|
||||||
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_password_verify_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "password_verify", sizeof("password_verify") - 1), 0, attribute_name_SensitiveParameter_password_verify_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_password_verify_arg0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static zend_class_entry *register_class___PHP_Incomplete_Class(void)
|
static zend_class_entry *register_class___PHP_Incomplete_Class(void)
|
||||||
|
|
|
@ -83,10 +83,9 @@ class ZipArchive implements Countable
|
||||||
public function open(string $filename, int $flags = 0): bool|int {}
|
public function open(string $filename, int $flags = 0): bool|int {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @tentative-return-type
|
* @tentative-return-type
|
||||||
*/
|
*/
|
||||||
public function setPassword(string $password): bool {}
|
public function setPassword(#[\SensitiveParameter] string $password): bool {}
|
||||||
|
|
||||||
/** @tentative-return-type */
|
/** @tentative-return-type */
|
||||||
public function close(): bool {}
|
public function close(): bool {}
|
||||||
|
@ -227,16 +226,14 @@ class ZipArchive implements Countable
|
||||||
|
|
||||||
#ifdef HAVE_ENCRYPTION
|
#ifdef HAVE_ENCRYPTION
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @tentative-return-type
|
* @tentative-return-type
|
||||||
*/
|
*/
|
||||||
public function setEncryptionName(string $name, int $method, ?string $password = null): bool {}
|
public function setEncryptionName(string $name, int $method, #[\SensitiveParameter] ?string $password = null): bool {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @sensitive-param $password
|
|
||||||
* @tentative-return-type
|
* @tentative-return-type
|
||||||
*/
|
*/
|
||||||
public function setEncryptionIndex(int $index, int $method, ?string $password = null): bool {}
|
public function setEncryptionIndex(int $index, int $method, #[\SensitiveParameter] ?string $password = null): bool {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_PROGRESS_CALLBACK
|
#ifdef HAVE_PROGRESS_CALLBACK
|
||||||
|
|
17
ext/zip/php_zip_arginfo.h
generated
17
ext/zip/php_zip_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: f8ec36ea62bfbdb74cfa6472227e08d9282413a2 */
|
* Stub hash: 9c44d8bcf6b97804d539a9dd566d5faca60074ba */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_open, 0, 0, 1)
|
ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_open, 0, 0, 1)
|
||||||
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
|
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
|
||||||
|
@ -530,12 +530,21 @@ static zend_class_entry *register_class_ZipArchive(zend_class_entry *class_entry
|
||||||
zend_declare_typed_property(class_entry, property_comment_name, &property_comment_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
|
zend_declare_typed_property(class_entry, property_comment_name, &property_comment_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
|
||||||
zend_string_release(property_comment_name);
|
zend_string_release(property_comment_name);
|
||||||
|
|
||||||
zend_mark_function_parameter_as_sensitive(&class_entry->function_table, "setpassword", 0);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_ZipArchive_setPassword_arg0 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "setpassword", sizeof("setpassword") - 1), 0, attribute_name_SensitiveParameter_ZipArchive_setPassword_arg0, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ZipArchive_setPassword_arg0);
|
||||||
#if defined(HAVE_ENCRYPTION)
|
#if defined(HAVE_ENCRYPTION)
|
||||||
zend_mark_function_parameter_as_sensitive(&class_entry->function_table, "setencryptionname", 2);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_ZipArchive_setEncryptionName_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "setencryptionname", sizeof("setencryptionname") - 1), 2, attribute_name_SensitiveParameter_ZipArchive_setEncryptionName_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ZipArchive_setEncryptionName_arg2);
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_ENCRYPTION)
|
#if defined(HAVE_ENCRYPTION)
|
||||||
zend_mark_function_parameter_as_sensitive(&class_entry->function_table, "setencryptionindex", 2);
|
|
||||||
|
zend_string *attribute_name_SensitiveParameter_ZipArchive_setEncryptionIndex_arg2 = zend_string_init("SensitiveParameter", sizeof("SensitiveParameter") - 1, 1);
|
||||||
|
zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "setencryptionindex", sizeof("setencryptionindex") - 1), 2, attribute_name_SensitiveParameter_ZipArchive_setEncryptionIndex_arg2, 0);
|
||||||
|
zend_string_release(attribute_name_SensitiveParameter_ZipArchive_setEncryptionIndex_arg2);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return class_entry;
|
return class_entry;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue