1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-14 00:19:50 +02:00

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.
This commit is contained in:
Ben Kibbey 2012-01-24 18:14:16 -05:00
parent add0e34bab
commit 7a61398e67

View File

@ -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);
}