refactor import_keys to take directly an open file.
[apps/madmutt.git] / lib-crypt / crypt.h
index f9dc9a7..247232b 100644 (file)
@@ -91,9 +91,6 @@ void convert_to_7bit (BODY *);
 
 /*-- crypt.c --*/
 
-/* Print the current time. */
-void crypt_current_time (STATE * s, const char *app_name);
-
 /* Check out the type of encryption used and set the cached status
    values if there are any. */
 int crypt_query (BODY * m);
@@ -118,13 +115,6 @@ int crypt_valid_passphrase (int);
 /* 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);
 
@@ -144,9 +134,6 @@ pgp_key_t crypt_pgp_ask_for_key (char *tag, char *whatfor,
 /* Check for a traditional PGP message in body B. */
 int crypt_pgp_check_traditional (FILE * fp, BODY * b, int tagged_only);
 
-/* fixme: needs documentation. */
-BODY *crypt_pgp_traditional_encryptsign (BODY * a, int flags, char *keylist);
-
 /* Release the PGP key KPP (note, that we pass a pointer to it). */
 void crypt_pgp_free_key (pgp_key_t * kpp);
 
@@ -164,8 +151,7 @@ BODY *crypt_pgp_sign_message (BODY * a);
    later.  This is necessary for $fcc_attach. */
 BODY *crypt_pgp_encrypt_message (BODY * a, char *keylist, int sign);
 
-/* Invoke the PGP command to import a key. */
-void crypt_pgp_invoke_import (const char *fname);
+void crypt_invoke_import(FILE *stream, int smime);
 
 int crypt_pgp_send_menu (HEADER * msg, int *redraw);
 
@@ -180,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);
 
@@ -213,14 +191,9 @@ BODY *crypt_smime_sign_message (BODY * a);
 /* fixme: needs documentation. */
 BODY *crypt_smime_build_smime_entity (BODY * a, char *certlist);
 
-/* Add a certificate and update index file (externally). */
-void crypt_smime_invoke_import (char *infile, char *mailbox);
-
 int crypt_smime_send_menu (HEADER * msg, int *redraw);
 
 /* fixme: needs documentation */
 int crypt_smime_verify_one (BODY * sigbdy, STATE * s, const char *tempf);
 
-void crypt_init (void);
-
 #endif /*MUTT_CRYPT_H */