summaryrefslogtreecommitdiffstats
path: root/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 2009-09-23 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2009-09-232-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (NEED_LIBASSUAN_API, NEED_LIBASSUAN_VERSION): Update to new API (2, 1.1.0). agent/ 2009-09-23 Marcus Brinkmann <marcus@g10code.de> * gpg-agent.c (parse_rereadable_options): Don't set global assuan log file (there ain't one anymore). (main): Update to new API. (check_own_socket_pid_cb): Return gpg_error_t instead of int. (check_own_socket_thread, check_for_running_agent): Create assuan context before connecting to server. * command.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (write_and_clear_outbuf): Use gpg_error_t instead of assuan_error_t. (cmd_geteventcounter, cmd_istrusted, cmd_listtrusted) (cmd_marktrusted, cmd_havekey, cmd_sigkey, cmd_setkeydesc) (cmd_sethash, cmd_pksign, cmd_pkdecrypt, cmd_genkey, cmd_readkey) (cmd_keyinfo, cmd_get_passphrase, cmd_clear_passphrase) (cmd_get_confirmation, cmd_learn, cmd_passwd) (cmd_preset_passphrase, cmd_scd, cmd_getval, cmd_putval) (cmd_updatestartuptty, cmd_killagent, cmd_reloadagent) (cmd_getinfo, option_handler): Return gpg_error_t instead of int. (post_cmd_notify): Change type of ERR to gpg_error_t from int. (io_monitor): Add hook argument. Use symbols for constants. (register_commands): Change return type of HANDLER to gpg_error_t. (start_command_handler): Allocate assuan context before starting server. * call-pinentry.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (unlock_pinentry): Call assuan_release instead of assuan_disconnect. (getinfo_pid_cb, getpin_cb): Return gpg_error_t instead of int. (start_pinentry): Allocate assuan context before connecting to server. * call-scd.c (membuf_data_cb, learn_status_cb, get_serialno_cb) (membuf_data_cb, inq_needpin, card_getattr_cb, pass_status_thru) (pass_data_thru): Change return type to gpg_error_t. (start_scd): Allocate assuan context before connecting to server. common/ 2009-09-23 Marcus Brinkmann <marcus@g10code.de> * asshelp.c (start_new_gpg_agent): Allocate assuan context before starting server. g10/ 2009-09-23 Marcus Brinkmann <marcus@g10code.de> * call-agent.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (learn_status_cb, dummy_data_cb, get_serialno_cb, default_inq_cb) (learn_status_cb, inq_writecert_parms, inq_writekey_parms) (scd_genkey_cb, membuf_data_cb): Return gpg_error_t instead of int. * gpg.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (main): Update to new Assuan API. * server.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (option_handler, cmd_recipient, cmd_signer, cmd_encrypt) (cmd_decrypt, cmd_verify, cmd_sign, cmd_import, cmd_export) (cmd_delkeys, cmd_message, do_listkeys, cmd_listkeys) (cmd_listsecretkeys, cmd_genkey, cmd_getinfo): Return gpg_error_t instead of int. (register_commands): Allocate assuan context before starting server. (gpg_server): Allocate assuan_context before starting server. scd/ 2009-09-23 Marcus Brinkmann <marcus@g10code.de> * command.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (option_handler, open_card, cmd_serialno, cmd_lean, cmd_readcert) (cmd_readkey, cmd_setdata, cmd_pksign, cmd_pkauth, cmd_pkdecrypt) (cmd_getattr, cmd_setattr, cmd_writecert, cmd_writekey) (cmd_genkey, cmd_random, cmd_passwd, cmd_checkpin, cmd_lock) (cmd_unlock, cmd_getinfo, cmd_restart, cmd_disconnect, cmd_apdu) (cmd_killscd): Return gpg_error_t instead of int. (scd_command_handler): Allocate assuan context before starting server. * scdaemon.c (main): Update to new Assuan API. sm/ 2009-09-23 Marcus Brinkmann <marcus@g10code.de> * gpgsm.c (main): Update to new assuan API. * server.c: Include "gpgsm.h" before <assuan.h> due to check for GPG_ERR_SOURCE_DEFAULT and assuan.h now including gpg-error.h. (option_handler, cmd_recipient, cmd_signer, cmd_encrypt) (cmd_decrypt, cmd_verify, cmd_sign, cmd_import, cmd_export) (cmd_delkeys, cmd_message, cmd_listkeys, cmd_dumpkeys) (cmd_listsecretkeys, cmd_dumpsecretkeys, cmd_genkey) (cmd_getauditlog, cmd_getinfo): Return gpg_error_t instead of int. (register_commands): Same for member HANDLER in table. (gpgsm_server): Allocate assuan context before starting server. * sm/call-dirmngr.c: * call-dirmngr.c (prepare_dirmngr): Check for CTX and error before setting LDAPSERVER. (start_dirmngr_ext): Allocate assuan context before starting server. (inq_certificate, isvalid_status_cb, lookup_cb, lookup_status_cb) (run_command_cb, run_command_inq_cb, run_command_status_cb): Return gpg_error_t instead of int. tools/ 2009-09-23 Marcus Brinkmann <marcus@g10code.de> * gpg-connect-agent.c (getinfo_pid_cb, read_and_print_response) (main): Update to new Assuan API.
* Update estream.Werner Koch2009-09-033-341/+67
|
* * ttyio.h, ttyio.c (tty_enable_completion): Some ifdefs aroundDavid Shaw2009-08-113-4/+19
| | | | | HAVE_LIBREADLINE to allow building when readline isn't available.
* Improved detection of bad/invalid signer keys.Werner Koch2009-08-063-0/+35
|
* Ask for the keysize when generating a new card key.Werner Koch2009-08-051-1/+5
|
* * srv.c (getsrv): Fix type-punning warning.David Shaw2009-07-232-2/+6
|
* Print status of CRL checks in the audit log.Werner Koch2009-07-234-5/+43
|
* Reworked passing of envars to Pinentry.Werner Koch2009-07-0710-117/+788
|
* Alow batch ode for gpgsm --gen-key.Werner Koch2009-07-013-8/+53
| | | | | Allow CSR generation using an existing key with gpgsm.
* Reworked the estream memory buffer allocation.Werner Koch2009-06-292-35/+53
| | | | | Committed already posted patches for the v2 card.
* The variable is called RET and not RC.Werner Koch2009-06-292-4/+52
|
* Fixed stupid typo.Werner Koch2009-06-252-1/+5
|
* Fixed a bunch of little bugs as reported by Fabian Keil.Werner Koch2009-06-244-6/+23
| | | | | Still one problem left; marked with a gcc #warning.
* Add readcert command.Werner Koch2009-06-171-1/+1
| | | | | fix reading large certificates.
* Fixed an fopen problem on Windows Vista.Werner Koch2009-06-032-51/+37
|
* Avoid caches to get the most recent copy of the key. This is bug #1061David Shaw2009-05-283-9/+43
|
* * http.h, http.c (send_request): Pass in srvtag and make its presenceDavid Shaw2009-05-283-15/+26
| | | | | | | | | | | | | sufficient to turn the feature on. (http_open): From here. (http_document): And here. * gpgkeys_hkp.c (srv_replace): New function to transform a SRV hostname to a real hostname. (main): Call it from here for the HAVE_LIBCURL case (without libcurl is handled via the curl-shim). * curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): Add a CURLOPT_SRVTAG_GPG_HACK (passed through the the http engine).
* * srv.c (getsrv): Raise maximum packet size to 2048, as PACKETSZ isDavid Shaw2009-05-282-4/+9
| | | | | too small these days.
* signal cleanup fixWerner Koch2009-05-263-0/+13
|
* Fix possible system freeze on Mac OS X.Werner Koch2009-05-203-5/+9
|
* New helper function factored out of ../scd and equipped with test code.Werner Koch2009-05-074-0/+288
|
* Ported changes from 1.4.Werner Koch2009-04-012-15/+100
|
* Import/export of pkcs#12 now uses the gpg-agent directly.Werner Koch2009-04-0110-11/+550
| | | | | Removed duplicated code (percent unescaping).
* Add missing file.Werner Koch2009-03-191-0/+188
|
* Make sure not to leak file descriptors if running gpg-agent with aWerner Koch2009-03-194-16/+184
| | | | | command. Restore the signal mask to solve a problem in Mono.
* Remove duplicated code.Werner Koch2009-03-163-0/+17
|
* * http.c (do_parse_uri): Properly handle IPv6 literal addresses as perDavid Shaw2009-03-132-6/+21
| | | | | RFC-2732. Adapted from patch by Phil Pennock.
* New gpg-agent command to list key information.Werner Koch2009-03-063-2/+44
| | | | | | Gpgsm does now print the S/N of cards. Consider ephemeral keys during listing an export.
* Add --reload command to gpgconf.Werner Koch2009-03-032-2/+12
| | | | | | Fix a problem in exechelp.c Get ready for a release.
* Modernized gpg-agent startup instructionsWerner Koch2009-03-021-1/+1
|
* Add a few translations to the audit-log.Werner Koch2009-01-193-4/+37
|
* Add a custom prompt for the CSR generation.Werner Koch2008-12-055-1/+181
| | | | | Add a new percent escape fucntion.
* Add option --card-timeout.Werner Koch2008-12-052-16/+21
| | | | | | | Add a new attribyte to app-openpgp.c Fix two portability bugs. Have gpg-connect-agent autostart gpg-agent on W32.
* Translate the oktext (yes/no).Werner Koch2008-11-202-0/+12
|
* Revamped the W32 gettext implementation.Werner Koch2008-11-044-2/+29
|
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-2012-21/+89
|
* Fix a bug in estream_snprintf. Found by a failed t-gettime under Windows.Werner Koch2008-10-193-11/+52
|
* Use more warning options with modern GCCs.Werner Koch2008-10-173-0/+19
| | | | | Other minor changes.
* Fix gpg-preset-passphrase bug.Werner Koch2008-09-034-3/+266
| | | | | Cleanups
* Avoid passing NULL to printf while debugging.Werner Koch2008-08-192-14/+28
|
* Revert that last stupid setuid detection fix. Werner Koch2008-07-172-6/+1
|
* Do not run the setuid test if running under as root proper.Werner Koch2008-07-172-1/+6
| | | | | | Documentation fixes. Some enhancements for the new OpenPGP Card.
* Start support of TCOS 3 cards.Werner Koch2008-06-262-1/+7
| | | | | | | Support restriction attribute. Fix utf-8 printing problems. Use AES by default.
* g10/Marcus Brinkmann2008-06-254-139/+12
| | | | | | | | | | | | | | | | | | | | | | 2008-06-25 Marcus Brinkmann <marcus@g10code.de> * gpg.c (enum cmd_and_opt_values): Remove option oEnableW32HandleTranslation. (opts): Remove option --enable-w32-handle-translation. (main): Remove variable w32_handle_translation. common/ 2008-06-25 Marcus Brinkmann <marcus@g10code.de> Revert last three changes related to handle translation. * sysutils.c: (FD_TRANSLATE_MAX, fd_translate, fd_translate_len) (translate_table_init, translate_table_lookup): Removed. * iobuf.c (check_special_filename): Do not use translate_table_lookup. * sysutils.h (translate_table_init, translate_table_lookup): Remove prototypes.
* Robustness fix.Werner Koch2008-06-192-9/+23
| | | | | Add group to the --gpgconf-list.
* 2008-06-18 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2008-06-182-1/+6
| | | | | * sysutils.c (TRANS_MAX): Bump up to 350 to be on the safe side.
* 2008-06-18 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2008-06-184-1/+141
| | | | | | | | | | | | | * sysutils.h (translate_table_init, translate_table_lookup): New prototypes. * sysutils.c: Include <ctype.h>. (FD_TRANSLATE_MAX): New macro. (fd_translate, fd_translate_len): New static variables. (translate_table_init, translate_table_lookup): New functions. (translate_sys2libc_fd_int): Translate file descriptor. * iobuf.c (check_special_filename): Translate handle values from special filenames.
* Add controlo statement %ask-passphraseWerner Koch2008-06-161-0/+3
|
* [W32] Change location of /etc.Werner Koch2008-06-162-1/+35
|
* Add Base64 decoder. Not yet used but complements out encoder.Werner Koch2008-06-095-3/+330
|