Skip to content

Commit fd57de1

Browse files
authored
Automatically regenerate the files
1 parent c4919cd commit fd57de1

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

generated/functionsList.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@
256256
'gnupg_cleardecryptkeys',
257257
'gnupg_clearencryptkeys',
258258
'gnupg_clearsignkeys',
259+
'gnupg_deletekey',
259260
'gnupg_setarmor',
260261
'gnupg_setsignmode',
261262
'gzclose',

generated/gnupg.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,26 @@ function gnupg_clearsignkeys($identifier): void
121121
}
122122

123123

124+
/**
125+
*
126+
*
127+
* @param resource $identifier The gnupg identifier, from a call to
128+
* gnupg_init or gnupg.
129+
* @param string $key The key to delete.
130+
* @param bool $allow_secret It specifies whether to delete secret keys as well.
131+
* @throws GnupgException
132+
*
133+
*/
134+
function gnupg_deletekey($identifier, string $key, bool $allow_secret): void
135+
{
136+
error_clear_last();
137+
$result = \gnupg_deletekey($identifier, $key, $allow_secret);
138+
if ($result === false) {
139+
throw GnupgException::createFromPhpError();
140+
}
141+
}
142+
143+
124144
/**
125145
* Toggle the armored output.
126146
*

rector-migrate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@
266266
'gnupg_cleardecryptkeys' => 'Safe\gnupg_cleardecryptkeys',
267267
'gnupg_clearencryptkeys' => 'Safe\gnupg_clearencryptkeys',
268268
'gnupg_clearsignkeys' => 'Safe\gnupg_clearsignkeys',
269+
'gnupg_deletekey' => 'Safe\gnupg_deletekey',
269270
'gnupg_setarmor' => 'Safe\gnupg_setarmor',
270271
'gnupg_setsignmode' => 'Safe\gnupg_setsignmode',
271272
'gzclose' => 'Safe\gzclose',

0 commit comments

Comments
 (0)