aboutsummaryrefslogtreecommitdiffstats
path: root/scd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * apdu.c (apdu_send_le): Send a get_response with the indicatedWerner Koch2003-12-233-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.
* Replaced deprecated type names.Werner Koch2003-12-177-18/+21
| | | | | | * card-p15.c (p15_enum_keypairs): Replaced KRC by RC. * card-dinsig.c (dinsig_enum_keypairs): Ditto.
* (main): Set the prefixes for assuan logging.Werner Koch2003-12-162-0/+8
|
* * scdaemon.c, scdaemon.h: New options --allow-admin and --deny-admin.Werner Koch2003-12-014-2/+20
| | | | | * app-openpgp.c (verify_chv3): Check it here.
* Mainly changes to adjust for the changed KSBA API.Werner Koch2003-11-125-22/+23
|
* * apdu.c (close_ct_reader, close_pcsc_reader): Implemented.Werner Koch2003-10-313-4/+24
| | | | | (get_ccid_error_string): New. Not very useful messages, though.
* * command.c (cmd_genkey, cmd_passwd): Fixed faulty use ofWerner Koch2003-10-254-7/+45
| | | | | | | !spacep(). * apdu.c (apdu_open_reader): Hacks for PC/SC under Windows.
* * command.c (cmd_checkpin): New.Werner Koch2003-10-219-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.
* * ccid-driver.c (ccid_transceive): Add T=1 chaining for sending.Werner Koch2003-10-092-32/+74
|
* * call-agent.c (agent_scd_getattr): Don't clear the passed infoWerner Koch2003-10-082-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.
* Fixes to make inclusion of card raleted source files into 1.3 easier.Werner Koch2003-10-027-9/+76
|
* * command.c (cmd_getattr): New command GETATTR.Werner Koch2003-09-305-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.
* Minor fixesWerner Koch2003-09-302-1/+5
|
* (parse_ccid_descriptor): New.Werner Koch2003-09-192-0/+246
| | | | | | (read_device_info): New. (ccid_open_reader): Check that the device has all required features.
* * configure.ac: Required newer versions of some libraries.V1-9-1Werner Koch2003-09-064-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.
* * ccid-driver.c: More work, data can now actually be retrieved.Werner Koch2003-09-053-164/+320
| | | | | | * ccid-driver.c, ccid-driver.h: Alternativley allow use under BSD conditions.
* * configure.ac (HAVE_LIBUSB): Added a simple test for libusb.Werner Koch2003-09-027-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-26 Timo Schulz <[email protected]>Timo Schulz2003-08-262-0/+7
| | | | | | * apdu.c (new_reader_slot): Only set 'is_osc' when OpenSC is used.
* (cmd_setattr): Use a copy of LINE.Werner Koch2003-08-252-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/.
* * scdaemon.c, scdaemon.h: New option --pcsc-driver.Werner Koch2003-08-194-1/+22
| | | | | | * apdu.c (apdu_open_reader): Use that option here instead of a hardcoded one.
* * scdaemon.c, scdaemon.h: New option --disable-opensc.Werner Koch2003-08-182-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.
* * Makefile.am: Add OPENSC_LIBS to all programs.Werner Koch2003-08-185-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.
* * Always use 'dynload.h' instead of 'dlfcn.h'.Timo Schulz2003-08-145-32/+36
|
* Cleanups, fixes and PC/SC supportWerner Koch2003-08-0510-173/+456
|
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-0517-0/+7138
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-06-053-0/+575
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-199-2888/+0
| | | | 'GNUPG-1-9-BRANCH'.
* use setlocale().Werner Koch2002-08-211-3/+3
|
* * scdaemon.c (main): New option --daemon so that the program isWerner Koch2002-08-212-4/+18
| | | | | not accidently started in the background.
* * scdaemon.c: Include i18n.h.Werner Koch2002-08-167-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.
* * card-common.h (struct p15_private_s): Forward declaration. AddWerner Koch2002-08-165-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.
* Minor changes for gettextNEWPG-0-3-10Werner Koch2002-08-102-1/+4
|
* * card.c (card_get_serial_and_stamp): Use the tokeinfo serialWerner Koch2002-08-095-52/+158
| | | | | number as a fallback. Add a special prefix for serial numbers.
* * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.Werner Koch2002-06-272-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.
* * card-dinsig.c: Documented some stuff from the DIN norm.Werner Koch2002-06-152-2/+57
|
* * call-agent.c (start_agent): Make copies of old locales and checkWerner Koch2002-04-251-4/+4
| | | | | | | for setlocale. * configure.ac: Check for setlocale.
* * command.c (cmd_pksign, cmd_pkdecrypt): Use a copy of the key ID.Werner Koch2002-04-152-2/+19
|
* * scdaemon.c: New option --debug-sc N.Werner Koch2002-04-125-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.
* * card.c (card_open): Return immediately when no reader is available.Werner Koch2002-04-102-0/+5
|
* * card.c (card_open, card_close): Adjusted for changes in OpenSC.Werner Koch2002-03-284-64/+61
|
* Added missing fileNEWPG-0-3-3Werner Koch2002-03-181-0/+1
|
* More stuff for SCs - don't expect them to work.Werner Koch2002-03-183-0/+671
|
* Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch2002-03-185-406/+192
|
* sm/Werner Koch2002-03-061-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.
* Decryption using a Cryptoflex card does now work.Werner Koch2002-03-063-1/+140
|
* Well and some stuff to access the SC will be helpful. Note, that theWerner Koch2002-03-053-16/+116
| | | | | code requires the latest OpenSC CVS code.
* Added more code fragments.Werner Koch2002-03-043-29/+220
|
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-285-30/+347
| | | | | no real code yet.
* Some experimental code - don't use it.Werner Koch2002-02-184-16/+315
|
* * scdaemon.c scdaemon.h, command.c: New. Based on the code fromWerner Koch2002-01-265-0/+925
the gpg-agent.