Commit graph

114 commits

Author SHA1 Message Date
Daniël van de Giessen
b6fbcbc56a
Fix GH-59: Remove trustlist function for GPGME >= 2.0.0 (#60) 2025-08-08 14:04:36 +02:00
Remi Collet
977ae2e9fe
use zend_ce_exception instead of zend_exception_get_default() for 8.5 (#57) 2025-08-08 13:51:37 +02:00
Jakub Zelenka
74993ff4a2
Fix #32: Decryption of message encrypted with multiple keys (#55)
When the message is encrypted with multiple keys and the decryption
key(s) added is not the first encrypted key, then it was failing due to
invalid early failure when uid was not found in decrypted keys. This
changes such behavior and just returns empty key instead in such case.
2025-05-20 18:23:58 +02:00
Jakub Zelenka
c839aa56e1
Add extra check for uid_hint to make sure it never overflows 2025-04-08 11:17:28 +02:00
Jakub Zelenka
312655c7ce
Fix GH-46: gnupg_decrypt() segfault when password callback uid hint not supplied (#51) 2025-03-18 17:47:27 +01:00
Jakub Zelenka
c365ff0835
Fix GH-37: decryption of an encrypted empty string returns false (#50)
Closes GH-50
2025-03-18 14:54:49 +01:00
Jakub Zelenka
d3bbfee186
Fix GH-47: Check return value of gpgme_ctx_set_engine_info (#49) 2025-02-26 16:32:59 +01:00
Jakub Zelenka
42ee4c86db
Make delete_key allow_secret parameter optional again
This was option before 1.5.0
2025-02-05 15:00:23 +01:00
Jakub Zelenka
ea0ccc2c9b Fix bug #81004 - subkey curve not available before gpgme 1.5.0 2021-12-30 22:11:28 +00:00
Remi Collet
618e7ffc69 fix build with libgpgme 1.3 2021-02-15 08:04:36 +01:00
Jakub Zelenka
100a19ce40 Fix arginfos and tests for PHP 8 2021-02-14 19:18:00 +00:00
Jakub Zelenka
474a2b9e97 Add gnupg_geterrorinfo and cover gnupg_geterror 2021-01-16 20:46:52 +00:00
Jakub Zelenka
e6c0456610 Refactore gnupg_deletekey to allow boolean allow_secret 2021-01-16 20:46:52 +00:00
Jakub Zelenka
e4ab851f1f Fix missing and incorrect arginfos 2021-01-16 20:46:52 +00:00
Jakub Zelenka
d93d6ea80d Add implementation for keyinfo secret_only parameter 2018-08-12 20:10:04 +01:00
Gunter Grodotzki
aa6fdf830b spaces vs. tabs 2018-06-06 20:34:42 +01:00
Gunter Grodotzki
b852d6e509 remove prefix on class constants 2018-06-06 20:34:42 +01:00
Gunter Grodotzki
62a7495b45 add constants 2018-06-06 20:34:42 +01:00
Gunter Grodotzki
5674652e6e removing too old version check 2018-06-06 20:34:42 +01:00
Gunter Grodotzki
42b08f7dbd fix version req 2018-06-06 20:34:42 +01:00
Gunter Grodotzki
d9bc785b1b revert order.. 2018-06-06 20:34:42 +01:00
Gunter Grodotzki
3be90b190a Fixes #6: Add additional output fields to keyinfo() + listsignatures() 2018-06-06 20:34:42 +01:00
Jakub Zelenka
15b69c66ea Add GNUPG_GPGME_VERSION constant 2018-06-05 17:07:15 +01:00
Jakub Zelenka
587a5f9400 Add gnupg_getengineinfo 2018-05-31 20:41:56 +01:00
Jakub Zelenka
60e13bec5a Fix and finish test for oo init with home dir 2018-05-25 19:42:47 +01:00
Jakub Zelenka
99e95d975c Fix CS 2018-05-22 17:24:08 +01:00
Jakub Zelenka
8c55c26189 Set pinentry mode to GPGME_PINENTRY_MODE_LOOPBACK
This allows passphrase callback mechanism in GnuPG 2.1+
2018-05-21 16:33:23 +01:00
Jakub Zelenka
7116749cb1 Fix invalid error check in this init 2018-05-21 16:20:30 +01:00
Jakub Zelenka
8a5c714b9c Add initial implementation of the init options 2018-05-19 19:18:56 +01:00
Jakub Zelenka
337ccfb4a0 Merge branch 'next' 2018-05-17 20:24:29 +01:00
Jakub Zelenka
3bb4d28798 Remove hack for PHP 4 in freeing encryptkeys and fix CS 2017-09-12 18:50:50 +01:00
Jakub Zelenka
2b3d5b5a29 Prefix static functions 2017-09-12 18:45:40 +01:00
Jakub Zelenka
6f46b406e9 Fix small CS issue 2017-09-11 17:23:17 +01:00
Jakub Zelenka
c4b82c4dee Move gpgme_check_version to MINIT 2016-12-15 18:33:57 +00:00
Jakub Zelenka
9aaaaa7c87 Remove a dev comment 2016-12-14 17:28:01 +00:00
Jakub Zelenka
fcbadeb49b Fix CS in init function 2016-12-13 18:27:44 +00:00
Jakub Zelenka
dda2f09054 Properly allocate and free encryptkeys 2016-12-12 18:56:54 +00:00
Jakub Zelenka
d0b42a2af3 Fix CS in gnupg_listsignatures 2016-11-13 20:46:34 +00:00
Jakub Zelenka
1a94356ce1 Fix CS in gnupg_gettrustlist 2016-11-09 20:44:22 +00:00
Jakub Zelenka
84a3bf6b39 Fix CS in gnupg_deletekey 2016-11-06 21:28:32 +00:00
Jakub Zelenka
67ec0b2be5 Fix CS in gnupg_import 2016-11-04 19:37:28 +00:00
Jakub Zelenka
f20f7081cb Fix CS in gnupg_export 2016-11-02 20:27:52 +00:00
Jakub Zelenka
8bd76523eb Fix CS in gnupg_decryptverify 2016-10-30 20:11:17 +00:00
Jakub Zelenka
564dc7d003 Fix CS in gnupg_decrypt 2016-10-27 20:28:57 +01:00
Jakub Zelenka
0e92c34de0 Fix CS in gnupg_verify 2016-10-25 20:35:34 +01:00
Jakub Zelenka
91f392fa9f Fix CS in gnupg_encryptsign 2016-10-24 20:52:26 +01:00
Jakub Zelenka
fc90732c39 Fix CS in gnupg_encrypt 2016-10-23 20:41:39 +01:00
Jakub Zelenka
11ba584ff8 Fix CS in gnupg_sign 2016-10-09 19:54:03 +01:00
Jakub Zelenka
ba7bce32f7 Fix CS in gnupg_adddecryptkey and gnupg_addencryptkey 2016-10-07 20:28:22 +01:00
Jakub Zelenka
ee75e41714 Finish fixing CS in gnupg_addsignkey 2016-10-06 20:45:40 +01:00