aboutsummaryrefslogtreecommitdiffstats
path: root/sm/server.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * encrypt.c (init_dek): Use gry_create_nonce for the IV; there isWerner Koch2003-12-161-1/+1
| | | | | | not need for real strong random here and it even better protect the random bits used for the key.
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-051-0/+1070
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-191-1057/+0
| | | | 'GNUPG-1-9-BRANCH'.
* * import.c (print_imported_summary): Cleaned up. Print newWerner Koch2002-08-211-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.
* * call-agent.c (learn_cb): Special treatment when the issuerWerner Koch2002-08-161-2/+2
| | | | | certificate is missing.
* * gpgsm.c (emergency_cleanup): New.Werner Koch2002-08-091-2/+52
| | | | | | | | (main): Initialize the signal handler. * sign.c (gpgsm_sign): Reset the hash context for subsequent signers and release it at the end.
* * delete.c: New.Werner Koch2002-07-221-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.
* * server.c (gpgsm_status2): Insert a blank between all optionalWerner Koch2002-07-031-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.
* * server.c (cmd_recipient): Add more reason codes.Werner Koch2002-06-281-1/+8
|
* * certdump.c (print_dn_part): Always print a leading slash,Werner Koch2002-06-251-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.
* * certlist.c (gpgsm_add_to_certlist): Fixed locating of aWerner Koch2002-06-201-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.
* * sign.c (hash_and_copy_data): New.Werner Koch2002-06-121-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.
* * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.Werner Koch2002-05-211-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.
* * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changedWerner Koch2002-05-031-0/+2
| | | | | | | all callers. * verify.c (gpgsm_verify): Tweaked usage of log_debug and log_error. Return EXPSIG status and add expiretime to VALIDSIG.
* Debug message cleanups.Werner Koch2002-04-271-1/+1
|
* 2002-04-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-04-241-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.
* * export.c: New.Werner Koch2002-03-211-0/+43
| | | | | | * gpgsm.c: Add command --export. * server.c (cmd_export): New.
* * verify.c (gpgsm_verify): Detect certs-only message.Werner Koch2002-03-121-4/+33
|
* * server.c (cmd_listkeys, cmd_listsecretkeys): Divert toNEWPG-0-3-2Werner Koch2002-03-061-15/+62
| | | | | | (do_listkeys): new. Add pattern parsing. * keylist.c (gpgsm_list_keys): Handle selection pattern.
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-281-1/+1
| | | | | no real code yet.
* * server.c (option_handler): Allow to use -2 for "send all certsWerner Koch2002-02-251-1/+5
| | | | | | | except the root cert". * sign.c (add_certificate_list): Implement it here. * certpath.c (gpgsm_is_root_cert): New.
* * certlist.c (gpgsm_add_to_certlist): Check that the specifiedWerner Koch2002-02-071-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.
* * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.Werner Koch2002-02-061-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.
* * call-agent.c (gpgsm_agent_havekey): New.Werner Koch2002-01-291-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.
* * gpgsm.c (main): Disable core dumps.Werner Koch2002-01-251-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.
* * server.c (option_handler): New.Werner Koch2002-01-201-0/+12
| | | | | (gpgsm_server): Register it with assuan.
* * server.c (gpgsm_server): Use assuan_deinit_server and setupWerner Koch2002-01-191-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
* * base64.c (gpgsm_create_writer): Allow to set the object nameWerner Koch2002-01-101-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.
* * verify.c (gpgsm_verify): Implemented non-detached signatureWerner Koch2001-12-201-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.
* * verify.c (gpgsm_verify): Add hash debug helpersWerner Koch2001-12-141-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.
* * util.h (digitp, hexdigitp): New ctype like macros.Werner Koch2001-12-141-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.
* * sign.c (get_default_signer): Use keydb_classify_name here.Werner Koch2001-12-141-1/+0
|
* * keylist.c (list_cert_colon): Print alternative names of subjectWerner Koch2001-12-141-2/+0
| | | | | and a few other values.
* Made decryption work in --server mode, allow output of plain base64,Werner Koch2001-12-131-2/+19
| | | | | | allow --armor and --base64 arguments for INPUT and OUTPUT, new global option --base64, cleaned up the help page.
* Implemented encryption in server mode.Werner Koch2001-12-111-7/+25
| | | | | | Allow to specify a recipient on the commandline There is still a default hardwired recipient if none has been set.
* Started with decryption stuffWerner Koch2001-12-051-0/+1
|
* * base64.c: New. Changed all other functions to use this insteadWerner Koch2001-11-271-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.
* * keydb.c (keydb_add_resource): Create keyboxWerner Koch2001-11-261-7/+51
| | | | | | * keylist.c (gpgsm_list_keys): Fixed non-server keylisting. * server.c (rc_to_assuan_status): New. Use it for all commands.
* Signing does now work. There is no secret key management yet, so youWerner Koch2001-11-241-4/+23
| | | | | | should set GPGSM_FAKE_KEY=1 before you try to verify a signature created by gpgsm --sign or the SIGN server command.
* Added basic code for keylisting.Werner Koch2001-11-191-0/+14
| | | | | New Assuan command LISTKEYS.
* Write status output, make verify work in server mode.Werner Koch2001-11-191-2/+243
|
* gpgsm --verify does now work like gpg including theWerner Koch2001-11-191-1/+1
| | | | | --enable-special-filenames option.
* Base code for gpgsm --verify does workWerner Koch2001-11-161-4/+11
|
* Implemented server main loop and started with import command.Werner Koch2001-11-071-0/+182
|
* gpgsm does now build and a dummy server can be started.Werner Koch2001-11-061-0/+56