summaryrefslogtreecommitdiffstats
path: root/scd (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* (parse_login_data): New.Werner Koch2004-10-142-29/+112
| | | | | | (app_select_openpgp): Call it. (do_setattr): Reparse it after change.
* Added ID keywords because these files are often used in other packages.Werner Koch2004-10-148-0/+29
|
* (ccid_open_reader): Store the vendor ID.Werner Koch2004-10-063-26/+369
| | | | | | (ccid_transceive_secure): New. (parse_ccid_descriptor): Workaround for an SCM reader problem.
* Preparing a new release. Updated gettextWerner Koch2004-09-306-260/+712
|
* * de.po: Updated.Werner Koch2004-09-302-80/+267
| | | | | | | | | | | * POTFILES.in: Add more files. * app-openpgp.c (do_sign): Add the error string to the verify failed messages. * keylist.c (list_cert_colon): Make sure that the expired flag has a higher precedence than the invalid flag.
* (show_key_with_all_names): Print the card S/N.Werner Koch2004-09-202-1/+6
| | | | | | * app-openpgp.c (app_select_openpgp): Its app_munge_serialno and not app_number_serialno.
* * app.c (select_application): Fixed serial number extraction andWerner Koch2004-09-094-3/+74
| | | | | | | added the BMI card workaround. (app_munge_serialno): New. * app-openpgp.c (app_select_openpgp): Try munging serialno.
* * import.c (check_and_store): Do a full validation ifWerner Koch2004-08-171-1/+1
| | | | | | | | | | | | | | --with-validation is set. * certchain.c (gpgsm_basic_cert_check): Print more detailed error messages. * certcheck.c (do_encode_md): Partly support DSA. Add new arg PKALGO. Changed all callers to pass it. (pk_algo_from_sexp): New. tests/pkits: New directory
* * configure.ac: Changed tests for libusb to also suuport theWerner Koch2004-08-059-18/+181
| | | | | | | | | | | | | | | | | | stable version 0.1.x. * scdaemon.texi (Card applications): New section. * scdaemon.c (main): New option --disable-application. * app.c (is_app_allowed): New. (select_application): Use it to check for disabled applications. * ccid-driver.h (CCID_DRIVER_ERR_ABORTED): New. * ccid-driver.c (ccid_open_reader): Support the stable 0.1 version of libusb. (ccid_get_atr): Handle short messages. * apdu.c (my_rapdu_get_status): Implemented.
* 2004-07-27 Moritz Schulte <moritz@g10code.com>Moritz Schulte2004-07-272-0/+7
| | | | | * apdu.c: Include <signal.h>.
* 2004-07-27 Moritz Schulte <moritz@g10code.com>Moritz Schulte2004-07-271-4/+5
| | | | | * Makefile.am: Use @DL_LIBS@ instead of -ldl.
* * configure.ac: Define AM conditional HAVE_OPENSC.V1-9-10Werner Koch2004-07-225-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.
* * trustlist.c (read_list): Allow colons in the fingerprint.Werner Koch2004-07-222-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.
* (reader_table_s): Add function pointers for the backends.Werner Koch2004-07-166-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.
* Initialize Pth which is now required.Werner Koch2004-07-012-1/+43
| | | | | (interactive_shell): New command "readpk".
* (do_getattr): Fix for sending CA-FPR.Werner Koch2004-07-012-2/+11
|
* * sc-investigate.c (my_read_line): Renamed from read_line.Werner Koch2004-06-212-2/+6
|
* (osc_get_status): Fixed type in function name. Noted byWerner Koch2004-06-162-1/+6
| | | | | Axel Thimm. Yes, I didn't tested it with OpenSC :-(.
* * app-openpgp.c (do_setattr): Sync FORCE_CHV1.Werner Koch2004-04-292-1/+9
|
* * app-common.h: Do not include ksba.h for gnupg 1.Werner Koch2004-04-283-1/+6
|
* * app-common.h: New members FNC.DEINIT and APP_LOCAL.Werner Koch2004-04-264-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.
* * scdaemon.c (main): Do the last change the usual way. This is soWerner Koch2004-04-262-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-26 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2004-04-262-3/+12
| | | | | | * scdaemon.c (main): For now, always print default filename for --gpgconf-list, and never /dev/null.
* * command.c (scd_update_reader_status_file): Send a signal back toWerner Koch2004-04-213-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.
* * command.c (scd_update_reader_status_file): Write status files.Werner Koch2004-04-205-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.
* * pcsc-wrapper.c: New.Werner Koch2004-04-2011-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.
* * configure.ac: Require libgcrypt 1.1.94.Werner Koch2004-04-061-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
* (main) <gpgconf_list>: Fixed output for pcsc_driver.Werner Koch2004-03-233-15/+11
|
* * gpg-agent.c (main) <gpgconf>: Fixed default value quoting.Werner Koch2004-03-172-2/+6
| | | | | | * scdaemon.c (main) <gpgconf>: Fixed default value quoting. * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
* * app-dinsig.c: Implemented. Based on app-nks.c and card-dinsig.cWerner Koch2004-03-1610-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.
* *** empty log message ***Werner Koch2004-03-1614-46/+200
|
* * protect-tool.c: New options --have-cert and --prompt.Werner Koch2004-02-191-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.
* * sc-investigate.c (main): Setup the used character set.Werner Koch2004-02-183-7/+92
| | | | | | | | * scdaemon.c (main): Ditto. * scdaemon.c (set_debug): New. Add option --debug-level. (main): Add option --gpgconf-list.
* Include cmacros.am for common flags.Werner Koch2004-02-123-5/+11
|
* (reset_notify): Release the application context andWerner Koch2004-01-292-2/+8
| | | | | close the reader.
* (iso7816_manage_security_env): New.Werner Koch2004-01-285-22/+246
| | | | | | | (iso7816_decipher): Add PADIND argument. ** app-nks.c is now functional **
* Some minor bug fixes, new test utilities and started support for otherWerner Koch2004-01-2720-269/+1818
| | | | | smartcard applications.
* * 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
|