From c3cdaeeff72486e52118054d92ac518c17aa3812 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 3 Jun 2003 19:55:50 +0000 Subject: Make use of libgpg-error --- agent/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'agent/command.c') diff --git a/agent/command.c b/agent/command.c index 00e0b1e1e..82d888e05 100644 --- a/agent/command.c +++ b/agent/command.c @@ -559,11 +559,11 @@ cmd_passwd (ASSUAN_CONTEXT ctx, char *line) s_skey = agent_key_from_file (ctrl, grip, &shadow_info, 1); if (!s_skey && !shadow_info) - rc = seterr (No_Secret_Key); + rc = gpg_error (GPG_ERR_NO_SECKEY); else if (!s_skey) { log_error ("changing a smartcard PIN is not yet supported\n"); - rc = seterr (Not_Implemented); + rc = gpg_error (GPG_ERR_NOT_IMPLEMENTED); } else rc = agent_protect_and_store (ctrl, s_skey); -- cgit