aboutsummaryrefslogtreecommitdiffstats
path: root/sm/server.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-21Implemented the --gen-key command as we can't use the gpgsm-gencert.sh under ↵Werner Koch1-1/+1
Windows.
2007-03-19Allow export to work on systems without funopen/fopencookie.Werner Koch1-7/+12
2007-03-19Changes to let the key listing use estream to help systems withoutWerner Koch1-10/+56
funopen.
2006-12-202006-12-20 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+1
* server.c (gpgsm_server): Release CTRL->server_local.
2006-11-14sm/Werner Koch1-75/+61
* server.c (skip_options): Skip leading spaces. (has_option): Honor "--". (cmd_export): Add option --data to do an inline export. Skip all options. * certdump.c (gpgsm_fpr_and_name_for_status): New. * verify.c (gpgsm_verify): Use it to print correct status messages. doc/ * gpgsm.texi (GPGSM EXPORT): Document changes.
2006-10-02Fix for bug 537Werner Koch1-6/+6
2006-10-022006-10-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+20
* server.c (register_commands): New commands DUMPKEYS and DUMPSECRETKEYS. (cmd_dumpkeys, cmd_dumpsecretkeys): New functions. (option_handler): Support with-key-data option.
2006-09-13Various fixes and new features.Werner Koch1-19/+38
Enhanced gpg-connect-agent.
2006-09-06The big Assuan error code removal.Werner Koch1-93/+92
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-1070/+0
2005-07-20* keylist.c (email_kludge): Reworked.Werner Koch1-1/+1
* certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf arg to unsigned. * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-2/+2
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.
2004-12-17* call-dirmngr.c (isvalid_status_cb, lookup_status_cb)Werner Koch1-10/+13
(run_command_status_cb): Return cancel status if gpgsm_status returned an error. * server.c (gpgsm_status, gpgsm_status2) (gpgsm_status_with_err_code): Return an error code. (gpgsm_status2): Always call va_end().
2004-08-16(cmd_encrypt): Use DEFAULT_RECPLIST and not recplistWerner Koch1-1/+1
for encrypt-to keys.
2004-05-11* sysutils.c (disable_core_dumps): Only set the current limit.Werner Koch1-1/+1
(enable_core_dumps): New. * gpgsm.texi (Esoteric Options): Add --debug-allow-core-dump. * gpgsm.c: New option --debug-allow-core-dump. * gpgsm.h (opt): Add member CONFIG_FILENAME. * gpgsm.c (main): Use it here instead of the local var. * server.c (gpgsm_server): Print some additional information with the hello in verbose mode.
2004-05-11Also print agent and dirmngr info.Werner Koch1-6/+13
2004-05-11* gpgsm.h (opt): Add member CONFIG_FILENAME.Werner Koch1-2/+20
* gpgsm.c (main): Use it here instead of the local var. * server.c (gpgsm_server): Print some additional information with the hello in verbose mode.
2004-04-06Add STATUS_NEWSIGWerner Koch1-0/+1
2004-02-21* keylist.c (list_internal_keys): Return error codes.Werner Koch1-2/+3
(list_external_keys, gpgsm_list_keys): Ditto. * server.c (do_listkeys): Ditto. * gpgsm.c (main): Display a key description for --passwd. * call-agent.c (gpgsm_agent_passwd): New arg DESC.
2004-02-17* gpgsm.c: Fixed value parsing for --with-validation.Werner Koch1-1/+2
* call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO. * call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.
2004-02-17* gpgsm.c: New option --with-md5-fingerprint.Werner Koch1-0/+5
* 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.
2003-12-17* server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.Werner Koch1-12/+30
(cmd_encrypt): Add all enrypt-to marked certs to the list. * encrypt.c (gpgsm_encrypt): Check that real recipients are available. * gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to options work. Pass the list of recients to gpgsm_server. * gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO. (opt): Add NO_ENCRYPT_TO. * certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO. Changed all callers and ignore duplicate entries. (is_cert_in_certlist): New. (gpgsm_add_cert_to_certlist): New.
2003-12-16* encrypt.c (init_dek): Use gry_create_nonce for the IV; there isWerner Koch1-1/+1
not need for real strong random here and it even better protect the random bits used for the key.
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+1070
'GNUPG-1-9-BRANCH'.
2003-06-27Key generation and signing using the OpenPGP card does rudimentary work.Werner Koch1-0/+11
2003-06-03Make use of libgpg-errorWerner Koch1-23/+28
2003-04-29* Makefile.am: Use libassuan. Don't override LDFLAGS anymore.Werner Koch1-24/+21
* server.c (register_commands): Adjust for new Assuan semantics.
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-1057/+0
'GNUPG-1-9-BRANCH'.
2002-08-21* import.c (print_imported_summary): Cleaned up. Print newWerner Koch1-0/+1
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-16* call-agent.c (learn_cb): Special treatment when the issuerWerner Koch1-2/+2
certificate is missing.
2002-08-09* gpgsm.c (emergency_cleanup): New.Werner Koch1-2/+52
(main): Initialize the signal handler. * sign.c (gpgsm_sign): Reset the hash context for subsequent signers and release it at the end.
2002-07-22* delete.c: New.Werner Koch1-0/+44
* gpgsm.c: Made --delete-key work. * server.c (cmd_delkeys): New. (register_commands): New command DELKEYS. * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is used and a STATUS_ERROR with the algorithm oid.
2002-07-03* server.c (gpgsm_status2): Insert a blank between all optionalWerner Koch1-9/+14
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-06-28* server.c (cmd_recipient): Add more reason codes.Werner Koch1-1/+8
2002-06-25* certdump.c (print_dn_part): Always print a leading slash,Werner Koch1-4/+17
removed NEED_DELIM arg and changed caller. * export.c (gpgsm_export): Print LFs to FP and not stdout. (print_short_info): Ditto. Make use of gpgsm_print_name. * server.c (cmd_export): Use output-fd instead of data lines; this was actually the specified way.
2002-06-20* certlist.c (gpgsm_add_to_certlist): Fixed locating of aWerner Koch1-1/+1
certificate with the required key usage. * gpgsm.c (main): Fixed a segv when using --outfile without an argument. * keylist.c (print_capabilities): Also check for non-repudiation and data encipherment. * certlist.c (cert_usage_p): Test for signing and encryption was swapped. Add a case for certification usage, handle non-repudiation and data encipherment. (gpgsm_cert_use_cert_p): New. (gpgsm_add_to_certlist): Added a CTRL argument and changed all callers to pass it. * certpath.c (gpgsm_validate_path): Use it here to print a status message. Added a CTRL argument and changed all callers to pass it. * decrypt.c (gpgsm_decrypt): Print a status message for wrong key usage. * verify.c (gpgsm_verify): Ditto. * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
2002-06-12* sign.c (hash_and_copy_data): New.Werner Koch1-0/+1
(gpgsm_sign): Implemented normal (non-detached) signatures. * gpgsm.c (main): Ditto. * certpath.c (gpgsm_validate_path): Special error handling for no policy match. * configure.ac (NEED_LIBKSBA_VERSION): We need 0.4.3 now.
2002-05-21* keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.Werner Koch1-8/+33
(list_external_keys): New. (gpgsm_list_keys): Dispatcher for above. * call-dirmngr.c (lookup_cb,pattern_from_strlist) (gpgsm_dirmngr_lookup): New. * server.c (option_handler): Handle new option --list-mode. (do_listkeys): Handle options and actually use the mode argument. (get_status_string): New code TRUNCATED.
2002-05-03* certpath.c (gpgsm_validate_path): Added EXPTIME arg and changedWerner Koch1-0/+2
all callers. * verify.c (gpgsm_verify): Tweaked usage of log_debug and log_error. Return EXPSIG status and add expiretime to VALIDSIG.
2002-04-27Debug message cleanups.Werner Koch1-1/+1
2002-04-242002-04-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+40
* server.c (option_handler): Accept display, ttyname, ttytype, lc_ctype and lc_messages options. * gpgsm.c (main): Allocate memory for these options. * gpgsm.h (struct opt): Make corresponding members non-const.
2002-03-21* export.c: New.Werner Koch1-0/+43
* gpgsm.c: Add command --export. * server.c (cmd_export): New.
2002-03-12* verify.c (gpgsm_verify): Detect certs-only message.Werner Koch1-4/+33
2002-03-06* server.c (cmd_listkeys, cmd_listsecretkeys): Divert toNEWPG-0-3-2Werner Koch1-15/+62
(do_listkeys): new. Add pattern parsing. * keylist.c (gpgsm_list_keys): Handle selection pattern.
2002-02-28Changes needed to support smartcards. Well, only _support_. There isWerner Koch1-1/+1
no real code yet.
2002-02-25* server.c (option_handler): Allow to use -2 for "send all certsWerner Koch1-1/+5
except the root cert". * sign.c (add_certificate_list): Implement it here. * certpath.c (gpgsm_is_root_cert): New.
2002-02-07* certlist.c (gpgsm_add_to_certlist): Check that the specifiedWerner Koch1-7/+20
name identifies a certificate unambiguously. (gpgsm_find_cert): Ditto. * server.c (cmd_listkeys): Check that the data stream is available. (cmd_listsecretkeys): Ditto. (has_option): New. (cmd_sign): Fix ambiguousity in option recognition. * gpgsm.c (main): Enable --logger-fd. * encrypt.c (gpgsm_encrypt): Increased buffer size for better performance. * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from the agent. * keylist.c (list_cert_colon): Filter out control characters.
2002-02-06* decrypt.c (gpgsm_decrypt): Bail out after an decryption error.Werner Koch1-43/+29
* server.c (reset_notify): Close input and output FDs. (cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import) (cmd_genkey): Close the FDs and release the recipient list even in the error case.