diff options
author | Ben Kibbey <[email protected]> | 2012-01-24 23:14:16 +0000 |
---|---|---|
committer | Ben Kibbey <[email protected]> | 2012-01-25 01:39:03 +0000 |
commit | 7a61398e67b376ea5bdf30cdbbd0c5a25a2cf070 (patch) | |
tree | c9ec5e1297661522f046e7a495e521ef6e5d805b | |
parent | Fix setting the wrong SCD pin prompt in the app. (diff) | |
download | gnupg-7a61398e67b376ea5bdf30cdbbd0c5a25a2cf070.tar.gz gnupg-7a61398e67b376ea5bdf30cdbbd0c5a25a2cf070.zip |
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.
-rw-r--r-- | scd/app.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); } |