aboutsummaryrefslogtreecommitdiffstats
path: root/sm/import.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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.
* * call-agent.c (learn_cb): Use log_info instead of log_error onWerner Koch2002-06-191-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.
* * import.c (gpgsm_import): Add error messages.Werner Koch2002-05-231-1/+15
|
* * import.c (gpgsm_import): Try to identify the type of input andWerner Koch2002-05-211-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.
* * verify.c (gpgsm_verify): Detect certs-only message.Werner Koch2002-03-121-2/+8
|
* sm/Werner Koch2002-03-061-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.
* * import.c (gpgsm_import): Just do a basic cert check beforeWerner Koch2002-01-151-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.
* * base64.c: New. Changed all other functions to use this insteadWerner Koch2001-11-271-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.
* Added new directory common to enable sharing of some code and errorWerner Koch2001-11-241-2/+2
| | | | | | numbers between gpg, gpgsm and gpg-agent. Move some files and code to there.
* Write status output, make verify work in server mode.Werner Koch2001-11-191-1/+1
|
* gpgsm --verify does now work like gpg including theWerner Koch2001-11-191-10/+178
| | | | | --enable-special-filenames option.
* We have reached a state where we are able to import certs andWerner Koch2001-11-131-183/+17
| | | | | check the certification path.
* we are now able to check self-signed certificatesWerner Koch2001-11-101-41/+153
|
* Implemented server main loop and started with import command.Werner Koch2001-11-071-0/+213