mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-12-23 02:11:40 +00:00
Fix bug #60916
This commit is contained in:
parent
7bba784b63
commit
da03741809
1 changed files with 3 additions and 0 deletions
3
gnupg.c
3
gnupg.c
|
@ -137,6 +137,9 @@ static void gnupg_res_init(gnupg_object *intern TSRMLS_DC){
|
|||
gpgme_ctx_t ctx;
|
||||
gpgme_check_version (NULL);
|
||||
gpgme_new (&ctx);
|
||||
#ifdef GNUPG_PATH
|
||||
gpgme_ctx_set_engine_info(ctx, GPGME_PROTOCOL_OpenPGP, GNUPG_PATH, NULL);
|
||||
#endif
|
||||
gpgme_set_armor (ctx,1);
|
||||
intern->ctx = ctx;
|
||||
intern->encryptkeys = NULL;
|
||||
|
|
Loading…
Reference in a new issue