Skip to content

Commit 251a9f1

Browse files
spazeondrejmirtes
authored andcommitted
gnupg_verify() accepts false fot its signature param
From the PHP manual: "signature: The signature. To verify a clearsigned text, set signature to false." https://www.php.net/manual/en/function.gnupg-verify.php Also plaintext param is passed by ref in both gnupg_verify and gnupg::verify.
1 parent eb2f320 commit 251a9f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/functionMap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3612,7 +3612,7 @@
36123612
'gnupg::seterrormode' => ['void', 'errormode'=>'int'],
36133613
'gnupg::setsignmode' => ['bool', 'signmode'=>'int'],
36143614
'gnupg::sign' => ['string', 'plaintext'=>'string'],
3615-
'gnupg::verify' => ['array', 'signed_text'=>'string', 'signature'=>'string', '&plaintext='=>'string'],
3615+
'gnupg::verify' => ['array', 'signed_text'=>'string', 'signature'=>'string|false', '&plaintext='=>'string'],
36163616
'gnupg_adddecryptkey' => ['bool', 'identifier'=>'resource', 'fingerprint'=>'string', 'passphrase'=>'string'],
36173617
'gnupg_addencryptkey' => ['bool', 'identifier'=>'resource', 'fingerprint'=>'string'],
36183618
'gnupg_addsignkey' => ['bool', 'identifier'=>'resource', 'fingerprint'=>'string', 'passphrase='=>'string'],
@@ -3633,7 +3633,7 @@
36333633
'gnupg_seterrormode' => ['void', 'identifier'=>'resource', 'errormode'=>'int'],
36343634
'gnupg_setsignmode' => ['bool', 'identifier'=>'resource', 'signmode'=>'int'],
36353635
'gnupg_sign' => ['string', 'identifier'=>'resource', 'plaintext'=>'string'],
3636-
'gnupg_verify' => ['array', 'identifier'=>'resource', 'signed_text'=>'string', 'signature'=>'string', 'plaintext='=>'string'],
3636+
'gnupg_verify' => ['array', 'identifier'=>'resource', 'signed_text'=>'string', 'signature'=>'string|false', '&plaintext='=>'string'],
36373637
'gopher_parsedir' => ['array', 'dirent'=>'string'],
36383638
'grapheme_extract' => ['string|false', 'str'=>'string', 'size'=>'int', 'extract_type='=>'int', 'start='=>'int', '&w_next='=>'int'],
36393639
'grapheme_stripos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'],

0 commit comments

Comments
 (0)