aboutsummaryrefslogtreecommitdiffstats
path: root/agent/protect-tool.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Updated estream.Werner Koch2007-08-221-2/+17
| | | | | More changes for Windows.
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-141-2/+12
| | | | | See the ChangeLogs for details.
* First steps towards supporting W32.Werner Koch2007-06-061-16/+0
| | | | | | | This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
* agent/Marcus Brinkmann2007-05-181-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | 2007-05-19 Marcus Brinkmann <[email protected]> * protect-tool.c (get_passphrase): Free ORIG_CODESET on error. g10/ 2007-05-19 Marcus Brinkmann <[email protected]> * passphrase.c (passphrase_get): Free ORIG_CODESET on error. sm/ 2007-05-18 Marcus Brinkmann <[email protected]> * qualified.c (gpgsm_qualified_consent, gpgsm_not_qualified_warning): Free ORIG_CODESET on error. * certdump.c (gpgsm_format_keydesc): Likewise. tools/ 2007-05-19 Marcus Brinkmann <[email protected]> * symcryptrun.c (confucius_get_pass): Free ORIG_CODESET on error.
* Improved logging for error orginating from libgcrypt.Werner Koch2007-04-201-22/+2
|
* Allow setting of the passphrase encoding of pkcs#12 files.Werner Koch2007-03-201-3/+9
| | | | New option --p12-charset.
* agent/Werner Koch2007-01-251-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | | * protect-tool.c (get_passphrase): New arg OPT_CHECK. (get_new_passphrase): Enable OTP_CHECK on the first call. * command.c (cmd_get_passphrase): Implement option --check. * gpg-agent.c (MIN_PASSPHRASE_LEN): New (parse_rereadable_options): New option --min-passphrase-len. * genkey.c (check_passphrase_constraints): New. (agent_genkey, agent_protect_and_store): Call new function. Fix memory leak. * call-pinentry.c (agent_askpin): Allow translation of the displayed error message. (agent_popup_message_start): Remove arg CANCEL_BTN. (popup_message_thread): Use --one-button option. * command.c (cmd_passwd): Now that we don't distinguish between assuan and regular error codes we can jump to the end on error. common/ * simple-pwquery.c (simple_pwquery): New arg OPT_CHECK.
* gpg-agent.c (main): In detached mode connect standard descriptors to /dev/null.Werner Koch2006-11-091-1/+1
| | | | | Other minor fixes
* Allow to cancel marktrusted.Werner Koch2006-10-161-1/+1
|
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch2005-06-161-10/+11
| | | | | | | 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.
* * protect-tool.c: New option --canonical.Werner Koch2005-05-201-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | (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.
* * findkey.c (modify_description): Keep invalid % escapes, so thatWerner Koch2005-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | %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 (main): Use default_homedir().Werner Koch2004-12-211-9/+2
| | | | | | | | | | | | | | | | | | | * protect-tool.c (main): Ditto. * signal.c (got_fatal_signal, got_usr_signal) (got_fatal_signal) [DOSISH]: Don't build. * simple-gettext.c: Include sysutils.h * homedir.c: New. * Makefile.am (libcommon_a_SOURCES): Add it. (EXTRA_DIST): Removed mkerror and mkerrtok. * gpgv.c, g10.c (main): Use default_hoemdir (). * scdaemon.c (main): Use default_homedir(). * gpgsm.c (main): Use default_homedir().
* * configure.ac: Add PATHSEP_C and PATHSEP_S. For W32 let allWerner Koch2004-12-201-5/+9
| | | | | | | | | | | | | | | | | | | | directories default to c:/gnupg. Require libassuan 0.6.9. * gpg-agent.c (main) [W32]: Now that Mutexes work we can remove the pth_init kludge. (main): Add new options --[no-]use-standard-socket. (check_for_running_agent): Check whether it is running on the standard socket. * sysutils.h [W32]: Define sleep. * util.h: Add prototype for mkdtemp. * call-agent.c (start_agent): Before starting a pipe server start to connect to a server on the standard socket. Use PATHSEP * call-dirmngr.c (start_dirmngr): Use PATHSEP. * import.c: Include unistd.h for dup and close.
* A whole bunch of changes to allow building for W32.Werner Koch2004-12-151-5/+15
|
* * minip12.c (parse_bag_encrypted_data): Print error if a badWerner Koch2004-09-291-0/+2
| | | | | | | | | | | | passphrase has been given. * gpg-agent.texi (Invoking GPG-AGENT): Add a few words about the expected pinentry filename. * import.c (parse_p12): Write an error status line for bad passphrases. Add new arg CTRL and changed caller. * export.c (export_p12): Likewise.
* (get_passphrase): Make sure that the defaultWerner Koch2004-08-181-4/+67
| | | | | | | | prompts passed to gpg-agent are utf-8 encoded. Add new prompt values. (import_p12_file, import_p12_file, export_p12_file): Changed calls to get_passphrase so that better prompts are displayed. (get_new_passphrase): New.
* (get_passphrase): Make sure that the defaultWerner Koch2004-08-181-0/+34
| | | | | prompts passed to gpg-agent are utf-8 encoded.
* * protect-tool.c: New option --enable-status-msg.Werner Koch2004-04-301-0/+11
| | | | | | | | | | | | (store_private_key): Print status messages for imported keys. (read_and_unprotect): Ditto for bad passphrase. * import.c (check_and_store): Do not update the stats for hidden imports of issuer certs. (popen_protect_tool): Request statusmessages from the protect-tool. (parse_p12): Detect status messages. Add new arg STATS and update them. (print_imported_summary): Include secret key stats.
* * configure.ac: Require libgcrypt 1.1.94.Werner Koch2004-04-061-3/+3
| | | | | | | | | | Introduce PACKAGE_GT and set it to gnupg2. * gpg-agent.c (main): Use new libgcrypt thread library register scheme. * Makevars (DOMAIN): Init from PACKAGE_GT
* * protect-tool.c: New options --have-cert and --prompt.Werner Koch2004-02-191-23/+195
| | | | | | | | | | | | | | | | | | | | (export_p12_file): Read a certificate from STDIN and pass it to p12_build. Detect a keygrip and construct the filename in that case. Unprotcet a key if needed. Print error messages for key formats we can't handle. (release_passphrase): New. (get_passphrase): New arg PROMPTNO. Return the allocated string. Changed all callers. * minip12.c: Revamped the build part. (p12_build): New args CERT and CERTLEN. * simple-pwquery.c (agent_open): Don't mangle INFOSTR. * export.c (export_p12, popen_protect_tool) (gpgsm_p12_export): New. * gpgsm.c (main): New command --export-secret-key-p12.
* * protect-tool.c (main): Setup the used character set.Werner Koch2004-02-181-0/+5
| | | | | | | | * gpg-agent.c (main): Ditto. * gpg-agent.c (set_debug): New. New option --debug-level. (main): New option --gpgconf-list.
* (main): New options --no-fail-on-exist, --homedir.Werner Koch2004-02-131-37/+91
| | | | | (store_private_key): Use them here.
* * minip12.c (parse_bag_encrypted_data): Finished implementation.Werner Koch2004-02-101-2/+20
| | | | | | | (p12_parse): Add callback args. * protect-tool.c (import_p12_cert_cb): New. (import_p12_file): Use it.
* Fixed a build bug (straw letter in sm/import.c) and updated the documentation.Werner Koch2004-02-041-1/+1
|
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-051-0/+977
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-191-977/+0
| | | | 'GNUPG-1-9-BRANCH'.
* * query.c (agent_askpin): Hack to show the right default prompt.NEWPG-0-9-0Werner Koch2002-08-211-3/+3
| | | | | | | | | | | (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-211-7/+7
| | | | | | | | | | | 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-161-4/+1
| | | | | | | | (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-101-1/+1
|
* * protect-tool.c (export_p12_file): New.Werner Koch2002-06-281-0/+124
| | | | | | | (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-271-19/+128
| | | | | | | | | | | | | | | | * 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-251-6/+256
| | | | | | | (import_p12_file): New. (main): New command --p12-import. * minip12.c, minip12.h: New.
* * protect-tool.c: Add command --show-keygripWerner Koch2002-06-121-0/+37
| | | | | (show_keygrip): New.
* * protect-tool.c (show_file): New. Used as default action.Werner Koch2002-04-091-1/+24
|
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-281-2/+84
| | | | | no real code yet.
* * genkey.c (store_key): Protect the key.Werner Koch2002-01-311-0/+355
(agent_genkey): Ask for the passphrase. * findkey.c (unprotect): Actually unprotect the key. * query.c (agent_askpin): Add an optional start_err_text.