Skip to content

Commit

Permalink
Merge pull request #339 from thecodingmachine/create-pull-request/reg…
Browse files Browse the repository at this point in the history
…enerate-files

Automatically regenerate the files
  • Loading branch information
Kharhamel authored Apr 1, 2022
2 parents c4919cd + fd57de1 commit 5bf4aed
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@
'gnupg_cleardecryptkeys',
'gnupg_clearencryptkeys',
'gnupg_clearsignkeys',
'gnupg_deletekey',
'gnupg_setarmor',
'gnupg_setsignmode',
'gzclose',
Expand Down
20 changes: 20 additions & 0 deletions generated/gnupg.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,26 @@ function gnupg_clearsignkeys($identifier): void
}


/**
*
*
* @param resource $identifier The gnupg identifier, from a call to
* gnupg_init or gnupg.
* @param string $key The key to delete.
* @param bool $allow_secret It specifies whether to delete secret keys as well.
* @throws GnupgException
*
*/
function gnupg_deletekey($identifier, string $key, bool $allow_secret): void
{
error_clear_last();
$result = \gnupg_deletekey($identifier, $key, $allow_secret);
if ($result === false) {
throw GnupgException::createFromPhpError();
}
}


/**
* Toggle the armored output.
*
Expand Down
1 change: 1 addition & 0 deletions rector-migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
'gnupg_cleardecryptkeys' => 'Safe\gnupg_cleardecryptkeys',
'gnupg_clearencryptkeys' => 'Safe\gnupg_clearencryptkeys',
'gnupg_clearsignkeys' => 'Safe\gnupg_clearsignkeys',
'gnupg_deletekey' => 'Safe\gnupg_deletekey',
'gnupg_setarmor' => 'Safe\gnupg_setarmor',
'gnupg_setsignmode' => 'Safe\gnupg_setsignmode',
'gzclose' => 'Safe\gzclose',
Expand Down

0 comments on commit 5bf4aed

Please # to comment.