Changeset View
Changeset View
Standalone View
Standalone View
g10/delkey.c
Context not available. | |||||
yes = cpr_get_answer_is_yes (secret? "delete_key.secret.okay": "delete_key.okay", | yes = cpr_get_answer_is_yes (secret? "delete_key.secret.okay": "delete_key.okay", | ||||
_("Delete this key from the keyring? (y/N) ")); | _("Delete this key from the keyring? (y/N) ")); | ||||
if (!cpr_enabled() && secret && yes) | if (!cpr_enabled() && secret) | ||||
{ | { | ||||
/* I think it is not required to check a passphrase; if the | /* I think it is not required to check a passphrase; if the | ||||
* user is so stupid as to let others access his secret | * user is so stupid as to let others access his secret | ||||
* keyring (and has no backup) - it is up him to read some | * keyring (and has no backup) - it is up him to read some | ||||
* very basic texts about security. */ | * very basic texts about security. */ | ||||
yes = cpr_get_answer_is_yes ("delete_key.secret.okay", | if (yes) | ||||
_("This is a secret key! - really delete? (y/N) ")); | yes = cpr_get_answer_is_yes ("delete_key.secret.okay", | ||||
_("This is a secret key! - really delete? (y/N) ")); | |||||
/* Extra confirmation before deleting the user's primary key. */ | |||||
if (yes && pkt->pkttype != PKT_PUBLIC_SUBKEY) | |||||
yes = cpr_get_answer_is_yes ("delete_key.secret.primary.okay", | |||||
_("This is the primary key! - really delete? (y/N) ")); | |||||
} | } | ||||
return yes; | return yes; | ||||
Context not available. |