mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Support for SmartCard-HSM
* scd/app-sc-hsm.c: New. * scd/app.c (select_application, get_supported_applications): Register new app. -- Add a read/only driver for scdaemon that provides access to keys and certificates on a SmartCard-HSM (www.smartcard-hsm.com). The driver supports RSA and ECC keys on SmartCard-HSM cards and USB-Sticks. The driver does not yet support the MicroSD edition. -- ChangeLog and FSF copyright year fix by wk.
This commit is contained in:
parent
557cc11a60
commit
8eb9224f32
5 changed files with 2041 additions and 1 deletions
|
@ -33,7 +33,7 @@ AM_CFLAGS = $(LIBGCRYPT_CFLAGS) \
|
|||
$(KSBA_CFLAGS) $(LIBASSUAN_CFLAGS) $(NPTH_CFLAGS)
|
||||
|
||||
|
||||
card_apps = app-openpgp.c app-nks.c app-dinsig.c app-p15.c app-geldkarte.c
|
||||
card_apps = app-openpgp.c app-nks.c app-dinsig.c app-p15.c app-geldkarte.c app-sc-hsm.c
|
||||
|
||||
scdaemon_SOURCES = \
|
||||
scdaemon.c scdaemon.h \
|
||||
|
|
|
@ -223,6 +223,9 @@ gpg_error_t app_select_p15 (app_t app);
|
|||
/*-- app-geldkarte.c --*/
|
||||
gpg_error_t app_select_geldkarte (app_t app);
|
||||
|
||||
/*-- app-sc-hsm.c --*/
|
||||
gpg_error_t app_select_sc_hsm (app_t app);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
2020
scd/app-sc-hsm.c
Normal file
2020
scd/app-sc-hsm.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -387,6 +387,8 @@ select_application (ctrl_t ctrl, int slot, const char *name, app_t *r_app)
|
|||
err = app_select_geldkarte (app);
|
||||
if (err && is_app_allowed ("dinsig") && (!name || !strcmp (name, "dinsig")))
|
||||
err = app_select_dinsig (app);
|
||||
if (err && is_app_allowed ("sc-hsm") && (!name || !strcmp (name, "sc-hsm")))
|
||||
err = app_select_sc_hsm (app);
|
||||
if (err && name)
|
||||
err = gpg_error (GPG_ERR_NOT_SUPPORTED);
|
||||
|
||||
|
@ -422,6 +424,7 @@ get_supported_applications (void)
|
|||
"p15",
|
||||
"geldkarte",
|
||||
"dinsig",
|
||||
"sc-hsm",
|
||||
/* Note: "undefined" is not listed here because it needs special
|
||||
treatment by the client. */
|
||||
NULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue