mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-25 23:47:08 +00:00
Set pinentry mode to GPGME_PINENTRY_MODE_LOOPBACK
This allows passphrase callback mechanism in GnuPG 2.1+
This commit is contained in:
parent
7116749cb1
commit
8c55c26189
1 changed files with 1 additions and 0 deletions
1
gnupg.c
1
gnupg.c
|
@ -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);
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Reference in a new issue