Set pinentry mode to GPGME_PINENTRY_MODE_LOOPBACK

This allows passphrase callback mechanism in GnuPG 2.1+
This commit is contained in:
Jakub Zelenka 2018-05-21 16:33:23 +01:00
parent 7116749cb1
commit 8c55c26189

View file

@ -170,6 +170,7 @@ static void php_gnupg_this_make(PHPC_THIS_DECLARE(gnupg), zval *options TSRMLS_D
ctx, GPGME_PROTOCOL_OpenPGP, file_name, home_dir);
}
gpgme_set_armor(ctx, 1);
gpgme_set_pinentry_mode(ctx, GPGME_PINENTRY_MODE_LOOPBACK);
}
}
/* }}} */