Lines 352-357
Link Here
|
352 |
GpgmeLocaleSet = 1; |
352 |
GpgmeLocaleSet = 1; |
353 |
} |
353 |
} |
354 |
|
354 |
|
|
|
355 |
gpgme_check_version (NULL); |
355 |
err = gpgme_new (&ctx); |
356 |
err = gpgme_new (&ctx); |
356 |
if (err) |
357 |
if (err) |
357 |
{ |
358 |
{ |
Lines 581-586
Link Here
|
581 |
gpgme_key_t key = NULL; |
582 |
gpgme_key_t key = NULL; |
582 |
gpgme_ctx_t context = NULL; |
583 |
gpgme_ctx_t context = NULL; |
583 |
|
584 |
|
|
|
585 |
gpgme_check_version (NULL); |
584 |
err = gpgme_new (&context); |
586 |
err = gpgme_new (&context); |
585 |
if (! err) |
587 |
if (! err) |
586 |
err = gpgme_set_protocol (context, protocol); |
588 |
err = gpgme_set_protocol (context, protocol); |
Lines 1869-1874
Link Here
|
1869 |
int more; |
1871 |
int more; |
1870 |
int rc = -1; |
1872 |
int rc = -1; |
1871 |
|
1873 |
|
|
|
1874 |
gpgme_check_version (NULL); |
1872 |
if ((err = gpgme_new (&tmpctx)) != GPG_ERR_NO_ERROR) |
1875 |
if ((err = gpgme_new (&tmpctx)) != GPG_ERR_NO_ERROR) |
1873 |
{ |
1876 |
{ |
1874 |
dprint (1, (debugfile, "Error creating GPGME context\n")); |
1877 |
dprint (1, (debugfile, "Error creating GPGME context\n")); |
Lines 3460-3465
Link Here
|
3460 |
|
3463 |
|
3461 |
print_key_info (key->kobj, fp); |
3464 |
print_key_info (key->kobj, fp); |
3462 |
|
3465 |
|
|
|
3466 |
gpgme_check_version (NULL); |
3463 |
err = gpgme_new (&listctx); |
3467 |
err = gpgme_new (&listctx); |
3464 |
if (err) |
3468 |
if (err) |
3465 |
{ |
3469 |
{ |
Lines 3583-3588
Link Here
|
3583 |
if (!pattern) |
3587 |
if (!pattern) |
3584 |
return NULL; |
3588 |
return NULL; |
3585 |
|
3589 |
|
|
|
3590 |
gpgme_check_version (NULL); |
3586 |
err = gpgme_new (&ctx); |
3591 |
err = gpgme_new (&ctx); |
3587 |
if (err) |
3592 |
if (err) |
3588 |
{ |
3593 |
{ |