aboutsummaryrefslogtreecommitdiffstats
path: root/sm/import.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-04-25Fix regression in gpg's mail address parsing.Werner Koch1-1/+1
Since 2009-12-08 gpg was not able to find email addresses indicated by a leading '<'. This happened when I merged the user id classification code of gpgsm and gpg.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-27/+27
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2010-10-01Exporting secret keys via gpg-agent is now basically supported.Werner Koch1-4/+10
A couple of forward ported changes. Doc updates.
2010-06-21Implement export of pkcs#12 objects using a direct agent connection.Werner Koch1-4/+5
2010-06-17Avoid using the protect-tool to import pkcs#12.Werner Koch1-208/+334
2010-06-09Merged Dirmngr with GnuPG.Werner Koch1-1/+2
A few code changes to support dirmngr.
2010-03-24More changes for CE. gpgsm does now build and run a keylisting.Werner Koch1-14/+13
2010-03-08Replace use stdio by estream functions.Werner Koch1-19/+19
2009-12-08Unification of the search descriptor usage.Werner Koch1-1/+1
2009-07-07Impleemned gpgsm's IMPORT --re-import feature.Werner Koch1-3/+127
Typo fix.
2009-04-01Import/export of pkcs#12 now uses the gpg-agent directly.Werner Koch1-3/+9
Removed duplicated code (percent unescaping).
2008-10-23Try to start the agent before invoking the protect-tool.Werner Koch1-2/+8
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-1/+3
2008-05-20Fix --output option used when with --export-secret-kety-p12.Werner Koch1-1/+1
2008-02-13Always search missing certifcates using a running Dirmngr's cache.Werner Koch1-2/+2
2008-01-27[W32] Avoid extra console window when importing or exporting.Werner Koch1-1/+1
Fixes bug 875.
2007-08-29Extended the --check-program output: Error messages are now inlcued in anWerner Koch1-1/+1
easy parsable format.
2007-08-29New command --check-programs for gpgconf.Werner Koch1-1/+1
2007-08-22Updated estream.Werner Koch1-2/+3
More changes for Windows.
2007-08-10Implemented the chain model for X.509 validation.Werner Koch1-1/+1
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-1/+1
See the ChangeLogs for details.
2007-03-20kbx/Werner Koch1-1/+2
* keybox.h (KEYBOX_FLAG_BLOB_SECRET, KEYBOX_FLAG_BLOB_EPHEMERAL): New. * keybox-update.c (keybox_compress): Use it here instead of a magic constant. sm/ * fingerprint.c (gpgsm_get_fingerprint): Add caching. (gpgsm_get_fingerprint_string): Use bin2hexcolon(). (gpgsm_get_fingerprint_hexstring): Use bin2hex and allocate only as much memory as required. (gpgsm_get_keygrip_hexstring): Use bin2hex. * certchain.c (gpgsm_validate_chain): Keep track of the certificate chain and reset the ephemeral flags. * keydb.c (keydb_set_cert_flags): New args EPHEMERAL and MASK. Changed caller to use a mask of ~0. Return a proper error code if the certificate is not available.
2006-09-14Take advantage of newer gpg-error features.Werner Koch1-3/+3
2006-09-06The big Assuan error code removal.Werner Koch1-7/+7
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-349/+0
2004-12-20* configure.ac: Add PATHSEP_C and PATHSEP_S. For W32 let allWerner Koch1-0/+1
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.
2004-12-06* exechelp.h, exechelp.c: New. Based on code from ../sm/import.c.Werner Koch1-122/+21
* gpgsm.c (run_protect_tool) [_WIN32]: Disabled. * import.c (popen_protect_tool): Simplified by making use of gnupg_spawn_process. (parse_p12): Likewise, using gnupg_wait_process. * export.c (popen_protect_tool): Ditto. (export_p12): Ditto.
2004-09-29* minip12.c (parse_bag_encrypted_data): Print error if a badWerner Koch1-6/+26
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.
2004-08-172004-08-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* import.c: Fix typo in last change.
2004-08-17* import.c (check_and_store): Do a full validation ifWerner Koch1-11/+28
--with-validation is set. * certchain.c (gpgsm_basic_cert_check): Print more detailed error messages. * certcheck.c (do_encode_md): Partly support DSA. Add new arg PKALGO. Changed all callers to pass it. (pk_algo_from_sexp): New. tests/pkits: New directory
2004-04-30* protect-tool.c: New option --enable-status-msg.Werner Koch1-12/+59
(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.
2004-04-30(check_and_store): Do not update the stats for hiddenWerner Koch1-8/+15
imports of issuer certs.
2004-04-13* misc.c (setup_pinentry_env): New.Werner Koch1-0/+2
* import.c (popen_protect_tool): Call it. * export.c (popen_protect_tool): Call it.
2004-04-06* configure.ac: Require libgcrypt 1.1.94.Werner Koch1-1/+1
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
2004-02-19* protect-tool.c: New options --have-cert and --prompt.Werner Koch1-1/+1
(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.
2004-02-17* gpgsm.c: New option --with-md5-fingerprint.Werner Koch1-6/+14
* keylist.c (list_cert_std): Print MD5 fpr. * gpgsm.c: New options --with-validation. * server.c (option_handler): New option "with-validation". * keylist.c (list_cert_std, list_internal_keys): New args CTRL and WITH_VALIDATION. Changed callers to set it. (list_external_cb, list_external_keys): Pass CTRL to the callback. (list_cert_colon): Add arg CTRL. Check validation if requested. * certchain.c (unknown_criticals, allowed_ca, check_cert_policy) (gpgsm_validate_chain): New args LISTMODE and FP. (do_list): New helper for info output. (find_up): New arg FIND_NEXT. (gpgsm_validate_chain): After a bad signature try again with other CA certificates. * import.c (print_imported_status): New arg NEW_CERT. Print additional STATUS_IMPORT_OK becuase that is what gpgme expects. (check_and_store): Always call above function after import. * server.c (get_status_string): Added STATUS_IMPORT_OK.
2004-02-13* encrypt.c (init_dek): Check for too weak algorithms.Werner Koch1-53/+367
* import.c (parse_p12, popen_protect_tool): New. * base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM. Changed all callers. (base64_reader_cb): Handle it here. (gpgsm_reader_eof_seen): New. (base64_reader_cb): Set a flag for EOF. (simple_reader_cb): Ditto.
2004-02-04Fixed a build bug (straw letter in sm/import.c) and updated the documentation.Werner Koch1-1/+1
2004-02-03* import.c (check_and_store): Import certificates even withWerner Koch1-4/+13
missing issuer's cert. Fixed an "depending on the verbose setting" bug.
2003-12-17Replaced deprecated type names.Werner Koch1-9/+9
* certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul. (gpgsm_dump_serial): Ditto. * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
2003-11-12Mainly changes to adjust for the changed KSBA API.Werner Koch1-20/+9
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+349
'GNUPG-1-9-BRANCH'.
2003-06-27Key generation and signing using the OpenPGP card does rudimentary work.Werner Koch1-1/+1
2003-06-05A small step for GnuPG but a huge leap for error codes.Werner Koch1-3/+3
(Sorry, it does not build currently - I need to check it in to avoid duplicate work.)
2003-06-03Make use of libgpg-errorWerner Koch1-7/+7
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-349/+0
'GNUPG-1-9-BRANCH'.
2002-08-21* import.c (print_imported_summary): Cleaned up. Print newWerner Koch1-20/+62
not_imported value. (check_and_store): Update non_imported counter. (print_import_problem): New. (check_and_store): Print error status message. * server.c (get_status_string): Added STATUS_IMPORT_PROBLEM.
2002-08-20* gpgsm.c (main): Use the log file only in server mode.Werner Koch1-7/+106
* import.c (print_imported_summary): New. (check_and_store): Update the counters, take new argument. (import_one): Factored out core of gpgsm_import. (gpgsm_import): Print counters. (gpgsm_import_files): New. * gpgsm.c (main): Use the new function for import.