aboutsummaryrefslogtreecommitdiffstats
path: root/scd (unfollow)
Commit message (Collapse)AuthorFilesLines
2004-07-22* configure.ac: Define AM conditional HAVE_OPENSC.V1-9-10Werner Koch5-12/+38
* Makefile.am: Make OpenSC lib link after libgcrypt. Do not link to pth. * apdu.c: Don't use Pth if we use OpenSC. * sc-investigate.c, scdaemon.c: Disable use of pth if OpenSC is used. * scdaemon.c (main): Bumbed thread stack size up to 512k.
2004-07-22* trustlist.c (read_list): Allow colons in the fingerprint.Werner Koch2-1/+5
(headerblurb): Rephrased. * gpg-agent.c (handle_connections): Increase the stack size ot 256k. * de.po: Updated. * scdaemon.c (main): Bumbed thread stack size up to 512k. * keylist.c (list_cert_raw): Print the keygrip.
2004-07-16(reader_table_s): Add function pointers for the backends.Werner Koch6-558/+1226
(apdu_close_reader, apdu_get_status, apdu_activate) (send_apdu): Make use of them. (new_reader_slot): Intialize them to NULL. (dump_ccid_reader_status, ct_dump_reader_status): New. (dump_pcsc_reader_status): New. (open_ct_reader, open_pcsc_reader, open_ccid_reader) (open_osc_reader, open_rapdu_reader): Intialize function pointers. (ct_activate_card, ct_send_apdu, pcsc_send_apdu, osc_send_apdu) (error_string): Removed. Replaced by apdu_strerror. (get_ccid_error_string): Removed. (ct_activate_card): Remove the unused loop. (reset_ct_reader): Implemented. (ct_send_apdu): Activate the card if not yet done. (pcsc_send_apdu): Ditto.
2004-07-01Initialize Pth which is now required.Werner Koch2-1/+43
(interactive_shell): New command "readpk".
2004-07-01(do_getattr): Fix for sending CA-FPR.Werner Koch2-2/+11
2004-06-21* sc-investigate.c (my_read_line): Renamed from read_line.Werner Koch2-2/+6
2004-06-16(osc_get_status): Fixed type in function name. Noted byWerner Koch2-1/+6
Axel Thimm. Yes, I didn't tested it with OpenSC :-(.
2004-04-29* app-openpgp.c (do_setattr): Sync FORCE_CHV1.Werner Koch2-1/+9
2004-04-28* app-common.h: Do not include ksba.h for gnupg 1.Werner Koch3-1/+6
2004-04-26* app-common.h: New members FNC.DEINIT and APP_LOCAL.Werner Koch4-33/+235
* app.c (release_application): Call new deconstructor. * app-openpgp.c (do_deinit): New. (get_cached_data, flush_cache_item, flush_cache_after_error) (flush_cache): New. (get_one_do): Replaced arg SLOT by APP. Make used of cached data. (verify_chv2, verify_chv3): Flush some cache item after error. (do_change_pin): Ditto. (do_sign): Ditto. (do_setattr): Flush cache item. (do_genkey): Flush the entire cache. (compare_fingerprint): Use cached data.
2004-04-26* scdaemon.c (main): Do the last change the usual way. This is soWerner Koch2-5/+8
that we can easily test for versioned config files above. * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config filename.
2004-04-262004-04-26 Marcus Brinkmann <[email protected]>Marcus Brinkmann2-3/+12
* scdaemon.c (main): For now, always print default filename for --gpgconf-list, and never /dev/null.
2004-04-21* command.c (scd_update_reader_status_file): Send a signal back toWerner Koch3-8/+55
the client. (option_handler): Parse the new event-signal option. * scdaemon.c (handle_signal): Do not use SIGUSR{1,2} anymore for changing the verbosity.
2004-04-20* command.c (scd_update_reader_status_file): Write status files.Werner Koch5-11/+63
* app-help.c (app_help_read_length_of_cert): Fixed calculation of R_CERTOFF. * pcsc-wrapper.c: New. * Makefile.am (pkglib_PROGRAMS): Install it here. * apdu.c (writen, readn): New. (open_pcsc_reader, pcsc_send_apdu, close_pcsc_reader): Use the pcsc-wrapper if we are using Pth. (apdu_send_le): Reinitialize RESULTLEN. Handle SW_EOF_REACHED like SW_SUCCESS.
2004-04-20* pcsc-wrapper.c: New.Werner Koch11-78/+1827
* Makefile.am (pkglib_PROGRAMS): Install it here. * apdu.c (writen, readn): New. (open_pcsc_reader, pcsc_send_apdu, close_pcsc_reader): Use the pcsc-wrapper if we are using Pth.
2004-04-06* configure.ac: Require libgcrypt 1.1.94.Werner Koch1-3/+3
Introduce PACKAGE_GT and set it to gnupg2. * gpg-agent.c (main): Use new libgcrypt thread library register scheme. * Makevars (DOMAIN): Init from PACKAGE_GT
2004-03-23(main) <gpgconf_list>: Fixed output for pcsc_driver.Werner Koch3-15/+11
2004-03-17* gpg-agent.c (main) <gpgconf>: Fixed default value quoting.Werner Koch2-2/+6
* scdaemon.c (main) <gpgconf>: Fixed default value quoting. * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
2004-03-16* app-dinsig.c: Implemented. Based on app-nks.c and card-dinsig.cWerner Koch10-102/+561
* app-nks.c (get_length_of_cert): Removed. * app-help.c: New. (app_help_read_length_of_cert): New. Code taken from above. New optional arg R_CERTOFF. * card-dinsig.c: Removed. * card.c (card_get_serial_and_stamp): Do not bind to the old and never finsiged card-dinsig.c. * iso7816.c (iso7816_read_binary): Allow for an NMAX > 254.
2004-03-16*** empty log message ***Werner Koch14-46/+200
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