aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* New PIN Callback attributes in gpg-agent.Werner Koch2009-03-051-64/+61
| | | | | | Common prompts for keypad and simple card reader. More support for Netkey cards; PIN management works now.
* Add option --card-timeout.Werner Koch2008-12-051-3/+6
| | | | | | | Add a new attribyte to app-openpgp.c Fix two portability bugs. Have gpg-connect-agent autostart gpg-agent on W32.
* Use bin2hex if possible.Werner Koch2008-11-031-13/+10
|
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-201-0/+5
|
* Finished support for v2 cards with the exception of secure messaging.Werner Koch2008-09-251-88/+425
|
* Improvements for 2k keys.Werner Koch2008-09-231-37/+137
|
* Support the Certifciate DO of the v2 OpenPGP cards.Werner Koch2008-09-231-13/+169
|
* 2008-08-30 Moritz <[email protected]>Moritz Schulte2008-08-311-4/+4
| | | | | | | | | | | | | * scdaemon.c (main): Use estream_asprintf instead of asprintf. * command.c (update_reader_status_file): Likewise. (cmd_serialno): Use estream_asprintf instead of asprintf and xfree instead of free to release memory allocated through (estream_)asprintf. (cmd_learn): Likewise. (pin_cb): Likewise. * app-openpgp.c (get_public_key): Likewise.
* Fix new test for v2 cards.Werner Koch2008-08-181-2/+2
|
* prompt change.Werner Koch2008-07-301-2/+2
|
* Do not run the setuid test if running under as root proper.Werner Koch2008-07-171-2/+60
| | | | | | Documentation fixes. Some enhancements for the new OpenPGP Card.
* Add support for the TCOS NullPIN feature.Werner Koch2008-06-241-1/+3
|
* Use default PIN flagWerner Koch2008-04-211-1/+20
|
* Preparing a release.Werner Koch2008-03-261-21/+69
|
* Support DSA2.Werner Koch2007-12-121-1/+1
| | | | | | Support Camellia for testing. More audit stuff.
* Fix for bug 851.Werner Koch2007-12-101-3/+44
| | | | | | Fixed auto generation of the stub key for the card. Allow to encrypt toElgamal encryption keys of type 20.
* Fixed card key generation of gpg2.Werner Koch2007-07-051-4/+5
| | | | | Reveal less information about timings while generating a key.
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* First steps towards supporting W32.Werner Koch2007-06-061-2/+2
| | | | | | | This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
* The keypad is now also used for OpenPGP signing keys.Werner Koch2006-12-211-98/+141
|
* Made some PIN pads work.Werner Koch2006-11-201-12/+37
| | | | | Some cleanups for 64 bit CPUs.
* Allow pkcs#10 creation directkly from a smart cardWerner Koch2006-10-111-1/+21
|
* bug fixesWerner Koch2006-10-051-1/+1
|
* 2006-09-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-09-231-2/+8
| | | | | | | * app-openpgp.c (do_sign): Advance INDATA by the SHA1 resp. RMD160 prefix length.
* Take advantage of newer gpg-error features.Werner Koch2006-09-141-10/+10
|
* 2006-08-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-08-291-34/+42
| | | | | | | * app-openpgp.c (do_decipher, do_sign): Allow "OPENPGP.2" resp. "OPENPGP.1" for KEYIDSTR.
* A couple of fixes. gpg2's key generation does now work.Werner Koch2006-06-301-1/+1
|
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* Added command APDUWerner Koch2006-04-111-2/+2
|
* Support for CardMan 4040Werner Koch2006-02-061-3/+7
|
* Preparing an interim releaseWerner Koch2005-11-281-1/+8
|
* Bug fixes and ssh support for the BELPIC.Werner Koch2005-09-091-1/+26
|
* * keylist.c (email_kludge): Reworked.Werner Koch2005-07-201-1/+8
| | | | | | | * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf arg to unsigned. * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
* gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch2005-06-161-13/+14
| | | | | | | char * vs. unsigned char * warnings. The GNU coding standards used to say that these mismatches are okay and better than a bunch of casts. Obviously this has changed now.
* * command.c (cmd_updatestartuptty): New.Werner Koch2005-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | * gpg-agent.c: New option --write-env-file. * gpg-agent.c (handle_connections): Make sure that the signals we are handling are not blocked.Block signals while creating new threads. * estream.c: Use HAVE_CONFIG_H and not USE_CONFIG_H! (es_func_fd_read, es_func_fd_write): Protect against EINTR. * gpg-agent.texi (Agent UPDATESTARTUPTTY): New. * scdaemon.c (handle_connections): Make sure that the signals we are handling are not blocked.Block signals while creating new threads. (handle_connections): Include the file descriptor into the name of the thread.
* * call-scd.c (inq_needpin): Skip leading spaces in of PINWerner Koch2005-05-241-2/+2
| | | | | | | | | description. * divert-scd.c (getpin_cb): Enhanced to cope with description flags. * query.c (agent_askpin): Add arg PROMPT_TEXT. Changed all callers.
* * Makefile.am: Do not build sc-copykeys anymore.Werner Koch2005-05-231-212/+0
| | | | | | * app-openpgp.c (app_openpgp_storekey, app_openpgp_readkey) (app_openpgp_cardinfo): Removed.
* * call-scd.c (start_scd): Don't test for an alive scdaemon here.Werner Koch2005-05-211-1/+1
| | | | | | | | | (agent_scd_check_aliveness): New. * gpg-agent.c (handle_tick): Test for an alive scdaemon. (handle_signal): Print thread info on SIGUSR1. * scdaemon.c (handle_signal): Print thread info on SIGUSR1.
* * protect-tool.c: New option --canonical.Werner Koch2005-05-201-33/+322
| | | | | | | | | | | | | | | | | | | | | | | | (show_file): Implement it. * keyformat.txt: Define the created-at attribute for keys. * ccid-driver.c: Replaced macro DEBUG_T1 by a new debug level. (parse_ccid_descriptor): Mark SCR335 firmware version 5.18 good. (ccid_transceive): Arghhh. The seqno is another bit in the R-block than in the I block, this was wrong at one place. * scdaemon.c: New options --debug-ccid-driver and --debug-disable-ticker. * app-openpgp.c (do_genkey, do_writekey): Factored code to check for existing key out into .. (does_key_exist): .. New function. * gpg-connect-agent.c (add_definq, show_definq, clear_definq) (handle_inquire): New. (read_and_print_response): Handle INQUIRE command. (main): Implement control commands.
* Changed the scdaemon to handle concurrent sessions. AdjustedWerner Koch2005-05-181-29/+29
| | | | | gpg-agent accordingly. Code cleanups.
* * app-p15.c (micardo_mse): New.Werner Koch2005-04-271-3/+3
| | | | | | | | | | | | | | (do_sign): Call it. * iso7816.c (iso7816_manage_security_env): Allow passing DATA as NULL to indicate an empty Lc. * tlv.c (find_tlv): Check that a found object fits into the buffer. (find_tlv_unchecked): New as replacement for the old non-checking variant. * app.c (select_application): Keep on using the non-checking variant. * app-openpgp.c (get_one_do, dump_all_do): Ditto.
* (retrieve_key_material): Rewritten. Return aWerner Koch2005-04-141-256/+136
| | | | | | | | | proper error code. (retrieve_next_token): Removed. (retrieve_fpr_from_card): Rewritten to make use of DO caching and to take the KEYNO as arg. (get_public_key): Renamed variable for clarity.
* * app-openpgp.c (do_check_pin): Add hack to allow verification ofWerner Koch2005-04-111-44/+100
| | | | | | | | CHV3. (get_public_key): Don't use gcry functions to create S-expressions. (do_deinit, do_readkey, do_genkey, send_keypair_info): Adjust for above change.
* 2005-03-29 Moritz Schulte <[email protected]>Moritz Schulte2005-03-291-14/+316
| | | | | | | | | * app-openpgp.c (retrieve_fpr_from_card): New function. (retrieve_next_token): New function. (retrieve_key_material): New function. (get_public_key): Implement retrival of key through expernal helper (gpg) in case the openpgp card is not cooperative enough.
* * findkey.c (modify_description): Keep invalid % escapes, so thatWerner Koch2005-02-251-20/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | %0A may pass through. * agent.h (server_control_s): New field USE_AUTH_CALL. * call-scd.c (agent_card_pksign): Make use of it. * command-ssh.c (data_sign): Set the flag. (ssh_send_key_public): New arg OVERRIDE_COMMENT. (card_key_available): Add new arg CARDSN. (ssh_handler_request_identities): Use the card s/n as comment. (sexp_key_extract): Use GCRYMPI_FMT_STD. (data_sign): Ditto. * learncard.c (make_shadow_info): Moved to .. * protect.c (make_shadow_info): .. here. Return NULL on malloc failure. Made global. * agent.h: Add prototype. * xasprintf.c (xtryasprintf): New. * app-openpgp.c (get_public_key): Make sure not to return negative numbers. (do_sign): Allow passing of indata with algorithm prefix. (do_auth): Allow OPENPGP.3 as an alternative ID. * app.c (app_getattr): Return just the S/N but not the timestamp. * no-libgcrypt.c (gcry_strdup): New.
* * gpg-agent.c (handle_connections): Need to check for events ifWerner Koch2005-02-241-16/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | select returns with -1. * tools.texi (gpg-connect-agent): New. * app-openpgp.c (get_one_do): Never try to get a non cacheable object from the cache. (get_one_do): Add new arg to return an error code. Changed all callers. (do_getattr): Let it return a proper error code. * app.c (select_application): Return an error code and the application context in an new arg. * command.c (open_card): Adjusted for that. Don't use the fallback if no card is present. Return an error if the card has been removed without a reset. (do_reset, cmd_serialno): Clear that error flag. (TEST_CARD_REMOVAL): New. Use it with all command handlers. * scdaemon.c (ticker_thread): Termintate if a shutdown is pending. * apdu.c: Added some PCSC error codes. (pcsc_error_to_sw): New. (reset_pcsc_reader, pcsc_get_status, pcsc_send_apdu) (open_pcsc_reader): Do proper error code mapping. * gpg-connect-agent.c: New. * Makefile.am: Add it.
* * app-openpgp.c (app_local_s): New field PK.Werner Koch2005-02-221-4/+243
| | | | | | | | | | | (do_deinit, do_genkey, app_openpgp_storekey): Clear it. (get_public_key, send_keypair_info): New. (do_learn_status): Send KEYPAIR info * app-common.h (app_ctx_t): Add function pointer READKEY. * app.c (app_readkey): New. * command.c (cmd_readkey): Use READKEY function if possible.
* Forgot to commit the recent fixed to scd and logging - doing it nowWerner Koch2005-02-031-64/+127
|
* Compile fixes.Werner Koch2004-10-221-3/+3
|
* * app-openpgp.c (do_sign): Replace asprintf by direct allocation.Werner Koch2004-10-221-2/+7
| | | | | | | | This avoids problems with missing vasprintf implementations in gnupg 1.4. * app-common.h (app_openpgp_storekey: Add prototype.