summaryrefslogtreecommitdiffstats
path: root/scd/card.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2004-03-16 11:49:37 +0100
committerWerner Koch <wk@gnupg.org>2004-03-16 11:49:37 +0100
commitf8d44bc637a4c897fd4448de804ee08ae065e194 (patch)
tree03c71726ae3204c67c8dae3fbcdbd4b8c07376a6 /scd/card.c
parent* configure.ac (NEED_GPG_ERROR_VERSION): Set to 0.7. (diff)
downloadgnupg2-f8d44bc637a4c897fd4448de804ee08ae065e194.tar.xz
gnupg2-f8d44bc637a4c897fd4448de804ee08ae065e194.zip
*** empty log message ***
Diffstat (limited to 'scd/card.c')
-rw-r--r--scd/card.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/scd/card.c b/scd/card.c
index 53c89f3a4..8366dcb1c 100644
--- a/scd/card.c
+++ b/scd/card.c
@@ -108,7 +108,7 @@ card_open (CARD *rcard)
card = xtrycalloc (1, sizeof *card);
if (!card)
- return out_of_core ();
+ return gpg_error (gpg_err_code_from_errno (errno));
card->reader = 0;
rc = sc_establish_context (&card->ctx, "scdaemon");
@@ -275,7 +275,7 @@ find_iccsn (const unsigned char *buffer, size_t length, char **serial)
*serial = p = xtrymalloc (2*n+1);
if (!*serial)
- return out_of_core ();
+ return gpg_error (gpg_err_code_from_errno (errno));
for (; n; n--, p += 2, s++)
sprintf (p, "%02X", *s);
*p = 0;
@@ -389,7 +389,7 @@ card_get_serial_and_stamp (CARD card, char **serial, time_t *stamp)
*serial = NULL;
p = xtrymalloc (strlen (efser) + 7);
if (!p)
- rc = out_of_core ();
+ rc = gpg_error (gpg_err_code_from_errno (errno));
else
{
strcpy (p, "FF0100");
@@ -405,7 +405,7 @@ card_get_serial_and_stamp (CARD card, char **serial, time_t *stamp)
{
xfree (*serial);
*serial = NULL;
- rc = out_of_core ();
+ rc = gpg_error (gpg_err_code_from_errno (errno));
}
else
{