aboutsummaryrefslogtreecommitdiffstats
path: root/agent/learncard.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2003-06-04 21:37:56 +0000
committerMarcus Brinkmann <[email protected]>2003-06-04 21:37:56 +0000
commita58ce94d8ef56ef13e33d4171141eb3e6c43bdc6 (patch)
tree6744a58aca08fc2d5da0ac6a145a970b587dc1bd /agent/learncard.c
parentInadvertently left out of the 2003-06-01 checkin (diff)
downloadgnupg-a58ce94d8ef56ef13e33d4171141eb3e6c43bdc6.tar.gz
gnupg-a58ce94d8ef56ef13e33d4171141eb3e6c43bdc6.zip
Update error handling to match gpg-error in CVS.
Diffstat (limited to '')
-rw-r--r--agent/learncard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/agent/learncard.c b/agent/learncard.c
index da4271a67..d5c1aae26 100644
--- a/agent/learncard.c
+++ b/agent/learncard.c
@@ -110,7 +110,7 @@ kpinfo_cb (void *opaque, const char *line)
}
else if ((p - item->hexgrip) != 40 || !spacep (p))
{ /* not a 20 byte hex keygrip or not followed by a space */
- parm->error = gpg_error (GPG_ERR_INVALID_RESPONSE);
+ parm->error = gpg_error (GPG_ERR_INV_RESPONSE);
xfree (item);
return;
}
@@ -122,7 +122,7 @@ kpinfo_cb (void *opaque, const char *line)
p++;
if (p == item->id)
{ /* invalid ID string */
- parm->error = gpg_error (GPG_ERR_INVALID_RESPONSE);
+ parm->error = gpg_error (GPG_ERR_INV_RESPONSE);
xfree (item);
return;
}
@@ -154,7 +154,7 @@ certinfo_cb (void *opaque, const char *line)
;
if (p == pend || !*p)
{
- parm->error = gpg_error (GPG_ERR_INVALID_RESPONSE);
+ parm->error = gpg_error (GPG_ERR_INV_RESPONSE);
return;
}
*pend = 0; /* ignore trailing stuff */