NeoMutt  2023-05-17-56-ga67199
Teaching an old dog new tricks
DOXYGEN
config.c File Reference

Config used by libncrypt. More...

#include "config.h"
#include <stddef.h>
#include <config/lib.h>
#include <stdbool.h>
#include "mutt/lib.h"
+ Include dependency graph for config.c:

Go to the source code of this file.

Functions

bool config_init_ncrypt (struct ConfigSet *cs)
 Register ncrypt config variables - Implements module_init_config_t -. More...
 

Variables

static const struct Mapping SortKeyMethods []
 Sort methods for encryption keys. More...
 
static struct ConfigDef NcryptVars []
 Config definitions for the encryption library. More...
 
static struct ConfigDef NcryptVarsGpgme []
 GPGME Config definitions for the encryption library. More...
 
static struct ConfigDef NcryptVarsPgp []
 PGP Config definitions for the encryption library. More...
 
static struct ConfigDef NcryptVarsSmime []
 SMIME Config definitions for the encryption library. More...
 

Detailed Description

Config used by libncrypt.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file config.c.

Variable Documentation

◆ SortKeyMethods

const struct Mapping SortKeyMethods[]
static
Initial value:
= {
{ "address", SORT_ADDRESS },
{ "date", SORT_DATE },
{ "keyid", SORT_KEYID },
{ "trust", SORT_TRUST },
{ NULL, 0 },
}
@ SORT_TRUST
Sort by encryption key's trust level.
Definition: sort2.h:52
@ SORT_KEYID
Sort by the encryption key's ID.
Definition: sort2.h:51
@ SORT_DATE
Sort by the date the email was sent.
Definition: sort2.h:39
@ SORT_ADDRESS
Sort by email address.
Definition: sort2.h:50

Sort methods for encryption keys.

Definition at line 38 of file config.c.

◆ NcryptVars

struct ConfigDef NcryptVars[]
static

Config definitions for the encryption library.

Definition at line 51 of file config.c.

◆ NcryptVarsGpgme

struct ConfigDef NcryptVarsGpgme[]
static
Initial value:
= {
{ "crypt_use_gpgme", DT_BOOL, true, 0, NULL,
"Use GPGME crypto backend"
},
{ "crypt_use_pka", DT_BOOL, false, 0, NULL,
"Use GPGME to use PKA (lookup PGP keys using DNS)"
},
{ NULL },
}
#define DT_BOOL
boolean option
Definition: types.h:30

GPGME Config definitions for the encryption library.

Definition at line 156 of file config.c.

◆ NcryptVarsPgp

struct ConfigDef NcryptVarsPgp[]
static

PGP Config definitions for the encryption library.

Definition at line 173 of file config.c.

◆ NcryptVarsSmime

struct ConfigDef NcryptVarsSmime[]
static

SMIME Config definitions for the encryption library.

Definition at line 243 of file config.c.