From ea0ccc2c9b81cae3c5fc5608bf676b60d5afffd0 Mon Sep 17 00:00:00 2001 From: Jakub Zelenka Date: Thu, 30 Dec 2021 22:11:28 +0000 Subject: [PATCH] Fix bug #81004 - subkey curve not available before gpgme 1.5.0 --- gnupg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnupg.c b/gnupg.c index 67e8c7f..dae7bf4 100644 --- a/gnupg.c +++ b/gnupg.c @@ -1117,7 +1117,7 @@ PHP_FUNCTION(gnupg_keyinfo) if (gpgme_subkey->card_number) { PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR(subkey, card_number, gpgme_subkey); } -#if GPGME_VERSION_NUMBER >= 0x010403 /* GPGME >= 1.4.3 */ +#if GPGME_VERSION_NUMBER >= 0x010500 /* GPGME >= 1.5.0 */ if (gpgme_subkey->curve) { PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR(subkey, curve, gpgme_subkey); }