Thanks to visit codestin.com
Credit goes to code.neomutt.org

NeoMutt  2025-12-11-189-gceedb6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
functions.c File Reference

PGP/Smime functions. More...

#include "config.h"
#include <stddef.h>
#include "gui/lib.h"
#include "key/lib.h"
#include "menu/lib.h"
#include "ncrypt/lib.h"
+ Include dependency graph for functions.c:

Go to the source code of this file.

Functions

void pgp_init_keys (struct SubMenu *sm_generic)
 Initialise the PGP Keybindings - Implements ::init_keys_api.
 

Variables

static const struct MenuFuncOp OpPgp []
 Functions for the Pgp Menu.
 
static const struct MenuFuncOp OpSmime []
 Functions for the Smime Menu.
 
static const struct MenuOpSeq PgpDefaultBindings []
 Key bindings for the Pgp Menu.
 
static const struct MenuOpSeq SmimeDefaultBindings []
 Key bindings for the Smime Menu.
 

Detailed Description

PGP/Smime functions.

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 functions.c.

Function Documentation

◆ pgp_init_keys()

void pgp_init_keys ( struct SubMenu * sm_generic)

Initialise the PGP Keybindings - Implements ::init_keys_api.

Definition at line 89 of file functions.c.

90{
91 struct MenuDefinition *md = NULL;
92 struct SubMenu *sm = NULL;
93
95 md = km_register_menu(MENU_PGP, "pgp");
96 km_menu_add_submenu(md, sm);
97 km_menu_add_submenu(md, sm_generic);
99
101 md = km_register_menu(MENU_SMIME, "smime");
102 km_menu_add_submenu(md, sm);
103 km_menu_add_submenu(md, sm_generic);
105}
void km_menu_add_submenu(struct MenuDefinition *md, struct SubMenu *sm)
Add a SubMenu to a Menu Definition.
Definition init.c:123
struct SubMenu * km_register_submenu(const struct MenuFuncOp functions[])
Register a submenu.
Definition init.c:91
struct MenuDefinition * km_register_menu(int menu, const char *name)
Register a menu.
Definition init.c:107
void km_menu_add_bindings(struct MenuDefinition *md, const struct MenuOpSeq bindings[])
Add Keybindings to a Menu.
Definition init.c:136
static const struct MenuFuncOp OpSmime[]
Functions for the Smime Menu.
Definition functions.c:54
static const struct MenuFuncOp OpPgp[]
Functions for the Pgp Menu.
Definition functions.c:44
static const struct MenuOpSeq PgpDefaultBindings[]
Key bindings for the Pgp Menu.
Definition functions.c:66
static const struct MenuOpSeq SmimeDefaultBindings[]
Key bindings for the Smime Menu.
Definition functions.c:76
Functions for a Dialog or Window.
Definition menu.h:81
Collection of related functions.
Definition menu.h:69
@ MENU_PGP
PGP encryption menu.
Definition type.h:46
@ MENU_SMIME
SMIME encryption menu.
Definition type.h:50
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ OpPgp

const struct MenuFuncOp OpPgp[]
static
Initial value:
= {
{ "exit", OP_EXIT },
{ "verify-key", OP_VERIFY_KEY },
{ "view-name", OP_VIEW_ID },
{ NULL, 0 },
}

Functions for the Pgp Menu.

Definition at line 44 of file functions.c.

44 { /* map: pgp */
45 { "exit", OP_EXIT },
46 { "verify-key", OP_VERIFY_KEY },
47 { "view-name", OP_VIEW_ID },
48 { NULL, 0 },
49};

◆ OpSmime

const struct MenuFuncOp OpSmime[]
static
Initial value:
= {
{ "exit", OP_EXIT },
{ "verify-key", OP_VERIFY_KEY },
{ "view-name", OP_VIEW_ID },
{ NULL, 0 },
}

Functions for the Smime Menu.

Definition at line 54 of file functions.c.

54 { /* map: smime */
55 { "exit", OP_EXIT },
56#ifdef CRYPT_BACKEND_GPGME
57 { "verify-key", OP_VERIFY_KEY },
58 { "view-name", OP_VIEW_ID },
59#endif
60 { NULL, 0 },
61};

◆ PgpDefaultBindings

const struct MenuOpSeq PgpDefaultBindings[]
static
Initial value:
= {
{ OP_EXIT, "q" },
{ OP_VERIFY_KEY, "c" },
{ OP_VIEW_ID, "%" },
{ 0, NULL },
}

Key bindings for the Pgp Menu.

Definition at line 66 of file functions.c.

66 { /* map: pgp */
67 { OP_EXIT, "q" },
68 { OP_VERIFY_KEY, "c" },
69 { OP_VIEW_ID, "%" },
70 { 0, NULL },
71};

◆ SmimeDefaultBindings

const struct MenuOpSeq SmimeDefaultBindings[]
static
Initial value:
= {
{ OP_EXIT, "q" },
{ OP_VERIFY_KEY, "c" },
{ OP_VIEW_ID, "%" },
{ 0, NULL },
}

Key bindings for the Smime Menu.

Definition at line 76 of file functions.c.

76 { /* map: smime */
77 { OP_EXIT, "q" },
78#ifdef CRYPT_BACKEND_GPGME
79 { OP_VERIFY_KEY, "c" },
80 { OP_VIEW_ID, "%" },
81#endif
82 { 0, NULL },
83};