1
0
mirror of https://github.com/biergaizi/codecrypt synced 2024-06-25 00:08:20 +00:00

actions: decrypt clearouts

This commit is contained in:
Mirek Kratochvil 2013-04-22 09:22:37 +02:00
parent 6e10c08b4b
commit 434f9ef1fb

@ -235,7 +235,8 @@ int action_decrypt (bool armor,
if ( (!AS.count (msg.alg_id) )
|| (!AS[msg.alg_id]->provides_encryption() ) ) {
err ("error: decryption algorithm unsupported");
err ("info: requires algorithm " << msg.alg_id);
err ("info: requires algorithm " << msg.alg_id
<< " with encryption support");
return 1;
}
@ -256,7 +257,7 @@ int action_decrypt (bool armor,
err ("incoming encrypted message details:");
err (" algorithm: " << msg.alg_id);
err (" recipient: @" << msg.key_id);
keyring::pubkey_entry*pke;
keyring::pubkey_entry * pke;
pke = KR.get_pubkey (msg.key_id);
if (pke) //should be always good
err (" recipient local name: `" << pke->name << "'");