This commit is contained in:
Rasmus Lerdorf 2012-01-29 02:42:28 +00:00
parent 7bba784b63
commit da03741809

View file

@ -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;