1. 04 Jan, 2019 1 commit
    • Kevin J. McCarthy's avatar
      Clean up code indentation. · 248c2ee8
      Kevin J. McCarthy authored
      These are mostly automated changes corresponding to the emacs
        (c-set-style "linux")
        (setq c-basic-offset 2)
        (c-set-offset 'case-label '+)
      Most of the code follows the convention:
        (add-to-list 'c-cleanup-list 'space-before-funcall)
      but this is not enforced by this indentation cleanup.
      Also, I personally dislike tabs, so I have:
        (setq-default indent-tabs-mode nil)
      in my own configuration.  However I have no desire to change every line
      just for that effect.  So this cleanup does nothing about the mix issue.
      Some of the secondary files (e.g. regex.c) have been skipped.
      I've also skipped crypt-gpgme.c, because I need to think about that
      file.  Werner Koch and the GnuPG team contributed most it, and it
      follows the Gnu indentation settings.  It should probably be made
      uniform with Mutt, but I don't want to discourage future GnuPG
      contribution to the file.
      I manually reverted a few unsightly cleanups, and added a few tweeks
      when I saw things that could be improved.
  2. 05 Dec, 2018 1 commit
  3. 27 Mar, 2017 1 commit
  4. 30 Mar, 2015 2 commits
    • Kevin J. McCarthy's avatar
      Introduce an oppenc_mode parameter · 4615a829
      Kevin J. McCarthy authored
      It's added to the parameter lists through the call stack down to the
      find_keys calls.
      No functionality is implemented yet.  This patch is separated just to
      keep other patches more readable.
    • Kevin J. McCarthy's avatar
      Refactor the address list generation out of the find_keys routines. · ecbba07c
      Kevin J. McCarthy authored
      All four find_keys routines have a similar set up code for generating a
      single address list out of the to, cc, bcc lists.  This patch pulls all
      the code into crypt_get_keys.
      This is done to simplify the functions before later patches make them
      more complicated (with the oppenc_mode parameter).
  5. 24 Feb, 2007 1 commit
  6. 17 Sep, 2005 2 commits
  7. 11 Aug, 2005 1 commit
  8. 03 Feb, 2005 1 commit
  9. 17 Jun, 2004 1 commit
    • Moritz Schulte's avatar
      This is the sequel to the crypto modularization changes I did on · e48dd50a
      Moritz Schulte authored
      2003-01-21.  Moritz added another abstraction layer which cleans up
      the code and allows the crypto modules to use their own option menu.
      Everything should work as it used to but is now in a really good
      shape for part III, the Return of the GnuPG Easy Makers. -wk
      * crypt-mod-pgp-classic.c, crypt-mod-smime-classic.c, crypt-mod.c,
      crypt-mod.h: New files.
      * smime.c (smime_valid_passphrase, smime_send_menu): New functions.
      * smime.h: Removed macro: smime_valid_passphrase.
      Declared: smime_valid_passphrase, smime_send_menu.
      * pgp.c: Include "mutt_menu.h".
      (pgp_valid_passphrase, pgp_send_menu): New functions.
      * pgp.h: Removed macro: pgp_valid_passphrase.
      Declared: pgp_valid_passphrase, pgp_send_menu.
      * mutt_curses.h: Declare: mutt_need_hard_redraw.
      * mutt_crypt.h: Declare: crypt_pgp_valid_passphrase,
      crypt_pgp_send_menu, crypt_smime_valid_passphrase,
      crypt_smime_send_menu, crypt_init.
      Adjust WithCrypto definition since the GPGME backend does not
      exclude anymore the other `classic' backends.
      (KEYFLAG_ISX509): New symbol.
      * mutt.h (enum): New symbol: OPTCRYPTUSEGPGME.
      (struct body): New member: is_signed_data, warnsig.
      * main.c (main): Call crypt_init.
      * keymap.c (km_get_table): Support for MENU_KEY_SELECT_PGP and
      (Menus): Added entries fuer MENU_KEY_SELECT_PGP and
      (km_init): Create bindings for MENU_KEY_SELECT_PGP and
      * keymap.h (enum): New enum symbols: MENU_KEY_SELECT_PGP,
      * init.h: New configuration variable: crypt_use_gpgme.
      * compose.c (pgp_send_menu, smime_send_menu): Removed functions,
      they are now contained in the crypto backend modules.
      (mutt_compose_menu): Use crypt_pgp_send_menu and
      crypt_smime_send_menu instead pgp_send_menu and smime_send_menu.
      * cryptglue.c: Slightly rewritten in order to make use of the
      module mechanism used to access crypto backends.
      * curs_lib.c (mutt_need_hard_redraw): New function.
      * crypt.c (crypt_forget_passphrase): Adjust for new crypto backend
      (crypt_valid_passphrase): Stripped, use calls to
      crypt_pgp_valid_passphrase and crypt_smime_valid_passphrase.