From 79956a08e02a9741e581271457d1493ab8a3aa7d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 10 Dec 2001 09:27:30 +0000 Subject: 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. --- agent/command.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'agent/command.c') diff --git a/agent/command.c b/agent/command.c index 4e3da80a4..33e61f69c 100644 --- a/agent/command.c +++ b/agent/command.c @@ -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) -- cgit