X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=keymap.c;h=272fe0aff625057b3c5a036fffe0af426eab4454;hp=bc577b7b6358df39b7d5a2f1069e231e50ef69e2;hb=6771688a116512f5fc5ce0844dc5987a22c2e0f6;hpb=238b70e39b78f585c586bd51aef41988b3cc73d1 diff --git a/keymap.c b/keymap.c index bc577b7..272fe0a 100644 --- a/keymap.c +++ b/keymap.c @@ -16,12 +16,12 @@ #include #include #include +#include #include "mutt.h" #include "mutt_menu.h" #include "mutt_curses.h" #include "keymap.h" -#include "mapping.h" #include "mutt_crypt.h" @@ -29,7 +29,8 @@ #include #include -#include "functions.h" +#define MUTT_FUNCTIONS_VALUES +#include "functions.def" struct mapping_t Menus[] = { {"alias", MENU_ALIAS}, @@ -528,11 +529,8 @@ void km_init (void) create_bindings (OpAlias, MENU_ALIAS); - if ((WithCrypto & APPLICATION_PGP)) - create_bindings (OpPgp, MENU_PGP); - - if ((WithCrypto & APPLICATION_SMIME)) - create_bindings (OpSmime, MENU_SMIME); + create_bindings (OpPgp, MENU_PGP); + create_bindings (OpSmime, MENU_SMIME); #ifdef CRYPT_BACKEND_GPGME create_bindings (OpPgp, MENU_KEY_SELECT_PGP); @@ -754,7 +752,7 @@ struct binding_t *km_get_table (int menu) return OpQuery; case MENU_PGP: - return (WithCrypto & APPLICATION_PGP) ? OpPgp : NULL; + return OpPgp; #ifdef CRYPT_BACKEND_GPGME case MENU_KEY_SELECT_PGP: