aboutsummaryrefslogtreecommitdiffstats
path: root/sm/import.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression in gpg's mail address parsing.Werner Koch2011-04-251-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.
* Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch2011-02-041-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.
* Exporting secret keys via gpg-agent is now basically supported.Werner Koch2010-10-011-4/+10
| | | | | | A couple of forward ported changes. Doc updates.
* Implement export of pkcs#12 objects using a direct agent connection.Werner Koch2010-06-211-4/+5
|
* Avoid using the protect-tool to import pkcs#12.Werner Koch2010-06-171-208/+334
|
* Merged Dirmngr with GnuPG.Werner Koch2010-06-091-1/+2
| | | | | A few code changes to support dirmngr.
* More changes for CE. gpgsm does now build and run a keylisting.Werner Koch2010-03-241-14/+13
|
* Replace use stdio by estream functions.Werner Koch2010-03-081-19/+19
|
* Unification of the search descriptor usage.Werner Koch2009-12-081-1/+1
|
* Impleemned gpgsm's IMPORT --re-import feature.Werner Koch2009-07-071-3/+127
| | | | | Typo fix.
* Import/export of pkcs#12 now uses the gpg-agent directly.Werner Koch2009-04-011-3/+9
| | | | | Removed duplicated code (percent unescaping).
* Try to start the agent before invoking the protect-tool.Werner Koch2008-10-231-2/+8
|
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-201-1/+3
|
* Fix --output option used when with --export-secret-kety-p12.Werner Koch2008-05-201-1/+1
|
* Always search missing certifcates using a running Dirmngr's cache.Werner Koch2008-02-131-2/+2
|
* [W32] Avoid extra console window when importing or exporting.Werner Koch2008-01-271-1/+1
| | | | | Fixes bug 875.
* Extended the --check-program output: Error messages are now inlcued in anWerner Koch2007-08-291-1/+1
| | | | | easy parsable format.
* New command --check-programs for gpgconf.Werner Koch2007-08-291-1/+1
|
* Updated estream.Werner Koch2007-08-221-2/+3
| | | | | More changes for Windows.
* Implemented the chain model for X.509 validation.Werner Koch2007-08-101-1/+1
|
* 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-1/+1
| | | | | See the ChangeLogs for details.
* kbx/Werner Koch2007-03-201-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.
* Take advantage of newer gpg-error features.Werner Koch2006-09-141-3/+3
|
* The big Assuan error code removal.Werner Koch2006-09-061-7/+7
|
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* * configure.ac: Add PATHSEP_C and PATHSEP_S. For W32 let allWerner Koch2004-12-201-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.
* * exechelp.h, exechelp.c: New. Based on code from ../sm/import.c.Werner Koch2004-12-061-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.
* * minip12.c (parse_bag_encrypted_data): Print error if a badWerner Koch2004-09-291-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-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-08-171-1/+1
| | | | | * import.c: Fix typo in last change.
* * import.c (check_and_store): Do a full validation ifWerner Koch2004-08-171-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
* * protect-tool.c: New option --enable-status-msg.Werner Koch2004-04-301-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.
* (check_and_store): Do not update the stats for hiddenWerner Koch2004-04-301-8/+15
| | | | | imports of issuer certs.
* * misc.c (setup_pinentry_env): New.Werner Koch2004-04-131-0/+2
| | | | | | * import.c (popen_protect_tool): Call it. * export.c (popen_protect_tool): Call it.
* * configure.ac: Require libgcrypt 1.1.94.Werner Koch2004-04-061-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
* * protect-tool.c: New options --have-cert and --prompt.Werner Koch2004-02-191-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.
* * gpgsm.c: New option --with-md5-fingerprint.Werner Koch2004-02-171-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.
* * encrypt.c (init_dek): Check for too weak algorithms.Werner Koch2004-02-131-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.
* Fixed a build bug (straw letter in sm/import.c) and updated the documentation.Werner Koch2004-02-041-1/+1
|
* * import.c (check_and_store): Import certificates even withWerner Koch2004-02-031-4/+13
| | | | | | missing issuer's cert. Fixed an "depending on the verbose setting" bug.
* Replaced deprecated type names.Werner Koch2003-12-171-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.
* Mainly changes to adjust for the changed KSBA API.Werner Koch2003-11-121-20/+9
|
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-051-0/+349
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-191-349/+0
| | | | 'GNUPG-1-9-BRANCH'.
* * import.c (print_imported_summary): Cleaned up. Print newWerner Koch2002-08-211-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.
* * gpgsm.c (main): Use the log file only in server mode.Werner Koch2002-08-201-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.
* * call-agent.c (learn_cb): Special treatment when the issuerWerner Koch2002-08-161-1/+1
| | | | | certificate is missing.
* * server.c (gpgsm_status2): Insert a blank between all optionalWerner Koch2002-07-031-1/+1
| | | | | | | | arguments when using assuan. * server.c (cmd_recipient): No more need for extra blank in constants. * import.c (print_imported_status): Ditto. * gpgsm.c (main): Ditto.
* * keydb.c (keydb_store_cert): Add optional ar EXISTED and changedWerner Koch2002-07-021-33/+58
| | | | | | | | | | | | all callers. * call-agent.c (learn_cb): Print info message only for real imports. * import.c (gpgsm_import): Moved duplicated code to ... (check_and_store): new function. Added magic to import the entire chain. Print status only for real imports and moved printing code to .. (print_imported_status): New.
* * import.c (gpgsm_import): Print an STATUS_IMPORTED.Werner Koch2002-06-261-1/+8
| | | | | * gpgsm.c: --debug-no-path-validation does not take an argument.