From 7a61398e67b376ea5bdf30cdbbd0c5a25a2cf070 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Tue, 24 Jan 2012 18:14:16 -0500 Subject: [PATCH] Return successfully when the app has no SCD pin prompt callback. * scd/app.c (app_set_pin_prompt): Create a log message when the app contains no pinentry prompt callback and return 0. --- scd/app.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scd/app.c b/scd/app.c index 51bd207ff..4705e0ac9 100644 --- a/scd/app.c +++ b/scd/app.c @@ -1043,7 +1043,10 @@ app_set_pin_prompt(app_t app, int which, const char *prompt) return gpg_error (GPG_ERR_INV_VALUE); if (!app->fnc.set_pin_prompt) - return gpg_error (GPG_ERR_UNSUPPORTED_OPERATION); + { + log_info ("no pinentry prompt callback for app has been set"); + return 0; + } return app->fnc.set_pin_prompt (app, which, prompt); }