X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-crypt%2Fcrypt.h;h=45cb9524233ab4c9fd0349e605c47b0122902fb9;hb=1e73e3243b4a748ee98b58f6f2512a14785bb36d;hp=3a2a20700c236ef2c435db4f90f21554d995e504;hpb=774b53097f8c8b62c5101bce8f313d339387a438;p=apps%2Fmadmutt.git diff --git a/lib-crypt/crypt.h b/lib-crypt/crypt.h index 3a2a207..45cb952 100644 --- a/lib-crypt/crypt.h +++ b/lib-crypt/crypt.h @@ -16,14 +16,13 @@ #ifndef MUTT_CRYPT_H #define MUTT_CRYPT_H -#include "mutt.h" /* Need this to declare BODY, address_t. STATE etc. */ +#include #include "state.h" /* FIXME: They should be pointer to anonymous structures for better information hiding. */ - #define ENCRYPT (1 << 0) #define SIGN (1 << 1) #define GOODSIGN (1 << 2) @@ -107,30 +106,11 @@ void crypt_extract_keys_from_messages (HEADER * h); Return the list of keys in KEYLIST. */ int crypt_get_keys (HEADER * msg, char **keylist); -/* Forget a passphrase and display a message. */ -void crypt_forget_passphrase (void); - -/* Check that we have a usable passphrase, ask if not. */ -int crypt_valid_passphrase (int); - -/* Write the message body/part A described by state S to a the given - TEMPFILE. */ -int crypt_write_signed (BODY * a, STATE * s, const char *tempf); - - - /*-- cryptglue.c --*/ /* Show a message that a backend will be invoked. */ void crypt_invoke_message (int type); - -/* Silently forget about a passphrase. */ -void crypt_pgp_void_passphrase (void); - -int crypt_pgp_valid_passphrase (void); - - /* Decrypt a PGP/MIME message. */ int crypt_pgp_decrypt_mime (FILE * a, FILE ** b, BODY * c, BODY ** d); @@ -186,14 +166,6 @@ void crypt_pgp_extract_keys_from_attachment_list (FILE * fp, int tag, BODY * top); - - - -/* Silently forget about a passphrase. */ -void crypt_smime_void_passphrase (void); - -int crypt_smime_valid_passphrase (void); - /* Decrypt an S/MIME message. */ int crypt_smime_decrypt_mime (FILE * a, FILE ** b, BODY * c, BODY ** d);