Commit graph

236 commits

Author SHA1 Message Date
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 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 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 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 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 2021-04-10 22:18:58 +01:00
Jakub Zelenka
d2b0dd4def
Fix package.json formatting 2021-04-10 19:48:55 +01:00
Jakub Zelenka
45897ba6cd
Create a new README and some minor info updates 2021-04-10 19:42:28 +01:00
Jakub Zelenka
f582374e07 Release 1.5.0RC2 2021-03-07 17:21:11 +00:00
Jakub Zelenka
d32d75b6eb Merge branch 'arjendekorte-patch-1' 2021-03-07 16:57:08 +00:00
Arjen de Korte
82bde58b7a config.m4: Add largefile support
The GPGME uses AC_SYS_LARGEFILE in its `configure.ac`, which makes it expects largefile support to be enabled when the system supports it. See the following from https://gnupg.org/documentation/manuals/gpgme/Largefile-Support-_0028LFS_0029.html:

"On POSIX platforms you can enable largefile support, if it is different from the default on the system the application is compiled on, by using the Autoconf macro AC_SYS_LARGEFILE. If you do this, then you don’t need to worry about anything else: It will just work. In this case you might also want to use AC_FUNC_FSEEKO to take advantage of some new interfaces, and AC_TYPE_OFF_T (just in case)."

Adding this is required on 32-bits and optional on 64-bits platforms.
2021-03-07 16:56:25 +00:00
Jakub Zelenka
75813dfb81
Merge pull request #27 from remicollet/issue-checkver
fix build with old libgpgme 1.3
2021-03-07 16:40:48 +00:00
Remi Collet
dc8fed26a6 add check for libgpgme version 1.3.0 2021-02-19 07:17:46 +01:00
Jakub Zelenka
bedfafbdbd
Merge pull request #25 from remicollet/issue-missing-inc
Add missing files for test suite in pecl archive
2021-02-17 20:51:50 +00:00
Jakub Zelenka
ccb1e4730e
Merge pull request #26 from remicollet/issue-fix-clean
Cleanup socket files
2021-02-17 20:51:24 +00:00
Remi Collet
618e7ffc69 fix build with libgpgme 1.3 2021-02-15 08:04:36 +01:00
Remi Collet
68055f20f9 also cleanup socket files 2021-02-15 07:17:40 +01:00
Remi Collet
48fdee8681 add missing files for test suite in pecl archive 2021-02-15 07:12:18 +01:00
Jakub Zelenka
3cd5970076 Release 1.5.0RC1 2021-02-14 19:46:12 +00:00
Jakub Zelenka
100a19ce40 Fix arginfos and tests for PHP 8 2021-02-14 19:18:00 +00:00
Jakub Zelenka
542d121eca Fix tests to work correctly with gpg1 and older gpgme versions 2021-02-14 18:49:40 +00:00
Jakub Zelenka
75a9b387ea Fix tests with gpg2 2021-02-14 18:29:37 +00:00