aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-03-05New PIN Callback attributes in gpg-agent.Werner Koch1-64/+61
Common prompts for keypad and simple card reader. More support for Netkey cards; PIN management works now.
2008-12-05Add option --card-timeout.Werner Koch1-3/+6
Add a new attribyte to app-openpgp.c Fix two portability bugs. Have gpg-connect-agent autostart gpg-agent on W32.
2008-11-03Use bin2hex if possible.Werner Koch1-13/+10
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-0/+5
2008-09-25Finished support for v2 cards with the exception of secure messaging.Werner Koch1-88/+425
2008-09-23Improvements for 2k keys.Werner Koch1-37/+137
2008-09-23Support the Certifciate DO of the v2 OpenPGP cards.Werner Koch1-13/+169
2008-08-312008-08-30 Moritz <[email protected]>Moritz Schulte1-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.
2008-08-18Fix new test for v2 cards.Werner Koch1-2/+2
2008-07-30prompt change.Werner Koch1-2/+2
2008-07-17Do not run the setuid test if running under as root proper.Werner Koch1-2/+60
Documentation fixes. Some enhancements for the new OpenPGP Card.
2008-06-24Add support for the TCOS NullPIN feature.Werner Koch1-1/+3
2008-04-21Use default PIN flagWerner Koch1-1/+20
2008-03-26Preparing a release.Werner Koch1-21/+69
2007-12-12Support DSA2.Werner Koch1-1/+1
Support Camellia for testing. More audit stuff.
2007-12-10Fix for bug 851.Werner Koch1-3/+44
Fixed auto generation of the stub key for the card. Allow to encrypt toElgamal encryption keys of type 20.
2007-07-05Fixed card key generation of gpg2.Werner Koch1-4/+5
Reveal less information about timings while generating a key.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-06First steps towards supporting W32.Werner Koch1-2/+2
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2006-12-21The keypad is now also used for OpenPGP signing keys.Werner Koch1-98/+141
2006-11-20Made some PIN pads work.Werner Koch1-12/+37
Some cleanups for 64 bit CPUs.
2006-10-11Allow pkcs#10 creation directkly from a smart cardWerner Koch1-1/+21
2006-10-05bug fixesWerner Koch1-1/+1
2006-09-232006-09-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+8
* app-openpgp.c (do_sign): Advance INDATA by the SHA1 resp. RMD160 prefix length.
2006-09-14Take advantage of newer gpg-error features.Werner Koch1-10/+10
2006-08-292006-08-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-34/+42
* app-openpgp.c (do_decipher, do_sign): Allow "OPENPGP.2" resp. "OPENPGP.1" for KEYIDSTR.
2006-06-30A couple of fixes. gpg2's key generation does now work.Werner Koch1-1/+1
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2006-04-11Added command APDUWerner Koch1-2/+2
2006-02-06Support for CardMan 4040Werner Koch1-3/+7
2005-11-28Preparing an interim releaseWerner Koch1-1/+8
2005-09-09Bug fixes and ssh support for the BELPIC.Werner Koch1-1/+26
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-1482/+0
2005-07-20* keylist.c (email_kludge): Reworked.Werner Koch1-1/+8
* certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf arg to unsigned. * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-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.
2005-06-03* command.c (cmd_updatestartuptty): New.Werner Koch1-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.
2005-05-24* call-scd.c (inq_needpin): Skip leading spaces in of PINWerner Koch1-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.
2005-05-23* Makefile.am: Do not build sc-copykeys anymore.Werner Koch1-212/+0
* app-openpgp.c (app_openpgp_storekey, app_openpgp_readkey) (app_openpgp_cardinfo): Removed.
2005-05-21* call-scd.c (start_scd): Don't test for an alive scdaemon here.Werner Koch1-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.
2005-05-20* protect-tool.c: New option --canonical.Werner Koch1-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.
2005-05-18Changed the scdaemon to handle concurrent sessions. AdjustedWerner Koch1-29/+29
gpg-agent accordingly. Code cleanups.
2005-04-27* app-p15.c (micardo_mse): New.Werner Koch1-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.
2005-04-14(retrieve_key_material): Rewritten. Return aWerner Koch1-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.
2005-04-11* app-openpgp.c (do_check_pin): Add hack to allow verification ofWerner Koch1-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-292005-03-29 Moritz Schulte <[email protected]>Moritz Schulte1-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.
2005-02-25* findkey.c (modify_description): Keep invalid % escapes, so thatWerner Koch1-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.
2005-02-24* gpg-agent.c (handle_connections): Need to check for events ifWerner Koch1-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.
2005-02-22* app-openpgp.c (app_local_s): New field PK.Werner Koch1-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.
2005-02-03Forgot to commit the recent fixed to scd and logging - doing it nowWerner Koch1-64/+127
2004-10-22Compile fixes.Werner Koch1-3/+3