Next: , Previous: , Up: Context Attributes   [Contents][Index]


7.4.6 Offline Mode

Function: void gpgme_set_offline (gpgme_ctx_t ctx, int yes)

SINCE: 1.6.0

The function gpgme_set_offline specifies if offline mode should be used. By default, offline mode is not used.

The offline mode specifies if dirmngr should be used to do additional validation that might require connections to external services. (e.g. CRL / OCSP checks).

Offline mode only affects the keylist mode GPGME_KEYLIST_MODE_VALIDATE and is only relevant to the CMS crypto engine. Offline mode is ignored otherwise.

This option may be extended in the future to completely disable the use of dirmngr for any engine.

Offline mode is disabled if yes is zero, and enabled otherwise.

Function: int gpgme_get_offline (gpgme_ctx_t ctx)

SINCE: 1.6.0

The function gpgme_get_offline returns 1 if offline mode is enabled, and 0 if it is not, or if ctx is not a valid pointer.