Commit graph

251 commits

Author SHA1 Message Date
Jakub Zelenka
19341ddad0
Extend CI to test more PHP and gpgme versions 2026-11-22 14:15:26 +01:00
Jakub Zelenka
838c23f4e3
Fix build with PHP 8.0 and older by defining tentative return type macro 2026-11-22 14:15:26 +01:00
Jakub Zelenka
cfec76eba5
Fix flaky tests by disallowing parallel run 2026-11-22 14:12:43 +01:00
Jakub Zelenka
63e483b4eb
Fix keylistiterator crashes, arginfo and return types 2026-11-22 14:04:47 +01:00
Jakub Zelenka
2be7fb39e0
Fix addsignkey arginfo to make passphrase optional 2026-11-22 14:04:47 +01:00
Jakub Zelenka
42dfddf150
Fix listsignatures permanently changing keylist mode 2026-11-22 14:04:46 +01:00
Jakub Zelenka
1335e7a30b
Fix keyinfo leaving EOF error in error info 2026-11-22 14:04:46 +01:00
Jakub Zelenka
d0504fcd09
Fix seterrormode and setsignmode returning true for invalid mode 2026-11-22 14:04:46 +01:00
Jakub Zelenka
6d422a3490
Fix stale error message hiding sign and decrypt errors 2026-11-22 14:04:46 +01:00
Jakub Zelenka
07ac28927e
Fix use of uninitialized input buffer in decrypt and decryptverify 2026-11-22 14:04:45 +01:00
Jakub Zelenka
dd7b83b02d
Fix invalid memory access and leaks in verify and decryptverify 2026-11-22 14:04:45 +01:00
Jakub Zelenka
b3f69f16da
Fix NULL user ID hint dereference in sign passphrase callback 2026-11-22 14:04:45 +01:00
Jakub Zelenka
de55676c6b
Fix use after free of passphrase in addsignkey and adddecryptkey 2026-11-22 14:04:45 +01:00
Jakub Zelenka
f8ea5648b3
Fix memory corruption when cloning objects by disallowing clone 2026-11-22 14:04:45 +01:00
Jakub Zelenka
2bec821239
Fix build with PHP master by replacing XtOffsetOf with offsetof 2026-11-22 14:04:44 +01:00
Jakub Zelenka
9ccd9aadfa
Convert all functions to use objects and drop a resource (#64)
This is a breaking changes but impact should be quite small - only users
that use is_resource will need to update code.
2026-01-07 19:59:02 +01:00
Jakub Zelenka
5081dab5fc
Remove compatibility with PHP 7.1 and older (#63)
It means minimal PHP version is 7.2
2025-12-06 17:34:02 +01:00
Jakub Zelenka
4b9160b94d
Fix typos in tests 2025-09-11 12:38:08 +02:00
Jakub Zelenka
6eda368b55
Fix #62: Allow clear sig variant without new line in tests 2025-09-11 12:34:51 +02:00
Jakub Zelenka
ced3b06792
Release 1.5.4 gnupg-1.5.4 2025-08-08 15:01:04 +02:00
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
Jakub Zelenka
3a07110cc7
Update phpc to restore PHP 5 support 2025-08-08 13:52:09 +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
0ebdb02515
Release 1.5.3 gnupg-1.5.3 2025-06-02 20:53:52 +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
Remi Collet
91e92a2690
fix tests with 5.6 (#53) 2025-04-22 15:36:00 +02:00
Remi Collet
5a8bf5aa93
clean hidden files (#54) 2025-04-22 15:32:07 +02:00
Jakub Zelenka
436dc89e9c
Remove ubuntu-20.04 from CI 2025-04-22 15:31:55 +02:00
Jakub Zelenka
5273d9fa42
Fix package.xml formatting and add missing no_uid_hint_msg.gpg 2025-04-08 14:03:57 +02:00
Jakub Zelenka
ca7272b732
Release 1.5.2 gnupg-1.5.2 2025-04-08 12:29:42 +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
473cfc78f7
Ignore config.cache 2025-03-18 17:37:06 +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
f1e00ddd48
Update CI deps and check the submodule out 2025-02-15 12:07:32 +01:00
Jakub Zelenka
7fc5c9a09c
Add CI 2025-02-15 12:02:22 +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
90974437d8
Remove TODO.md
All the main TODO items should go to GH issues and my personal TODO is
in https://github.com/bukka/php-todo/blob/master/php-gnupg.md
2025-02-05 15:00:22 +01:00
Jakub Zelenka
b0b84c5ac1
Add /opt/homebrew to the configuration SEARCH_PATH (#43) 2022-02-20 21:06:23 +00:00
Jakub Zelenka
0271998c03 Update TODO 2022-01-02 21:07:23 +00:00
Jakub Zelenka
c4b61386a8 Release 1.5.1 gnupg-1.5.1 2021-12-31 22:14:42 +00:00
Jakub Zelenka
419ca69bf9 Update NEWS 2021-12-30 22:13:43 +00:00
Jakub Zelenka
ea0ccc2c9b Fix bug #81004 - subkey curve not available before gpgme 1.5.0 2021-12-30 22:11:28 +00:00
Jakub Zelenka
0909bae078 Update phpc with addition of ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX 2021-09-19 20:02:12 +01:00
Remi Collet
71a71709b5
Fix iterator prototypes for PHP 8.1 (#35)
* Fix iterator prototypes for PHP 8.1

* Simplify previous

* use ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX from phpc
2021-09-19 20:01:29 +01:00
Jakub Zelenka
017a7e8c06 Update TODO list with one more item 2021-08-15 21:35:26 +01:00
Jakub Zelenka
01de6c20dc Update TODO list 2021-08-15 21:30:55 +01:00
Jakub Zelenka
866c3b47a3
Release 1.5.0 gnupg-1.5.0 2021-04-10 22:18:58 +01:00
Jakub Zelenka
d2b0dd4def
Fix package.json formatting 2021-04-10 19:48:55 +01:00