Fix compatibility with gpgme > 1.2.0

This commit is contained in:
Michael Maclean 2010-07-20 18:48:19 +00:00
parent 994d965681
commit 8f439b534f

View file

@ -134,6 +134,7 @@ static void gnupg_res_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) {
static void gnupg_res_init(gnupg_object *intern TSRMLS_DC){
/* init the gpgme-lib and set the default values */
gpgme_ctx_t ctx;
gpgme_check_version (NULL);
gpgme_new (&ctx);
gpgme_set_armor (ctx,1);
intern->ctx = ctx;