aboutsummaryrefslogtreecommitdiffstats
path: root/scd (unfollow)
Commit message (Collapse)AuthorFilesLines
2004-02-19* protect-tool.c: New options --have-cert and --prompt.Werner Koch1-1/+1
(export_p12_file): Read a certificate from STDIN and pass it to p12_build. Detect a keygrip and construct the filename in that case. Unprotcet a key if needed. Print error messages for key formats we can't handle. (release_passphrase): New. (get_passphrase): New arg PROMPTNO. Return the allocated string. Changed all callers. * minip12.c: Revamped the build part. (p12_build): New args CERT and CERTLEN. * simple-pwquery.c (agent_open): Don't mangle INFOSTR. * export.c (export_p12, popen_protect_tool) (gpgsm_p12_export): New. * gpgsm.c (main): New command --export-secret-key-p12.
2004-02-18* sc-investigate.c (main): Setup the used character set.Werner Koch3-7/+92
* scdaemon.c (main): Ditto. * scdaemon.c (set_debug): New. Add option --debug-level. (main): Add option --gpgconf-list.
2004-02-12Include cmacros.am for common flags.Werner Koch3-5/+11
2004-01-29(reset_notify): Release the application context andWerner Koch2-2/+8
close the reader.
2004-01-28(iso7816_manage_security_env): New.Werner Koch5-22/+246
(iso7816_decipher): Add PADIND argument. ** app-nks.c is now functional **
2004-01-27Some minor bug fixes, new test utilities and started support for otherWerner Koch20-269/+1818
smartcard applications.
2003-12-23* apdu.c (apdu_send_le): Send a get_response with the indicatedWerner Koch3-1/+31
length and not the 64 bytes we used for testing. * app-openpgp.c (verify_chv2, verify_chv3, do_sign): Check the minimum length of the passphrase, so that we don't need to decrement the retry counter.
2003-12-17Replaced deprecated type names.Werner Koch7-18/+21
* card-p15.c (p15_enum_keypairs): Replaced KRC by RC. * card-dinsig.c (dinsig_enum_keypairs): Ditto.
2003-12-16(main): Set the prefixes for assuan logging.Werner Koch2-0/+8
2003-12-01* scdaemon.c, scdaemon.h: New options --allow-admin and --deny-admin.Werner Koch4-2/+20
* app-openpgp.c (verify_chv3): Check it here.
2003-11-12Mainly changes to adjust for the changed KSBA API.Werner Koch5-22/+23
2003-10-31* apdu.c (close_ct_reader, close_pcsc_reader): Implemented.Werner Koch3-4/+24
(get_ccid_error_string): New. Not very useful messages, though.
2003-10-25* command.c (cmd_genkey, cmd_passwd): Fixed faulty use ofWerner Koch4-7/+45
!spacep(). * apdu.c (apdu_open_reader): Hacks for PC/SC under Windows.
2003-10-21* command.c (cmd_checkpin): New.Werner Koch9-95/+324
(register_commands): Add command CHECKPIN. * app.c (app_check_pin): New. * app-openpgp.c (check_against_given_fingerprint): New. Factored out that code elsewhere. (do_check_pin): New.
2003-10-09* ccid-driver.c (ccid_transceive): Add T=1 chaining for sending.Werner Koch2-32/+74
2003-10-08* call-agent.c (agent_scd_getattr): Don't clear the passed infoWerner Koch2-0/+29
structure, so that it can indeed be updated. * card-util.c (fpr_is_zero): New. (generate_card_keys): New. (card_edit): New command "generate". * keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call to check_smartcard. (check_smartcard,show_smartcard): Removed. (show_sha1_fpr,fpr_is_zero): Removed. * app-openpgp.c (do_getattr): Support SERIALNO and AID.
2003-10-02Fixes to make inclusion of card raleted source files into 1.3 easier.Werner Koch7-9/+76
2003-09-30* command.c (cmd_getattr): New command GETATTR.Werner Koch5-230/+321
* app.c (app_setattr): New. (do_getattr): New. (do_learn_status): Reimplemented in terms of do_getattr. * app-openpgp.c (do_change_pin): Make sure CVH1 and CHV2 are always synced. (verify_chv2, verify_chv3): New. Factored out common code. (do_setattr, do_sign, do_auth, do_decipher): Change the names of the prompts to match that we have only 2 different PINs. (app_select_openpgp): Check whether the card enforced CHV1. (convert_sig_counter_value): New. Factor out code from get_sig_counter.
2003-09-30Minor fixesWerner Koch2-1/+5
2003-09-19(parse_ccid_descriptor): New.Werner Koch2-0/+246
(read_device_info): New. (ccid_open_reader): Check that the device has all required features.
2003-09-06* configure.ac: Required newer versions of some libraries.V1-9-1Werner Koch4-26/+28
* misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed. * keygen.c (ask_passphrase): No need to allocated S2K in secure memory. * scdaemon.c (main): --pcsc-driver again defaults to pcsclite. David Corcoran was so kind to remove the GPL incompatible advertisng clause from pcsclite. * apdu.c (apdu_open_reader): Actually make pcsc-driver option work.
2003-09-05* ccid-driver.c: More work, data can now actually be retrieved.Werner Koch3-164/+320
* ccid-driver.c, ccid-driver.h: Alternativley allow use under BSD conditions.
2003-09-02* configure.ac (HAVE_LIBUSB): Added a simple test for libusb.Werner Koch7-7/+790
* scdaemon.c, scdaemon.h: New option --pcsc-ccid. * ccid-driver.c, ccid-driver.h: New but far from being useful. * Makefile.am: Add above. * apdu.c: Add support for that ccid driver.
2003-08-262003-08-26 Timo Schulz <[email protected]>Timo Schulz2-0/+7
* apdu.c (new_reader_slot): Only set 'is_osc' when OpenSC is used.
2003-08-25(cmd_setattr): Use a copy of LINE.Werner Koch2-11/+32
(cmd_genkey): Use a copy of KEYNO. (cmd_passwd): Use a copy of CHVNOSTR. (cmd_pksign, cmd_pkauth, cmd_pkdecrypt): s/strdup/xtrystrdup/.
2003-08-19* scdaemon.c, scdaemon.h: New option --pcsc-driver.Werner Koch4-1/+22
* apdu.c (apdu_open_reader): Use that option here instead of a hardcoded one.
2003-08-18* scdaemon.c, scdaemon.h: New option --disable-opensc.Werner Koch2-4/+7
* card.c (card_open): Implement it. * apdu.c (open_osc_reader, osc_send_apdu): New. (apdu_open_reader) [HAVE_OPENSC]: Use the opensc driver if not disabled. (error_string) [HAVE_OPENSC]: Use sc_strerror. (send_apdu) [HAVE_OPENSC]: Call osc_apdu_send. * card-p15.c (p15_enum_keypairs, p15_prepare_key): Adjusted for libgpg-error.
2003-08-18* Makefile.am: Add OPENSC_LIBS to all programs.Werner Koch5-10/+261
* scdaemon.c, scdaemon.h: New option --disable-opensc. * card.c (card_open): Implement it. * apdu.c (open_osc_reader, osc_send_apdu): New. (apdu_open_reader) [HAVE_OPENSC]: Use the opensc driver if not disabled. (error_string) [HAVE_OPENSC]: Use sc_strerror. (send_apdu) [HAVE_OPENSC]: Call osc_apdu_send.
2003-08-14 * Always use 'dynload.h' instead of 'dlfcn.h'.Timo Schulz5-32/+36
2003-08-05Cleanups, fixes and PC/SC supportWerner Koch10-173/+456
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin17-0/+7138
'GNUPG-1-9-BRANCH'.
2003-06-05This commit was manufactured by cvs2svn to create branchRepo Admin3-0/+575
'GNUPG-1-9-BRANCH'.
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin9-2888/+0
'GNUPG-1-9-BRANCH'.
2002-08-21use setlocale().Werner Koch1-3/+3
2002-08-21* scdaemon.c (main): New option --daemon so that the program isWerner Koch2-4/+18
not accidently started in the background.
2002-08-16* scdaemon.c: Include i18n.h.Werner Koch7-4/+148
* card-common.h (struct p15_private_s): Forward declaration. Add it to card_ctx_s. * card.c (card_close): Make sure private data is released. (card_enum_certs): New. * card-p15.c (p15_release_private_data): New. (init_private_data): New to work around an OpenSC weirdness. (p15_enum_keypairs): Do an OpenSC get_objects only once. (p15_enum_certs): New. (card_p15_bind): Bind new function. * command.c (cmd_learn): Return information about the certificates.
2002-08-16* card-common.h (struct p15_private_s): Forward declaration. AddWerner Koch5-17/+83
it to card_ctx_s. * card.c (card_close): Make sure private data is released. * card-p15.c (p15_release_private_data): New. (init_private_data): New to work around an OpenSC weirdness. (p15_enum_keypairs): Do an OpenSC get_objects only once.
2002-08-10Minor changes for gettextNEWPG-0-3-10Werner Koch2-1/+4
2002-08-09* card.c (card_get_serial_and_stamp): Use the tokeinfo serialWerner Koch5-52/+158
number as a fallback. Add a special prefix for serial numbers.
2002-06-27* gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.Werner Koch2-7/+5
* call-agent.c (start_agent): Create and pass the list of FD to keep in the child to assuan. * call-dirmngr.c (start_dirmngr): Ditto. * scdaemon.c (main): Use GNUPG_DEFAULT_HOMEDIR constant. * assuan-pipe-connect.c (assuan_pipe_connect): No special handling for the log_fd and stderr. Connect stderr to /dev/null if it should not be retained.
2002-06-15* card-dinsig.c: Documented some stuff from the DIN norm.Werner Koch2-2/+57
2002-04-25* call-agent.c (start_agent): Make copies of old locales and checkWerner Koch1-4/+4
for setlocale. * configure.ac: Check for setlocale.
2002-04-15* command.c (cmd_pksign, cmd_pkdecrypt): Use a copy of the key ID.Werner Koch2-2/+19
2002-04-12* scdaemon.c: New option --debug-sc N.Werner Koch5-85/+78
* card.c (card_open): set it here. * card-p15.c (p15_prepare_key): Factored out common code from ... (p15_sign, p15_decipher): here and made the decryption work the regular way.
2002-04-10* card.c (card_open): Return immediately when no reader is available.Werner Koch2-0/+5
2002-03-28* card.c (card_open, card_close): Adjusted for changes in OpenSC.Werner Koch4-64/+61
2002-03-18Added missing fileNEWPG-0-3-3Werner Koch1-0/+1
2002-03-18More stuff for SCs - don't expect them to work.Werner Koch3-0/+671
2002-03-18Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch5-406/+192
2002-03-06sm/Werner Koch1-0/+61
* gpgsm.c: New command --learn-card * call-agent.c (learn_cb,gpgsm_agent_learn): New. * gpgsm.c (main): Print error messages for non-implemented commands. agent/ * learncard.c: New. * divert-scd.c (ask_for_card): The serial number is binary so convert it to hex here. * findkey.c (agent_write_private_key): New. * genkey.c (store_key): And use it here. scd/ * pkdecrypt.c (agent_pkdecrypt): Changed the way the diversion is done. * divert-scd.c (divert_pkdecrypt): Changed interface and implemented it.