mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
The Agent does now call the pin entry program; however because we have
not yet implemeted secret key protection, its purpose is somewhat limited. Well, the PIN entry modules can now be tested.
This commit is contained in:
parent
ce32f6b6c8
commit
79956a08e0
8 changed files with 336 additions and 3 deletions
|
@ -79,6 +79,11 @@ rc_to_assuan_status (int rc)
|
|||
case GNUPG_No_Secret_Key: rc = ASSUAN_No_Secret_Key; break;
|
||||
case GNUPG_Invalid_Data: rc = ASSUAN_Invalid_Data; break;
|
||||
|
||||
case GNUPG_Bad_PIN:
|
||||
case GNUPG_Bad_Passphrase:
|
||||
rc = ASSUAN_No_Secret_Key;
|
||||
break;
|
||||
|
||||
case GNUPG_Read_Error:
|
||||
case GNUPG_Write_Error:
|
||||
case GNUPG_IO_Error:
|
||||
|
@ -295,13 +300,11 @@ start_command_handler (void)
|
|||
ctrl.server_local->assuan_ctx = ctx;
|
||||
ctrl.server_local->message_fd = -1;
|
||||
|
||||
log_info ("Assuan started\n");
|
||||
for (;;)
|
||||
{
|
||||
rc = assuan_accept (ctx);
|
||||
if (rc == -1)
|
||||
{
|
||||
log_info ("Assuan terminated\n");
|
||||
break;
|
||||
}
|
||||
else if (rc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue