mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-05 19:42:04 +02:00
correct return value
This commit is contained in:
parent
417b5ac99e
commit
1206c9836f
2 changed files with 2 additions and 3 deletions
|
@ -151,7 +151,7 @@ typedef struct mrmailbox_e2ee_helper_t {
|
|||
} mrmailbox_e2ee_helper_t;
|
||||
|
||||
void mrmailbox_e2ee_encrypt (mrmailbox_t*, const clist* recipients_addr, int force_unencrypted, int e2ee_guaranteed, int min_verified, struct mailmime* in_out_message, mrmailbox_e2ee_helper_t*);
|
||||
int mrmailbox_e2ee_decrypt (mrmailbox_t*, struct mailmime* in_out_message, mrmailbox_e2ee_helper_t*); /* returns 1 if sth. was decrypted, 0 in other cases */
|
||||
void mrmailbox_e2ee_decrypt (mrmailbox_t*, struct mailmime* in_out_message, mrmailbox_e2ee_helper_t*); /* returns 1 if sth. was decrypted, 0 in other cases */
|
||||
void mrmailbox_e2ee_thanks (mrmailbox_e2ee_helper_t*); /* frees data referenced by "mailmime" but not freed by mailmime_free(). After calling mre2ee_unhelp(), in_out_message cannot be used any longer! */
|
||||
int mrmailbox_ensure_secret_key_exists (mrmailbox_t*); /* makes sure, the private key exists, needed only for exporting keys and the case no message was sent before */
|
||||
char* mrmailbox_create_setup_code (mrmailbox_t*);
|
||||
|
|
|
@ -791,7 +791,7 @@ static mrhash_t* update_gossip_peerstates(mrmailbox_t* mailbox, time_t message_t
|
|||
}
|
||||
|
||||
|
||||
int mrmailbox_e2ee_decrypt(mrmailbox_t* mailbox, struct mailmime* in_out_message,
|
||||
void mrmailbox_e2ee_decrypt(mrmailbox_t* mailbox, struct mailmime* in_out_message,
|
||||
mrmailbox_e2ee_helper_t* helper)
|
||||
{
|
||||
/* return values: 0=nothing to decrypt/cannot decrypt, 1=sth. decrypted
|
||||
|
@ -928,6 +928,5 @@ cleanup:
|
|||
free(from);
|
||||
free(self_addr);
|
||||
helper->m_encrypted = sth_decrypted;
|
||||
return sth_decrypted;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue