diff options
author | Werner Koch <[email protected]> | 2004-09-23 13:32:31 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-09-23 13:32:31 +0000 |
commit | 42c18de83a8eab8d4da3e4d4193a8750cf8ba6be (patch) | |
tree | 1ef5722c3febb23acd01cb49bf266dfd370a6047 /g10/cardglue.c | |
parent | * mainproc.c (check_sig_and_print), keyedit.c (show_prefs, (diff) | |
download | gnupg-42c18de83a8eab8d4da3e4d4193a8750cf8ba6be.tar.gz gnupg-42c18de83a8eab8d4da3e4d4193a8750cf8ba6be.zip |
* gpg.sgml: Document "addcardkey" and "keytocard".
* apdu.c (open_pcsc_reader): Do not print empty reader string.
* keygen.c (ask_algo): Allow creation of AUTH keys.
* keyid.c (usagestr_from_pk): New.
* app-openpgp.c (app_openpgp_storekey): Call flush_cache.
* keyedit.c (keyedit_menu): New command "keytocard"
(keyedit_menu): Bad hack for the not_with_sk element.
(show_key_with_all_names): Print the usage.
(find_pk_from_sknode): New.
* card-util.c (card_store_subkey): New.
(copy_mpi): New.
* cardglue.c (agent_openpgp_storekey): New.
Diffstat (limited to '')
-rw-r--r-- | g10/cardglue.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/g10/cardglue.c b/g10/cardglue.c index cff025cb3..a446a30a3 100644 --- a/g10/cardglue.c +++ b/g10/cardglue.c @@ -827,3 +827,22 @@ agent_scd_checkpin (const char *serialnobuf) return app->fnc.check_pin (app, serialnobuf, pin_cb, NULL); } + +/* Wrapper to call the store key helper function of app-openpgp.c. */ +int +agent_openpgp_storekey (int keyno, + unsigned char *template, size_t template_len, + time_t created_at, + const unsigned char *m, size_t mlen, + const unsigned char *e, size_t elen) +{ + APP app; + + app = current_app? current_app : open_card (); + if (!app) + return gpg_error (GPG_ERR_CARD); + + return app_openpgp_storekey (app, keyno, template, template_len, + created_at, m, mlen, e, elen, + pin_cb, NULL); +} |