Fix bug #81004 - subkey curve not available before gpgme 1.5.0

This commit is contained in:
Jakub Zelenka 2021-12-30 22:11:28 +00:00
parent 0909bae078
commit ea0ccc2c9b

View file

@ -1117,7 +1117,7 @@ PHP_FUNCTION(gnupg_keyinfo)
if (gpgme_subkey->card_number) { if (gpgme_subkey->card_number) {
PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR(subkey, card_number, gpgme_subkey); 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) { if (gpgme_subkey->curve) {
PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR(subkey, curve, gpgme_subkey); PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR(subkey, curve, gpgme_subkey);
} }