diff options
author | Werner Koch <[email protected]> | 2003-06-27 20:53:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-06-27 20:53:09 +0000 |
commit | f5db59fc21f172a2a71ed0c10f249efaa7ad794e (patch) | |
tree | 4d6e8c746037a053f972c2da4da1575bb076e4fd /scd/sc-investigate.c | |
parent | Finished the bulk of changes for gnupg 1.9. This included switching (diff) | |
download | gnupg-f5db59fc21f172a2a71ed0c10f249efaa7ad794e.tar.gz gnupg-f5db59fc21f172a2a71ed0c10f249efaa7ad794e.zip |
Key generation and signing using the OpenPGP card does rudimentary work.
Diffstat (limited to 'scd/sc-investigate.c')
-rw-r--r-- | scd/sc-investigate.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/scd/sc-investigate.c b/scd/sc-investigate.c index e6b4c4afb..1100bdf43 100644 --- a/scd/sc-investigate.c +++ b/scd/sc-investigate.c @@ -25,11 +25,12 @@ #include <string.h> #define JNLIB_NEED_LOG_LOGV -#include <gcrypt.h> #include "scdaemon.h" +#include <gcrypt.h> #include "apdu.h" /* for open_reader */ #include "atr.h" +#include "app-common.h" #define _(a) (a) @@ -104,6 +105,9 @@ main (int argc, char **argv ) ARGPARSE_ARGS pargs; int slot, rc; int reader_port = 32768; /* First USB reader. */ + struct app_ctx_s appbuf; + + memset (&appbuf, 0, sizeof appbuf); set_strusage (my_strusage); gcry_control (GCRYCTL_SUSPEND_SECMEM_WARN); @@ -147,7 +151,8 @@ main (int argc, char **argv ) if (rc) log_error ("can't dump ATR: %s\n", gpg_strerror (rc)); - rc = app_select_openpgp (slot); + appbuf.slot = slot; + rc = app_select_openpgp (&appbuf, NULL, NULL); if (rc) log_error ("selecting openpgp failed: %s\n", gpg_strerror (rc)); else @@ -159,3 +164,8 @@ main (int argc, char **argv ) +void +send_status_info (CTRL ctrl, const char *keyword, ...) +{ + /* DUMMY */ +} |