aboutsummaryrefslogtreecommitdiffstats
path: root/g10/revoke.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-08-08 19:27:00 +0000
committerWerner Koch <[email protected]>1998-08-08 19:27:00 +0000
commit6ccf4e0f80547ecaf2df19443093d9a53e7dc57e (patch)
treea5ea0d7ce2a6eb8a7f74ccfaf3921b08e7ec4997 /g10/revoke.c
parentnew (diff)
downloadgnupg-6ccf4e0f80547ecaf2df19443093d9a53e7dc57e.tar.gz
gnupg-6ccf4e0f80547ecaf2df19443093d9a53e7dc57e.zip
ready for a new release
Diffstat (limited to '')
-rw-r--r--g10/revoke.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/g10/revoke.c b/g10/revoke.c
index 948da6361..c78d79c85 100644
--- a/g10/revoke.c
+++ b/g10/revoke.c
@@ -33,6 +33,8 @@
#include "util.h"
#include "main.h"
#include "ttyio.h"
+#include "status.h"
+#include "i18n.h"
/****************
@@ -53,8 +55,6 @@ gen_revoke( const char *uname )
KBNODE keyblock = NULL;
KBNODE node;
KBPOS kbpos;
- char *answer;
- int yes;
if( opt.batch ) {
log_error("sorry, can't do this in batch mode\n");
@@ -117,11 +117,8 @@ gen_revoke( const char *uname )
}
tty_printf("\n");
- answer = tty_get("Create a revocation certificate for this key? ");
- tty_kill_prompt();
- yes = answer_is_yes(answer);
- m_free(answer);
- if( !yes ) {
+ if( !cpr_get_answer_is_yes(N_("gen_revoke.okay"),
+ _("Create a revocation certificate for this key? ")) ){
rc = 0;
goto leave;
}