mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-25 15:37:09 +00:00
revert order..
This commit is contained in:
parent
478565c0f1
commit
e25d293132
1 changed files with 4 additions and 3 deletions
7
gnupg.c
7
gnupg.c
|
@ -871,6 +871,10 @@ PHP_FUNCTION(gnupg_keyinfo)
|
|||
PHPC_VAL_MAKE(subkey);
|
||||
PHPC_ARRAY_INIT(PHPC_VAL_CAST_TO_PZVAL(subkey));
|
||||
|
||||
if (gpgme_subkey->fpr) {
|
||||
PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR_EX(subkey, fingerprint, gpgme_subkey, fpr);
|
||||
}
|
||||
|
||||
PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR(subkey, keyid, gpgme_subkey);
|
||||
PHP_GNUPG_ARRAY_ADD_ASSOC_LONG(subkey, timestamp, gpgme_subkey);
|
||||
PHP_GNUPG_ARRAY_ADD_ASSOC_LONG(subkey, expires, gpgme_subkey);
|
||||
|
@ -897,9 +901,6 @@ PHP_FUNCTION(gnupg_keyinfo)
|
|||
*/
|
||||
PHP_GNUPG_ARRAY_ADD_ASSOC_LONG(subkey, pubkey_algo, gpgme_subkey);
|
||||
PHP_GNUPG_ARRAY_ADD_ASSOC_LONG(subkey, length, gpgme_subkey);
|
||||
if (gpgme_subkey->fpr) {
|
||||
PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR_EX(subkey, fingerprint, gpgme_subkey, fpr);
|
||||
}
|
||||
#if GPGME_VERSION_NUMBER >= 0x010700 /* GPGME >= 1.7.0 */
|
||||
if (gpgme_subkey->keygrip) {
|
||||
PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR(subkey, keygrip, gpgme_subkey);
|
||||
|
|
Loading…
Reference in a new issue