#ifdef USE_AUTOCRYPT
int result;
- set_option (OPTAUTOCRYPTGPGME);
- result = pgp_gpgme_decrypt_mime (a, b, c, d);
- unset_option (OPTAUTOCRYPTGPGME);
- if (result == 0)
+ if (option (OPTAUTOCRYPT))
{
- c->is_autocrypt = 1;
- return result;
+ set_option (OPTAUTOCRYPTGPGME);
+ result = pgp_gpgme_decrypt_mime (a, b, c, d);
+ unset_option (OPTAUTOCRYPTGPGME);
+ if (result == 0)
+ {
+ c->is_autocrypt = 1;
+ return result;
+ }
}
#endif
#ifdef USE_AUTOCRYPT
int result;
- set_option (OPTAUTOCRYPTGPGME);
- result = pgp_gpgme_encrypted_handler (a, s);
- unset_option (OPTAUTOCRYPTGPGME);
- if (result == 0)
+ if (option (OPTAUTOCRYPT))
{
- a->is_autocrypt = 1;
- return result;
+ set_option (OPTAUTOCRYPTGPGME);
+ result = pgp_gpgme_encrypted_handler (a, s);
+ unset_option (OPTAUTOCRYPTGPGME);
+ if (result == 0)
+ {
+ a->is_autocrypt = 1;
+ return result;
+ }
}
#endif