diff options
author | Werner Koch <[email protected]> | 2003-11-12 15:17:44 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-11-12 15:17:44 +0000 |
commit | dba40e5e45e80896dc8864c2ae97f026069e2906 (patch) | |
tree | 724a2e0f0f73ef66cf6284adb7e2463785874ffe /scd/command.c | |
parent | 2003-11-10 Moritz Schulte <[email protected]> (diff) | |
download | gnupg-dba40e5e45e80896dc8864c2ae97f026069e2906.tar.gz gnupg-dba40e5e45e80896dc8864c2ae97f026069e2906.zip |
Mainly changes to adjust for the changed KSBA API.
Diffstat (limited to 'scd/command.c')
-rw-r--r-- | scd/command.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/scd/command.c b/scd/command.c index 363b46480..122a2f3c1 100644 --- a/scd/command.c +++ b/scd/command.c @@ -25,11 +25,11 @@ #include <string.h> #include <ctype.h> #include <unistd.h> -#include <ksba.h> #include <assuan.h> #include "scdaemon.h" +#include <ksba.h> #include "app-common.h" /* maximum length aloowed as a PIN; used for INQUIRE NEEDPIN */ @@ -453,18 +453,16 @@ cmd_readkey (ASSUAN_CONTEXT ctx, char *line) goto leave; } - kc = ksba_cert_new (); - if (!kc) + rc = ksba_cert_new (&kc); + if (rc) { - rc = out_of_core (); xfree (cert); goto leave; } rc = ksba_cert_init_from_mem (kc, cert, ncert); if (rc) { - log_error ("failed to parse the certificate: %s\n", ksba_strerror (rc)); - rc = map_ksba_err (rc); + log_error ("failed to parse the certificate: %s\n", gpg_strerror (rc)); goto leave; } @@ -531,7 +529,7 @@ pin_cb (void *opaque, const char *info, char **retstr) ASSUAN_CONTEXT ctx = opaque; char *command; int rc; - char *value; + unsigned char *value; size_t valuelen; *retstr = NULL; |