mirror of
https://github.com/chatmail/core.git
synced 2026-05-06 16:36:59 +03:00
Add some print statements for debugging
This commit is contained in:
10
src/e2ee.rs
10
src/e2ee.rs
@@ -54,6 +54,11 @@ impl EncryptHelper {
|
|||||||
let cursor = Cursor::new(&mut raw_message);
|
let cursor = Cursor::new(&mut raw_message);
|
||||||
mail_to_encrypt.clone().write_part(cursor).ok();
|
mail_to_encrypt.clone().write_part(cursor).ok();
|
||||||
|
|
||||||
|
println!(
|
||||||
|
"\nEncrypting pk:\n{}\n",
|
||||||
|
str::from_utf8(&raw_message).unwrap()
|
||||||
|
);
|
||||||
|
|
||||||
let ctext = pgp::pk_encrypt(raw_message, keyring, Some(sign_key), compress).await?;
|
let ctext = pgp::pk_encrypt(raw_message, keyring, Some(sign_key), compress).await?;
|
||||||
|
|
||||||
Ok(ctext)
|
Ok(ctext)
|
||||||
@@ -73,6 +78,11 @@ impl EncryptHelper {
|
|||||||
let cursor = Cursor::new(&mut raw_message);
|
let cursor = Cursor::new(&mut raw_message);
|
||||||
mail_to_encrypt.clone().write_part(cursor).ok();
|
mail_to_encrypt.clone().write_part(cursor).ok();
|
||||||
|
|
||||||
|
println!(
|
||||||
|
"\nEncrypting symm:\n{}\n",
|
||||||
|
str::from_utf8(&raw_message).unwrap()
|
||||||
|
);
|
||||||
|
|
||||||
let ctext = pgp::encrypt_for_broadcast(raw_message, passphrase, sign_key, compress).await?;
|
let ctext = pgp::encrypt_for_broadcast(raw_message, passphrase, sign_key, compress).await?;
|
||||||
|
|
||||||
Ok(ctext)
|
Ok(ctext)
|
||||||
|
|||||||
Reference in New Issue
Block a user