Autocrypt end-to-end encryption. More...
#include <sqlite3.h>
#include <stdbool.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | AutocryptAccount |
Autocrypt account. More... | |
struct | AutocryptPeer |
Autocrypt peer. More... | |
struct | AutocryptPeerHistory |
Autocrypt peer history. More... | |
struct | AutocryptGossipHistory |
Autocrypt gossip history. More... | |
Enumerations | |
enum | AutocryptRec { AUTOCRYPT_REC_OFF , AUTOCRYPT_REC_NO , AUTOCRYPT_REC_DISCOURAGE , AUTOCRYPT_REC_AVAILABLE , AUTOCRYPT_REC_YES } |
Recommendation. More... | |
Functions | |
void | dlg_autocrypt (void) |
Display the Autocrypt account Menu -. | |
void | mutt_autocrypt_cleanup (void) |
Shutdown Autocrypt. | |
int | mutt_autocrypt_generate_gossip_list (struct Email *e) |
Create the gossip list headers. | |
int | mutt_autocrypt_init (bool can_create) |
Initialise Autocrypt. | |
int | mutt_autocrypt_process_autocrypt_header (struct Email *e, struct Envelope *env) |
Parse an Autocrypt email header. | |
int | mutt_autocrypt_process_gossip_header (struct Email *e, struct Envelope *prot_headers) |
Parse an Autocrypt email gossip header. | |
int | mutt_autocrypt_set_sign_as_default_key (struct Email *e) |
Set the Autocrypt default key for signing. | |
enum AutocryptRec | mutt_autocrypt_ui_recommendation (const struct Email *e, char **keylist) |
Get the recommended action for an Email. | |
int | mutt_autocrypt_write_autocrypt_header (struct Envelope *env, FILE *fp) |
Write the Autocrypt header to a file. | |
int | mutt_autocrypt_write_gossip_headers (struct Envelope *env, FILE *fp) |
Write the Autocrypt gossip headers to a file. | |
Variables | |
char * | AutocryptSignAs |
Autocrypt Key id to sign as. | |
char * | AutocryptDefaultKey |
Autocrypt default key id (used for postponing messages) | |
Autocrypt end-to-end encryption.
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 lib.h.
enum AutocryptRec |
Recommendation.
void mutt_autocrypt_cleanup | ( | void | ) |
Shutdown Autocrypt.
Definition at line 129 of file autocrypt.c.
int mutt_autocrypt_generate_gossip_list | ( | struct Email * | e | ) |
Create the gossip list headers.
e |
0 | Success |
-1 | Error |
Definition at line 823 of file autocrypt.c.
int mutt_autocrypt_init | ( | bool | can_create | ) |
Initialise Autocrypt.
can_create | If true, directories may be created |
0 | Success |
-1 | Error |
Definition at line 99 of file autocrypt.c.
Parse an Autocrypt email header.
0 | Success |
-1 | Error |
Definition at line 256 of file autocrypt.c.
Parse an Autocrypt email gossip header.
0 | Success |
-1 | Error |
Definition at line 404 of file autocrypt.c.
int mutt_autocrypt_set_sign_as_default_key | ( | struct Email * | e | ) |
Set the Autocrypt default key for signing.
e |
0 | Success |
-1 | Error |
Definition at line 697 of file autocrypt.c.
enum AutocryptRec mutt_autocrypt_ui_recommendation | ( | const struct Email * | e, |
char ** | keylist | ||
) |
Get the recommended action for an Email.
[in] | e | |
[out] | keylist | List of Autocrypt key ids |
enum | AutocryptRec Recommendation, e.g. AUTOCRYPT_REC_AVAILABLE |
If the recommendataion is > NO and keylist is not NULL, keylist will be populated with the autocrypt keyids.
Definition at line 558 of file autocrypt.c.
int mutt_autocrypt_write_autocrypt_header | ( | struct Envelope * | env, |
FILE * | fp | ||
) |
Write the Autocrypt header to a file.
env | Envelope |
fp | File to write to |
0 | Success |
-1 | Error |
Definition at line 763 of file autocrypt.c.
int mutt_autocrypt_write_gossip_headers | ( | struct Envelope * | env, |
FILE * | fp | ||
) |
Write the Autocrypt gossip headers to a file.
env | Envelope |
fp | File to write to |
0 | Success |
-1 | Error |
Definition at line 801 of file autocrypt.c.