2003-08-05 17:11:04 +00:00
|
|
|
/* app-common.h - Common declarations for all card applications
|
2008-09-23 09:57:45 +00:00
|
|
|
* Copyright (C) 2003, 2005, 2008 Free Software Foundation, Inc.
|
2003-08-05 17:11:04 +00:00
|
|
|
*
|
|
|
|
* This file is part of GnuPG.
|
|
|
|
*
|
|
|
|
* GnuPG is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2007-07-04 19:49:40 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2003-08-05 17:11:04 +00:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* GnuPG is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2016-11-05 12:02:19 +01:00
|
|
|
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2004-10-14 09:12:36 +00:00
|
|
|
*
|
|
|
|
* $Id$
|
2003-08-05 17:11:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GNUPG_SCD_APP_COMMON_H
|
|
|
|
#define GNUPG_SCD_APP_COMMON_H
|
|
|
|
|
2016-12-28 12:29:17 +09:00
|
|
|
#include <npth.h>
|
|
|
|
#include <ksba.h>
|
2004-03-16 18:59:21 +00:00
|
|
|
|
2019-02-06 12:24:30 +01:00
|
|
|
/* Flags used with app_change_pin. */
|
2019-01-21 14:06:51 +01:00
|
|
|
#define APP_CHANGE_FLAG_RESET 1 /* PIN Reset mode. */
|
|
|
|
#define APP_CHANGE_FLAG_NULLPIN 2 /* NULL PIN mode. */
|
|
|
|
#define APP_CHANGE_FLAG_CLEAR 4 /* Clear the given PIN. */
|
2008-06-24 16:00:29 +00:00
|
|
|
|
2019-02-06 12:24:30 +01:00
|
|
|
/* Flags used with app_genkey. */
|
|
|
|
#define APP_GENKEY_FLAG_FORCE 1 /* Force overwriting existing key. */
|
|
|
|
|
2013-08-26 17:29:54 +02:00
|
|
|
/* Bit flags set by the decipher function into R_INFO. */
|
|
|
|
#define APP_DECIPHER_INFO_NOPAD 1 /* Padding has been removed. */
|
|
|
|
|
2008-06-24 16:00:29 +00:00
|
|
|
|
2004-04-26 18:28:06 +00:00
|
|
|
struct app_local_s; /* Defined by all app-*.c. */
|
|
|
|
|
2003-08-05 17:11:04 +00:00
|
|
|
struct app_ctx_s {
|
2016-12-28 12:29:17 +09:00
|
|
|
struct app_ctx_s *next;
|
|
|
|
|
|
|
|
npth_mutex_t lock;
|
|
|
|
|
2009-03-24 11:40:57 +00:00
|
|
|
/* Number of connections currently using this application context.
|
|
|
|
If this is not 0 the application has been initialized and the
|
|
|
|
function pointers may be used. Note that for unsupported
|
|
|
|
operations the particular function pointer is set to NULL */
|
|
|
|
unsigned int ref_count;
|
2005-06-03 13:57:24 +00:00
|
|
|
|
2009-03-24 11:40:57 +00:00
|
|
|
/* Used reader slot. */
|
2011-02-04 12:57:53 +01:00
|
|
|
int slot;
|
2005-05-20 20:39:36 +00:00
|
|
|
|
2003-08-05 17:11:04 +00:00
|
|
|
unsigned char *serialno; /* Serialnumber in raw form, allocated. */
|
|
|
|
size_t serialnolen; /* Length in octets of serialnumber. */
|
2004-01-27 16:40:42 +00:00
|
|
|
const char *apptype;
|
2003-08-05 17:11:04 +00:00
|
|
|
unsigned int card_version;
|
2016-12-28 12:29:17 +09:00
|
|
|
unsigned int card_status;
|
2017-02-17 11:50:40 +09:00
|
|
|
unsigned int reset_requested:1;
|
2017-01-28 00:18:11 +09:00
|
|
|
unsigned int periodical_check_needed:1;
|
2015-04-14 14:17:03 +09:00
|
|
|
unsigned int did_chv1:1;
|
|
|
|
unsigned int force_chv1:1; /* True if the card does not cache CHV1. */
|
|
|
|
unsigned int did_chv2:1;
|
|
|
|
unsigned int did_chv3:1;
|
2004-04-26 18:28:06 +00:00
|
|
|
struct app_local_s *app_local; /* Local to the application. */
|
2003-08-05 17:11:04 +00:00
|
|
|
struct {
|
2004-04-26 18:28:06 +00:00
|
|
|
void (*deinit) (app_t app);
|
2009-03-18 11:18:56 +00:00
|
|
|
gpg_error_t (*learn_status) (app_t app, ctrl_t ctrl, unsigned int flags);
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*readcert) (app_t app, const char *certid,
|
2004-01-27 16:40:42 +00:00
|
|
|
unsigned char **cert, size_t *certlen);
|
2016-11-04 13:45:57 +09:00
|
|
|
gpg_error_t (*readkey) (app_t app, int advanced, const char *certid,
|
2005-02-22 17:29:07 +00:00
|
|
|
unsigned char **pk, size_t *pklen);
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*getattr) (app_t app, ctrl_t ctrl, const char *name);
|
|
|
|
gpg_error_t (*setattr) (app_t app, const char *name,
|
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
2003-08-05 17:11:04 +00:00
|
|
|
void *pincb_arg,
|
|
|
|
const unsigned char *value, size_t valuelen);
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*sign) (app_t app,
|
2003-08-05 17:11:04 +00:00
|
|
|
const char *keyidstr, int hashalgo,
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
2003-08-05 17:11:04 +00:00
|
|
|
void *pincb_arg,
|
|
|
|
const void *indata, size_t indatalen,
|
|
|
|
unsigned char **outdata, size_t *outdatalen );
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*auth) (app_t app, const char *keyidstr,
|
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
2003-08-05 17:11:04 +00:00
|
|
|
void *pincb_arg,
|
|
|
|
const void *indata, size_t indatalen,
|
|
|
|
unsigned char **outdata, size_t *outdatalen);
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*decipher) (app_t app, const char *keyidstr,
|
2013-08-26 17:29:54 +02:00
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
|
|
|
void *pincb_arg,
|
|
|
|
const void *indata, size_t indatalen,
|
|
|
|
unsigned char **outdata, size_t *outdatalen,
|
|
|
|
unsigned int *r_info);
|
2008-09-23 09:57:45 +00:00
|
|
|
gpg_error_t (*writecert) (app_t app, ctrl_t ctrl,
|
|
|
|
const char *certid,
|
|
|
|
gpg_error_t (*pincb)(void*,const char *,char **),
|
|
|
|
void *pincb_arg,
|
|
|
|
const unsigned char *data, size_t datalen);
|
2005-05-20 20:39:36 +00:00
|
|
|
gpg_error_t (*writekey) (app_t app, ctrl_t ctrl,
|
2008-09-23 09:57:45 +00:00
|
|
|
const char *keyid, unsigned int flags,
|
2005-05-20 20:39:36 +00:00
|
|
|
gpg_error_t (*pincb)(void*,const char *,char **),
|
|
|
|
void *pincb_arg,
|
|
|
|
const unsigned char *pk, size_t pklen);
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*genkey) (app_t app, ctrl_t ctrl,
|
2019-02-06 14:07:42 +01:00
|
|
|
const char *keyref, const char *keytype,
|
|
|
|
unsigned int flags, time_t createtime,
|
2007-07-05 16:58:19 +00:00
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
|
|
|
void *pincb_arg);
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*change_pin) (app_t app, ctrl_t ctrl,
|
2008-06-24 16:00:29 +00:00
|
|
|
const char *chvnostr, unsigned int flags,
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
2003-08-05 17:11:04 +00:00
|
|
|
void *pincb_arg);
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*check_pin) (app_t app, const char *keyidstr,
|
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
2003-10-21 17:12:50 +00:00
|
|
|
void *pincb_arg);
|
2003-08-05 17:11:04 +00:00
|
|
|
} fnc;
|
|
|
|
};
|
|
|
|
|
2020-03-31 11:57:19 +02:00
|
|
|
|
|
|
|
/* Helper to get the slot from an APP object. */
|
|
|
|
static inline int
|
|
|
|
app_get_slot (app_t app)
|
|
|
|
{
|
|
|
|
/* Note that this is a similar function of the one in 2.3 which we
|
|
|
|
* use to make back porting easier. */
|
|
|
|
if (app)
|
|
|
|
return app->slot;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-03-16 18:59:21 +00:00
|
|
|
/*-- app-help.c --*/
|
2009-05-08 15:07:45 +00:00
|
|
|
unsigned int app_help_count_bits (const unsigned char *a, size_t len);
|
2020-03-31 19:55:15 +02:00
|
|
|
gpg_error_t app_help_get_keygrip_string_pk (const void *pk, size_t pklen,
|
|
|
|
char *hexkeygrip,
|
|
|
|
gcry_sexp_t *r_pkey);
|
|
|
|
gpg_error_t app_help_get_keygrip_string (ksba_cert_t cert, char *hexkeygrip,
|
|
|
|
gcry_sexp_t *r_pkey);
|
2004-03-16 18:59:21 +00:00
|
|
|
size_t app_help_read_length_of_cert (int slot, int fid, size_t *r_certoff);
|
|
|
|
|
|
|
|
|
2003-08-05 17:11:04 +00:00
|
|
|
/*-- app.c --*/
|
2017-01-18 15:19:38 +09:00
|
|
|
void app_send_card_list (ctrl_t ctrl);
|
2017-01-18 15:48:50 +09:00
|
|
|
char *app_get_serialno (app_t app);
|
scd: Support multiple readers by CCID driver.
* scd/apdu.c (new_reader_slot): Lock is now in apdu_dev_list_start.
(close_pcsc_reader_direct, close_ccid_reader): RDRNAME is handled...
(apdu_close_reader): ... by this function now.
(apdu_prepare_exit): Likewise.
(open_ccid_reader): Open with dev_list.
(apdu_dev_list_start, apdu_dev_list_finish): New.
(apdu_open_one_reader): New.
(apdu_open_reader): Support multiple readers.
* scd/app.c (select_application): With SCAN, opening all readers
available, and register as new APP.
(app_write_learn_status): app->ref_count == 0 is valid for APP which is
not yet used.
(app_list_start, app_list_finish): New.
* scd/ccid-driver.c (struct ccid_driver_s): Remove RID and BCD_DEVICE.
Add BAI.
(parse_ccid_descriptor): BCD_DEVICE is now on the arguments.
(ccid_dev_scan, ccid_dev_scan_finish): New.
(ccid_get_BAI, ccid_compare_BAI, ccid_open_usb_reader): New.
(ccid_open_reader): Support multiple readers.
(ccid_set_progress_cb, ccid_close_reader): No RID any more.
--
With this change, multiple readers/tokens are supported by the internal
CCID driver of GnuPG. Until the changes of upper layers (scdaemon,
gpg-agent, and gpg front end), only a single reader is used, though.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2017-01-06 09:14:13 +09:00
|
|
|
|
2005-06-03 13:57:24 +00:00
|
|
|
void app_dump_state (void);
|
2008-11-03 19:09:34 +00:00
|
|
|
void application_notify_card_reset (int slot);
|
2016-12-28 12:29:17 +09:00
|
|
|
gpg_error_t check_application_conflict (const char *name, app_t app);
|
|
|
|
gpg_error_t app_reset (app_t app, ctrl_t ctrl, int send_reset);
|
|
|
|
gpg_error_t select_application (ctrl_t ctrl, const char *name, app_t *r_app,
|
scd: Add --demand option for SERIALNO.
* scd/app.c (select_application): Add SERIALNO_BIN and SERIALNO_BIN_LEN
arguments. Return matched APP with a serial number when specified.
* scd/command.c (open_card): Modify for the implicit open only.
(open_card_with_request): New for explicit open and support match with a
serial number.
(cmd_serialno): Support --demand option.
(cmd_learn, cmd_readcert, cmd_readkey, cmd_pksign, cmd_pkauth)
(cmd_pkdecrypt, cmd_getattr, cmd_setattr, cmd_writecert, cmd_writekey)
(cmd_genkey, cmd_random, cmd_passwd, cmd_checkpin, cmd_apdu): Follow
the change of open_card.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2017-01-16 10:26:16 +09:00
|
|
|
int scan, const unsigned char *serialno_bin,
|
|
|
|
size_t serialno_bin_len);
|
2009-02-27 14:36:59 +00:00
|
|
|
char *get_supported_applications (void);
|
2017-02-17 11:50:40 +09:00
|
|
|
void release_application (app_t app, int locked_already);
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t app_munge_serialno (app_t app);
|
2011-02-04 12:57:53 +01:00
|
|
|
gpg_error_t app_write_learn_status (app_t app, ctrl_t ctrl,
|
2009-03-18 11:18:56 +00:00
|
|
|
unsigned int flags);
|
scd: Clean up internal API for APP.
* scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
the second argument.
* scd/app.c: Supply CTRL to lock_reader calls.
* scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
change.
--
APP is an abstraction of the "card application". Most methods of APP
should have CTRL argument to report back progress to the session. This
change fixes FIXMEs for missing CTRL.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2016-12-22 21:14:26 +09:00
|
|
|
gpg_error_t app_readcert (app_t app, ctrl_t ctrl, const char *certid,
|
2004-01-27 16:40:42 +00:00
|
|
|
unsigned char **cert, size_t *certlen);
|
scd: Clean up internal API for APP.
* scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
the second argument.
* scd/app.c: Supply CTRL to lock_reader calls.
* scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
change.
--
APP is an abstraction of the "card application". Most methods of APP
should have CTRL argument to report back progress to the session. This
change fixes FIXMEs for missing CTRL.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2016-12-22 21:14:26 +09:00
|
|
|
gpg_error_t app_readkey (app_t app, ctrl_t ctrl, int advanced,
|
|
|
|
const char *keyid, unsigned char **pk, size_t *pklen);
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t app_getattr (app_t app, ctrl_t ctrl, const char *name);
|
scd: Clean up internal API for APP.
* scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
the second argument.
* scd/app.c: Supply CTRL to lock_reader calls.
* scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
change.
--
APP is an abstraction of the "card application". Most methods of APP
should have CTRL argument to report back progress to the session. This
change fixes FIXMEs for missing CTRL.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2016-12-22 21:14:26 +09:00
|
|
|
gpg_error_t app_setattr (app_t app, ctrl_t ctrl, const char *name,
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
2003-08-05 17:11:04 +00:00
|
|
|
void *pincb_arg,
|
|
|
|
const unsigned char *value, size_t valuelen);
|
scd: Clean up internal API for APP.
* scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
the second argument.
* scd/app.c: Supply CTRL to lock_reader calls.
* scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
change.
--
APP is an abstraction of the "card application". Most methods of APP
should have CTRL argument to report back progress to the session. This
change fixes FIXMEs for missing CTRL.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2016-12-22 21:14:26 +09:00
|
|
|
gpg_error_t app_sign (app_t app, ctrl_t ctrl, const char *keyidstr, int hashalgo,
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
2003-08-05 17:11:04 +00:00
|
|
|
void *pincb_arg,
|
|
|
|
const void *indata, size_t indatalen,
|
|
|
|
unsigned char **outdata, size_t *outdatalen );
|
scd: Clean up internal API for APP.
* scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
the second argument.
* scd/app.c: Supply CTRL to lock_reader calls.
* scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
change.
--
APP is an abstraction of the "card application". Most methods of APP
should have CTRL argument to report back progress to the session. This
change fixes FIXMEs for missing CTRL.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2016-12-22 21:14:26 +09:00
|
|
|
gpg_error_t app_auth (app_t app, ctrl_t ctrl, const char *keyidstr,
|
2013-08-26 17:29:54 +02:00
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
|
|
|
void *pincb_arg,
|
|
|
|
const void *indata, size_t indatalen,
|
|
|
|
unsigned char **outdata, size_t *outdatalen);
|
scd: Clean up internal API for APP.
* scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
the second argument.
* scd/app.c: Supply CTRL to lock_reader calls.
* scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
change.
--
APP is an abstraction of the "card application". Most methods of APP
should have CTRL argument to report back progress to the session. This
change fixes FIXMEs for missing CTRL.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2016-12-22 21:14:26 +09:00
|
|
|
gpg_error_t app_decipher (app_t app, ctrl_t ctrl, const char *keyidstr,
|
2013-08-26 17:29:54 +02:00
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
|
|
|
void *pincb_arg,
|
|
|
|
const void *indata, size_t indatalen,
|
|
|
|
unsigned char **outdata, size_t *outdatalen,
|
|
|
|
unsigned int *r_info);
|
2008-09-23 09:57:45 +00:00
|
|
|
gpg_error_t app_writecert (app_t app, ctrl_t ctrl,
|
|
|
|
const char *certidstr,
|
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
|
|
|
void *pincb_arg,
|
|
|
|
const unsigned char *keydata, size_t keydatalen);
|
2005-05-20 20:39:36 +00:00
|
|
|
gpg_error_t app_writekey (app_t app, ctrl_t ctrl,
|
|
|
|
const char *keyidstr, unsigned int flags,
|
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
|
|
|
void *pincb_arg,
|
|
|
|
const unsigned char *keydata, size_t keydatalen);
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t app_genkey (app_t app, ctrl_t ctrl,
|
2019-02-06 14:07:42 +01:00
|
|
|
const char *keynostr, const char *keytype,
|
|
|
|
unsigned int flags, time_t createtime,
|
2007-07-05 16:58:19 +00:00
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
|
|
|
void *pincb_arg);
|
scd: Clean up internal API for APP.
* scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
the second argument.
* scd/app.c: Supply CTRL to lock_reader calls.
* scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
change.
--
APP is an abstraction of the "card application". Most methods of APP
should have CTRL argument to report back progress to the session. This
change fixes FIXMEs for missing CTRL.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2016-12-22 21:14:26 +09:00
|
|
|
gpg_error_t app_get_challenge (app_t app, ctrl_t ctrl, size_t nbytes,
|
2005-05-18 10:48:06 +00:00
|
|
|
unsigned char *buffer);
|
|
|
|
gpg_error_t app_change_pin (app_t app, ctrl_t ctrl,
|
2019-02-06 12:24:30 +01:00
|
|
|
const char *chvnostr, unsigned int flags,
|
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
|
|
|
void *pincb_arg);
|
scd: Clean up internal API for APP.
* scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
the second argument.
* scd/app.c: Supply CTRL to lock_reader calls.
* scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
change.
--
APP is an abstraction of the "card application". Most methods of APP
should have CTRL argument to report back progress to the session. This
change fixes FIXMEs for missing CTRL.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2016-12-22 21:14:26 +09:00
|
|
|
gpg_error_t app_check_pin (app_t app, ctrl_t ctrl, const char *keyidstr,
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t (*pincb)(void*, const char *, char **),
|
2003-10-21 17:12:50 +00:00
|
|
|
void *pincb_arg);
|
2003-08-05 17:11:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*-- app-openpgp.c --*/
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t app_select_openpgp (app_t app);
|
2003-08-05 17:11:04 +00:00
|
|
|
|
2004-01-27 16:40:42 +00:00
|
|
|
/*-- app-nks.c --*/
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t app_select_nks (app_t app);
|
2004-01-27 16:40:42 +00:00
|
|
|
|
|
|
|
/*-- app-dinsig.c --*/
|
2005-05-18 10:48:06 +00:00
|
|
|
gpg_error_t app_select_dinsig (app_t app);
|
2004-01-27 16:40:42 +00:00
|
|
|
|
2004-09-09 07:28:47 +00:00
|
|
|
/*-- app-p15.c --*/
|
2005-04-27 12:09:21 +00:00
|
|
|
gpg_error_t app_select_p15 (app_t app);
|
2004-09-09 07:28:47 +00:00
|
|
|
|
2009-01-27 11:30:02 +00:00
|
|
|
/*-- app-geldkarte.c --*/
|
|
|
|
gpg_error_t app_select_geldkarte (app_t app);
|
|
|
|
|
2014-07-18 16:20:59 +02:00
|
|
|
/*-- app-sc-hsm.c --*/
|
|
|
|
gpg_error_t app_select_sc_hsm (app_t app);
|
|
|
|
|
2004-01-27 16:40:42 +00:00
|
|
|
|
2003-08-05 17:11:04 +00:00
|
|
|
#endif /*GNUPG_SCD_APP_COMMON_H*/
|