File: gpgme.info, Node: Text Mode, Next: Offline Mode, Prev: ASCII Armor, Up: Context Attributes 7.4.5 Text Mode --------------- -- Function: void gpgme_set_textmode (gpgme_ctx_t CTX, int YES) The function ‘gpgme_set_textmode’ specifies if canonical text mode should be used. By default, text mode is not used. Text mode is for example used for the RFC2015 signatures; note that the updated RFC 3156 mandates that the mail user agent does some preparations so that text mode is not needed anymore. This option is only relevant to the OpenPGP crypto engine, and ignored by all other engines. Canonical text mode is disabled if YES is zero, and enabled otherwise. -- Function: int gpgme_get_textmode (gpgme_ctx_t CTX) The function ‘gpgme_get_textmode’ returns 1 if canonical text mode is enabled, and ‘0’ if it is not, or if CTX is not a valid pointer.