aboutsummaryrefslogtreecommitdiffstats
path: root/sm/server.c (unfollow)
Commit message (Collapse)AuthorFilesLines
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.
2002-01-29* call-agent.c (gpgsm_agent_havekey): New.Werner Koch1-1/+15
* keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs" when we know that the secret key is available. (gpgsm_list_keys): New arg MODE, check whether a secret key is available. Changed all callers. * gpgsm.c (main): New command --list-secret-keys. * server.c (cmd_listsecretkeys): New. (cmd_listkeys): Return secret keys with "crs" record.
2002-01-25* gpgsm.c (main): Disable core dumps.Werner Koch1-1/+13
* sign.c (add_certificate_list): New. (gpgsm_sign): Add the certificates to the CMS object. * certpath.c (gpgsm_walk_cert_chain): New. * gpgsm.h (server_control_s): Add included_certs. * gpgsm.c: Add option --include-certs. (gpgsm_init_default_ctrl): New. (main): Call it. * server.c (gpgsm_server): Ditto. (option_handler): Support --include-certs.
2002-01-20* server.c (option_handler): New.Werner Koch1-0/+12
(gpgsm_server): Register it with assuan.
2002-01-19* server.c (gpgsm_server): Use assuan_deinit_server and setupWerner Koch1-1/+4
assuan logging if enabled. * call-agent.c (inq_ciphertext_cb): Don't show the session key in an Assuan log file. * gpgsm.c (my_strusage): Take bugreport address from configure.ac
2002-01-10* base64.c (gpgsm_create_writer): Allow to set the object nameWerner Koch1-46/+44
* server.c (cmd_genkey): New. * certreqgen.c: New. The parameter handling code has been taken from gnupg/g10/keygen.c version 1.0.6. * call-agent.c (gpgsm_agent_genkey): New.
2001-12-20* verify.c (gpgsm_verify): Implemented non-detached signatureWerner Koch1-1/+13
verification. Add OUT_FP arg, initialize a writer and changed all callers. * server.c (cmd_verify): Pass an out_fp if one has been set.
2001-12-14* verify.c (gpgsm_verify): Add hash debug helpersWerner Koch1-1/+48
* sign.c (gpgsm_sign): Ditto. * base64.c (base64_reader_cb): Reset the linelen when we need to skip the line and adjusted test; I somehow forgot about DeMorgan. * server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify) (cmd_import): Close the FDs on success. (close_message_fd): New. (input_notify): Setting autodetect_encoding to 0 after initializing it to 0 is pretty pointless. Easy to fix.
2001-12-14* util.h (digitp, hexdigitp): New ctype like macros.Werner Koch1-1/+1
(atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New. * command.c: Removed the conversion macros as they are now in ../common/util.h.
2001-12-14* sign.c (get_default_signer): Use keydb_classify_name here.Werner Koch1-1/+0
2001-12-14* keylist.c (list_cert_colon): Print alternative names of subjectWerner Koch1-2/+0
and a few other values.
2001-12-13Made decryption work in --server mode, allow output of plain base64,Werner Koch1-2/+19
allow --armor and --base64 arguments for INPUT and OUTPUT, new global option --base64, cleaned up the help page.
2001-12-11Implemented encryption in server mode.Werner Koch1-7/+25
Allow to specify a recipient on the commandline There is still a default hardwired recipient if none has been set.
2001-12-05Started with decryption stuffWerner Koch1-0/+1
2001-11-27* base64.c: New. Changed all other functions to use this insteadWerner Koch1-8/+61
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-26* keydb.c (keydb_add_resource): Create keyboxWerner Koch1-7/+51
* keylist.c (gpgsm_list_keys): Fixed non-server keylisting. * server.c (rc_to_assuan_status): New. Use it for all commands.
2001-11-24Signing does now work. There is no secret key management yet, so youWerner Koch1-4/+23
should set GPGSM_FAKE_KEY=1 before you try to verify a signature created by gpgsm --sign or the SIGN server command.
2001-11-19Added basic code for keylisting.Werner Koch1-0/+14
New Assuan command LISTKEYS.
2001-11-19Write status output, make verify work in server mode.Werner Koch1-2/+243
2001-11-19gpgsm --verify does now work like gpg including theWerner Koch1-1/+1
--enable-special-filenames option.
2001-11-16Base code for gpgsm --verify does workWerner Koch1-4/+11
2001-11-07Implemented server main loop and started with import command.Werner Koch1-0/+182
2001-11-06gpgsm does now build and a dummy server can be started.Werner Koch1-37/+26
2001-11-06First chunk of code for the Assuan libraryWerner Koch1-37/+34