aboutsummaryrefslogtreecommitdiffstats
path: root/scd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * gpg-agent.c (main): Use default_homedir().Werner Koch2004-12-213-16/+8
| | | | | | | | | | | | | | | | | | | * protect-tool.c (main): Ditto. * signal.c (got_fatal_signal, got_usr_signal) (got_fatal_signal) [DOSISH]: Don't build. * simple-gettext.c: Include sysutils.h * homedir.c: New. * Makefile.am (libcommon_a_SOURCES): Add it. (EXTRA_DIST): Removed mkerror and mkerrtok. * gpgv.c, g10.c (main): Use default_hoemdir (). * scdaemon.c (main): Use default_homedir(). * gpgsm.c (main): Use default_homedir().
* * query.c (initialize_module_query):Werner Koch2004-12-191-0/+5
| | | | | | | | | | * call-scd.c (initialize_module_call_scd): New. * w32-pth.c (pth_init): Enable debugging depending on env var. (pth_self): New. (pth_mutex_release, pth_mutex_acquire): Implemented directly using the W32 API.
* * configure.ac (AH_BOTTOM): Define EXEEXT_S.Werner Koch2004-12-182-6/+2
| | | | | | | | | | | | | | * autogen.sh: Updated --build-w32 feature. * gpg-agent.c (main): Remove special Pth initialize. * w32-pth.c (pth_init): Reverse return values. Use TRUE and FALSE constants. (pth_kill, pth_mutex_acquire, pth_attr_set, pth_join, pth_cancel): Ditto. * scdaemon.c (main) [W32]: Remove special Pth initialize..
* Avoid the " map_to_assuan_status called with no error source" diagnostic.Werner Koch2004-12-182-0/+8
|
* A whole bunch of changes to allow building for W32.Werner Koch2004-12-155-10/+67
|
* * configure.ac (have_w32_system): New. Disable Pth checks for W32.Werner Koch2004-12-062-0/+6
| | | | | | | | | Link jnlib/w32-pth.h to pth.h. * Makefile.am (pkglib_PROGRAMS): Build only for W32. * keydb.c: Don't define DIRSEP_S here.
* First take on a W32 portWerner Koch2004-12-021-0/+691
|
* Compile fixes.Werner Koch2004-10-222-3/+8
|
* * app-openpgp.c (do_sign): Replace asprintf by direct allocation.Werner Koch2004-10-223-2/+22
| | | | | | | | This avoids problems with missing vasprintf implementations in gnupg 1.4. * app-common.h (app_openpgp_storekey: Add prototype.
* * sc-investigate: Removed.Werner Koch2004-10-207-911/+713
| | | | | | | | | | | | | | | | | * Makefile.am (sc_investigate): Removed. * pcsc-wrapper.c (load_pcsc_driver): Load get_status_change func. (handle_open): Succeed even without a present card. (handle_status, handle_reset): New. * apdu.c (apdu_open_reader): Load pcsc_get_status_change fucntion. (pcsc_get_status): Implemented. (reset_pcsc_reader): Implemented. (open_pcsc_reader): Succeed even with no card inserted. (open_ccid_reader): Set LAST_STATUS. * iso7816.c (iso7816_select_application): Always use 0 for P1.
* (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 <[email protected]>Moritz Schulte2004-07-272-0/+7
| | | | | * apdu.c: Include <signal.h>.
* 2004-07-27 Moritz Schulte <[email protected]>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 <[email protected]>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
|