aboutsummaryrefslogtreecommitdiffstats
path: root/sm/import.c (unfollow)
Commit message (Collapse)AuthorFilesLines
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.
2002-08-16* call-agent.c (learn_cb): Special treatment when the issuerWerner Koch1-1/+1
certificate is missing.
2002-07-03* server.c (gpgsm_status2): Insert a blank between all optionalWerner Koch1-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.
2002-07-02* keydb.c (keydb_store_cert): Add optional ar EXISTED and changedWerner Koch1-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.
2002-06-26* import.c (gpgsm_import): Print an STATUS_IMPORTED.Werner Koch1-1/+8
* gpgsm.c: --debug-no-path-validation does not take an argument.
2002-06-19* call-agent.c (learn_cb): Use log_info instead of log_error onWerner Koch1-2/+2
successful import. * keydb.c (keydb_set_ephemeral): New. (keydb_store_cert): New are ephemeral, changed all callers. * keylist.c (list_external_cb): Store cert as ephemeral. * export.c (gpgsm_export): Kludge to export epehmeral certificates. * gpgsm.c (main): New command --list-external-keys.
2002-05-23* import.c (gpgsm_import): Add error messages.Werner Koch1-1/+15
2002-05-21* import.c (gpgsm_import): Try to identify the type of input andWerner Koch1-17/+83
handle certs-only messages. * maperror.c (map_gcry_err): Add libgcrypt's new S-expression errors. (map_ksba_err): Add a few mappings. * configure.ac: We now require libgcrypt 1.1.7 and libksba 0.4.2.
2002-03-12* verify.c (gpgsm_verify): Detect certs-only message.Werner Koch1-2/+8
2002-03-06sm/Werner Koch1-0/+2
* 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.
2002-01-15* import.c (gpgsm_import): Just do a basic cert check beforeWerner Koch1-28/+2
storing it. * certpath.c (gpgsm_basic_cert_check): New. * keydb.c (keydb_store_cert): New. * import.c (store_cert): Removed and change all caller to use the new function. * verify.c (store_cert): Ditto. * certlist.c (gpgsm_add_to_certlist): Validate the path * certpath.c (gpgsm_validate_path): Check the trust list. * call-agent.c (gpgsm_agent_istrusted): New.
2001-11-27* base64.c: New. Changed all other functions to use this insteadWerner Koch1-223/+10
of direct creation of ksba_reader/writer. * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used. This way we can feed PEM encoded stuff to --verify.
2001-11-24Added new directory common to enable sharing of some code and errorWerner Koch1-2/+2
numbers between gpg, gpgsm and gpg-agent. Move some files and code to there.
2001-11-19Write status output, make verify work in server mode.Werner Koch1-1/+1
2001-11-19gpgsm --verify does now work like gpg including theWerner Koch1-10/+178
--enable-special-filenames option.
2001-11-13We have reached a state where we are able to import certs andWerner Koch1-183/+17
check the certification path.
2001-11-10we are now able to check self-signed certificatesWerner Koch1-41/+153
2001-11-07Implemented server main loop and started with import command.Werner Koch1-0/+213