aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* (parse_login_data): New.Werner Koch2004-10-141-29/+106
| | | | | | (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-141-0/+2
|
* * de.po: Updated.Werner Koch2004-09-301-80/+196
| | | | | | | | | | | * 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-201-1/+1
| | | | | | * 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-091-0/+7
| | | | | | | added the BMI card workaround. (app_munge_serialno): New. * app-openpgp.c (app_select_openpgp): Try munging serialno.
* (do_getattr): Fix for sending CA-FPR.Werner Koch2004-07-011-2/+2
|
* * app-openpgp.c (do_setattr): Sync FORCE_CHV1.Werner Koch2004-04-291-1/+5
|
* * app-common.h: Do not include ksba.h for gnupg 1.Werner Koch2004-04-281-1/+0
|
* * app-common.h: New members FNC.DEINIT and APP_LOCAL.Werner Koch2004-04-261-32/+212
| | | | | | | | | | | | | | | * 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.
* * app-dinsig.c: Implemented. Based on app-nks.c and card-dinsig.cWerner Koch2004-03-161-1/+1
| | | | | | | | | | | | | | * 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-161-1/+1
|
* (iso7816_manage_security_env): New.Werner Koch2004-01-281-1/+2
| | | | | | | (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-271-111/+28
| | | | | smartcard applications.
* * apdu.c (apdu_send_le): Send a get_response with the indicatedWerner Koch2003-12-231-0/+21
| | | | | | | | 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.
* * scdaemon.c, scdaemon.h: New options --allow-admin and --deny-admin.Werner Koch2003-12-011-0/+6
| | | | | * app-openpgp.c (verify_chv3): Check it here.
* * command.c (cmd_checkpin): New.Werner Koch2003-10-211-51/+86
| | | | | | | | | (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.
* * call-agent.c (agent_scd_getattr): Don't clear the passed infoWerner Koch2003-10-081-0/+25
| | | | | | | | | | | | | | | 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-021-2/+16
|
* * command.c (cmd_getattr): New command GETATTR.Werner Koch2003-09-301-230/+253
| | | | | | | | | | | | | | | | * 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-301-1/+1
|
* Cleanups, fixes and PC/SC supportWerner Koch2003-08-051-101/+34
|
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-051-0/+1482
'GNUPG-1-9-BRANCH'.