From 0ebf79c824a0eebff35f757f85608e3dd7750ac3 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 21 Oct 2004 16:56:22 +0000 Subject: * configure.ac: Remove the check for asprintf * app-common.h (app_openpgp_storekey: Add prototype. * app-openpgp.c (do_sign): Replace asprintf by direct allocation. This avoids problems with missing vasprintf implementations. * card-util.c (generate_card_keys): Add a #warning for gnupg 1.9 and use the same string there. * util.h [!HAVE_VASPRINTF]: Removed prototype. * vasprintf.c: Removed. It was used only at one place and I don't want to get into build problems in 1.4. --- g10/card-util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'g10/card-util.c') diff --git a/g10/card-util.c b/g10/card-util.c index 1d2e47ea2..8cae1dab6 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -895,10 +895,10 @@ generate_card_keys (const char *serialno) m_free(answer); } #else - /* Does 1.9 have answer_is_yes_no_default() ? */ - want_backup = !(cpr_get_answer_is_yes + want_backup = cpr_get_answer_is_yes ( "cardedit.genkeys.backup_enc", - _("Inhibit off-card backup of encryption key? (y/N) "))); + _("Make off-card backup of encryption key? (Y/n) ")); +#warning we need answer_is_yes_no_default() #endif if ( (info.fpr1valid && !fpr_is_zero (info.fpr1)) -- cgit