Adding messagekeys($enctext) method which returns recipient info

The return type is an associative array of keyid -> status, where status
is true if we have a secret key locally for that key or false if not. If
the provided $enctext is invalid, it returns false and sets the error
state appropriately.
This commit is contained in:
Jeremy Johnstone 2017-09-07 17:29:31 -06:00
parent c4b82c4dee
commit e7cd93ba73
2 changed files with 64 additions and 0 deletions

View file

@ -62,6 +62,7 @@ PHP_FUNCTION(gnupg_getprotocol);
PHP_FUNCTION(gnupg_encrypt);
PHP_FUNCTION(gnupg_encryptsign);
PHP_FUNCTION(gnupg_decrypt);
PHP_FUNCTION(gnupg_messagekeys);
PHP_FUNCTION(gnupg_decryptverify);
PHP_FUNCTION(gnupg_export);
PHP_FUNCTION(gnupg_import);