From eeb65d3bbd7d461694d30009631739735a2b9bad Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 17 May 2021 15:42:27 +0200 Subject: sm: Ask for the password for password based decryption (pwri) * sm/decrypt.c (pwri_decrypt): Add arg ctrl. Ask for passphrase. * sm/export.c (export_p12): Mark string as translatable. * sm/import.c (parse_p12): Ditto. -- This is finishes the support for PWRI. The N_() marks are added so that we don't rely of the side-effect of having the same strings in protect-tool.c Signed-off-by: Werner Koch --- sm/export.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sm/export.c') diff --git a/sm/export.c b/sm/export.c index 32f04565f..54893b54d 100644 --- a/sm/export.c +++ b/sm/export.c @@ -724,8 +724,8 @@ export_p12 (ctrl_t ctrl, const unsigned char *certimg, size_t certimglen, { err = gpgsm_agent_ask_passphrase (ctrl, - i18n_utf8 ("Please enter the passphrase to protect the " - "new PKCS#12 object."), + i18n_utf8 (N_("Please enter the passphrase to protect the " + "new PKCS#12 object.")), 1, &passphrase); if (err) goto leave; -- cgit v1.2.3