summaryrefslogtreecommitdiffstats
path: root/agent (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * gpg-agent.c (create_private_keys_directory)Werner Koch2002-09-092-2/+80
| | | | | | (create_directories): New. (main): Try to create a home directory.
* 2002-09-04 Neal H. Walfield <neal@g10code.de>Neal Walfield2002-09-052-1/+11
| | | | | * gpg-agent.c (main): Use sigaction, not signal.
* 2002-09-03 Neal H. Walfield <neal@g10code.de>Neal Walfield2002-09-052-4/+29
| | | | | | | * findkey.c: Include <fcntl.h>. (agent_write_private_key): Prefer POSIX compatibity, open and fdopen, over the simplicity of GNU extensions, fopen(file, "x").
* * query.c (agent_askpin): Provide the default desc text dependingNEWPG-0-9-1Werner Koch2002-08-223-5/+14
| | | | | | on the pininfo. Do the basic PIN verification only when min_digist is set.
* * query.c (agent_askpin): Hack to show the right default prompt.NEWPG-0-9-0Werner Koch2002-08-216-27/+37
| | | | | | | | | | | (agent_get_passphrase): Ditto. * Makefile.am: Renamed the binary protect-tool to gpg-protect-tool. * protect-tool.c: Removed the note about internal use only. * gpg-agent.c (main): New option --daemon so that the program is not accidently started in the background.
* * divert-scd.c (getpin_cb): Pass a more descritive text to theWerner Koch2002-08-215-19/+47
| | | | | | | | | | | pinentry. * Makefile.am: Renamed the binary protect-tool to gpg-protect-tool. * protect-tool.c: Removed the note about internal use only. * gpg-agent.c (main): New option --daemon so that the program is not accidently started in the background.
* * call-scd.c (learn_status_cb): Handle CERTINFO status.Werner Koch2002-08-166-36/+168
| | | | | | | | (agent_card_learn): Add args for certinfo cb. * learncard.c (release_certinfo,certinfo_cb): New. (send_cert_back): New. With factored out code from .. (agent_handle_learn): here. Return certinfo stuff.
* Minor changes for gettextNEWPG-0-3-10Werner Koch2002-08-103-2/+5
|
* Minor fixesWerner Koch2002-08-097-29/+60
|
* typo fix.NEWPG-0-3-9Werner Koch2002-07-011-1/+1
|
* * query.c (start_pinentry): Use GNUPG_DERAULT_PINENTRY.Werner Koch2002-06-293-4/+7
| | | | | * call-scd.c (start_scd): Use GNUPG_DEFAULT_SCDAEMON.
* * protect-tool.c (export_p12_file): New.Werner Koch2002-06-284-15/+492
| | | | | | | (main): New command --p12-export. * minip12.c (create_final,p12_build,compute_tag_length): New. (store_tag_length): New.
* * Makefile.am (pkglib_PROGRAMS): Put protect-tool there.Werner Koch2002-06-2713-41/+769
| | | | | | | | | | | | | | | | * findkey.c (agent_write_private_key,agent_key_from_file) (agent_key_available): Use GNUPG_PRIVATE_KEYS_DIR constant. * gpg-agent.c (main): Use GNUPG_DEFAULT_HOMEDIR constant. * protect-tool.c (store_private_key): New. (import_p12_file): Store the new file if requested. (main): New options --force and --store. * gpg-agent.c (main): Set a global flag when runing detached. * query.c (start_pinentry): Pass the list of FD to keep in the child when not running detached. * call-scd.c (start_scd): Ditto.
* * protect-tool.c (rsa_key_check): New.NEWPG-0-3-8Werner Koch2002-06-256-10/+1112
| | | | | | | (import_p12_file): New. (main): New command --p12-import. * minip12.c, minip12.h: New.
* * agent.h: Add a callback function to the pin_entry_info structure.Werner Koch2002-06-176-79/+118
| | | | | | | | | | | | | | | * query.c (agent_askpin): Use the callback to check for a correct PIN. Removed the start_err_text argument becuase it is not anymore needed; changed callers. * findkey.c (unprotect): Replace our own check loop by a callback. (try_unprotect_cb): New. * genkey.c (reenter_compare_cb): New. (agent_genkey): Use this callback here. Fixed setting of the pi2 variable and a segv in case of an empty PIN. * divert-scd.c (getpin_cb): Removed some unused stuff and explained what we still have to change.
* Fixed last fix.Werner Koch2002-06-131-4/+0
|
* * gpgsm.c (main): New option --log-file.Werner Koch2002-06-132-26/+39
|
* * protect-tool.c: Add command --show-keygripWerner Koch2002-06-123-1/+43
| | | | | (show_keygrip): New.
* * no-pth.c, Makefile.am: Removed.Werner Koch2002-05-239-107/+412
| | | | | | | | | | | | * call-scd.c: Seirialized all scdaeom access when using Pth. * cache.c: Made the cache Pth-thread-safe. (agent_unlock_cache_entry): New. * findkey.c (unprotect): Unlock the returned cache value. * command.c (cmd_get_passphrase): Ditto. * gpg-agent.c (main): Register pth_read/write with Assuan.
* sm/Werner Koch2002-05-142-4/+8
| | | | | | | | | | | | | | * gpgsm.c: New option --faked-system-time * sign.c (gpgsm_sign): And use it here. * certpath.c (gpgsm_validate_path): Ditto. common/ * gettime.c: New. agent/ * cache.c (housekeeping, agent_put_cache): Use our time() wrapper. / * doc/: New * configure.ac, Makefile.am: Added doc/
* Debug message cleanups.Werner Koch2002-04-275-8/+22
| | | | | Fixed passphrase caching.
* * call-agent.c (start_agent): Make copies of old locales and checkWerner Koch2002-04-251-1/+4
| | | | | | | for setlocale. * configure.ac: Check for setlocale.
* 2002-04-25 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2002-04-255-7/+25
| | | | | | | | | | * agent.h (agent_get_confirmation): Replace paramter prompt with two parameters ok and cancel. * query.c (agent_get_confirmation): Likewise. Implement this. * trustlist.c (agent_marktrusted): Fix invocation of agent_get_confirmation. * divert-scd.c (ask_for_card): Likewise.
* 2002-04-24 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2002-04-245-4/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Check for locale.h. agent/ 2002-04-24 Marcus Brinkmann <marcus@g10code.de> * agent.h (struct opt): Add members display, ttyname, ttytype, lc_ctype, and lc_messages. * gpg-agent.c (enum cmd_and_opt_values): Add oDisplay, oTTYname, oTTYtype, oLCctype, and LCmessages. (main): Handle these options. * command.c (option_handler): New function. (register_commands): Register option handler. * query.c (start_pinentry): Pass the various display and tty options to the pinentry. sm/ 2002-04-24 Marcus Brinkmann <marcus@g10code.de> * gpgsm.h (struct opt): New members display, ttyname, ttytype, lc_ctype, lc_messages. * gpgsm.c (enum cmd_and_opt_values): New members oDisplay, oTTYname, oTTYtype, oLCctype, oLCmessages. (opts): New entries for these options. (main): Handle these new options. * call-agent.c (start_agent): Set the various display and tty parameter after resetting.
* * protect-tool.c (show_file): New. Used as default action.Werner Koch2002-04-092-1/+28
|
* * divert-scd.c (encode_md_for_card): Don't do the pkcs-1 padding,Werner Koch2002-03-282-34/+23
| | | | | | the scdaemon should take care of it. (ask_for_card): Hack to not display the trailing zero.
* Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch2002-03-184-6/+11
|
* sm/Werner Koch2002-03-0610-82/+462
| | | | | | | | | | | | | | | | | * gpgsm.c: New command --learn-card * call-agent.c (learn_cb,gpgsm_agent_learn): New. * gpgsm.c (main): Print error messages for non-implemented commands. agent/ * learncard.c: New. * divert-scd.c (ask_for_card): The serial number is binary so convert it to hex here. * findkey.c (agent_write_private_key): New. * genkey.c (store_key): And use it here. scd/ * pkdecrypt.c (agent_pkdecrypt): Changed the way the diversion is done. * divert-scd.c (divert_pkdecrypt): Changed interface and implemented it.
* Decryption using a Cryptoflex card does now work.Werner Koch2002-03-065-27/+149
|
* This file was missing.Werner Koch2002-03-051-0/+98
|
* Signing using a PKCS15 smartcard does work. How to create such a cardWerner Koch2002-03-055-29/+354
| | | | | | is of course a different thing. Note, that you need to create the shadowed-private-key file manually.
* * pksign.c (agent_pksign): Detect whether a Smartcard is to beWerner Koch2002-03-048-80/+198
| | | | | | | | | | | | used and divert the operation in this case. * pkdecrypt.c (agent_pkdecrypt): Likewise * findkey.c (agent_key_from_file): Add optional arg shadow_info and have it return information about a shadowed key. * protect.c (agent_get_shadow_info): New. * protect.c (snext,sskip,smatch): Moved to * sexp-parse.h: new file. * divert-scd.c: New.
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-2812-61/+433
| | | | | no real code yet.
* * assuan-client.c (assuan_transact): Add 2 more arguments toWerner Koch2002-02-282-0/+200
| | | | | | | support status lines. Passing NULL yields the old behaviour. * assuan-handler.c (process_request): Flush data lines send without using the data fp.
* * findkey.c (unprotect): Show an error message for a bad passphrase.Werner Koch2002-02-182-1/+6
|
* * command.c (cmd_marktrusted): Implemented.Werner Koch2002-02-185-10/+161
| | | | | | | | * trustlist.c (agent_marktrusted): New. (open_list): Add APPEND arg. * query.c (agent_get_confirmation): New.
* * cache.c (housekeeping): Fixed linking in the remove case.Werner Koch2002-02-064-5/+20
|
* * cache.c: Add a few debug outputs.Werner Koch2002-02-016-16/+118
| | | | | | | | | | | | | | * protect.c (agent_private_key_type): New. * agent.h: Add PRIVATE_KEY_ enums. * findkey.c (agent_key_from_file): Use it to decide whether we have to unprotect a key. (unprotect): Cache the passphrase. * findkey.c (agent_key_from_file,agent_key_available): The key files do now require a ".key" suffix to make a script's life easier. * genkey.c (store_key): Ditto.
* * genkey.c (store_key): Protect the key.Werner Koch2002-01-3110-64/+1409
| | | | | | | (agent_genkey): Ask for the passphrase. * findkey.c (unprotect): Actually unprotect the key. * query.c (agent_askpin): Add an optional start_err_text.
* * findkey.c (agent_key_available): New.Werner Koch2002-01-294-3/+60
| | | | | | * command.c (cmd_havekey): New. (register_commands): And register new command.
* Updated copyright noticesWerner Koch2002-01-261-3/+3
|
* * command.c (cmd_get_passphrase): Remove the plus signs.Werner Koch2002-01-205-9/+35
| | | | | | * query.c (start_pinentry): Send no-grab option to pinentry * gpg-agent.c (main): Move variable grab as no_grab to agent.h.
* * gpg-agent.c (main): Disable core dumps.Werner Koch2002-01-196-16/+314
| | | | | | | | | | | | | | * cache.c: New. * command.c (cmd_get_passphrase): Use the cache. (cmd_clear_passphrase): Ditto. * gpg-agent.c: Removed unused cruft and implement the socket based server. (my_strusage): Take bug report address from configure.ac. * command.c (start_command_handler): Add an argument to start as regular server. (start_command_handler): Enable Assuan logging.
* * gpg-agent.c: Removed unused cruft and implement the socketWerner Koch2002-01-195-653/+223
| | | | | | | | | based server. (my_strusage): Take bug report address from configure.ac. * command.c (start_command_handler): Add an argument to start as regular server. (start_command_handler): Enable Assuan logging.
* * trustlist.c: New.Werner Koch2002-01-155-1/+297
| | | | | * command.c (cmd_istrusted, cmd_listtrusted, cmd_marktrusted): New.
* * genkey.c: Store the secret part and return the public part.Werner Koch2002-01-107-63/+408
|
* * keyformat.txt: New.Werner Koch2001-12-192-0/+142
|
* assuan/Marcus Brinkmann2001-12-192-1/+5
| | | | | | | | | | | | | | | | | | | 2001-12-14 Marcus Brinkmann <marcus@g10code.de> * assuan-buffer.c (_assuan_read_line): New variable ATTICLEN, use it to save the length of the attic line. Rediddle the code a bit to make it more clear what happens. agent/ 2001-12-19 Marcus Brinkmann <marcus@g10code.de> * query.c (start_pinentry): Add new argument to assuan_pipe_connect. sm/ 2001-12-19 Marcus Brinkmann <marcus@g10code.de> * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
* * Makefile.am (AM_CPPFLAGS): Add flags for libksbaNEWPG-0-0-0Werner Koch2001-12-182-3/+7
| | | | | | * Makefile.am (AM_CPPFLAGS): Include flags for gcrypt and ksba * Makefile.am: Use LIBGCRYPT macros
* * gpg-agent.c (main): New option --batch. New option --debug-waitWerner Koch2001-12-144-1/+23
| | | | | | n, so that it is possible to attach gdb when used in server mode. * query.c (agent_askpin): Don't ask in batch mode.