Werner Koch
04f49d973b
* server.c (option_handler): Allow to use -2 for "send all certs
...
except the root cert".
* sign.c (add_certificate_list): Implement it here.
* certpath.c (gpgsm_is_root_cert): New.
2002-02-25 18:18:40 +00:00
Marcus Brinkmann
a34a03def9
2002-02-01 Marcus Brinkmann <marcus@g10code.de>
...
* sign.c (gpgsm_sign): Do not release certificate twice.
2002-02-01 18:08:32 +00:00
Werner Koch
151deac0df
* gpgsm.c (main): Disable core dumps.
...
* 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-25 16:41:13 +00:00
Werner Koch
dc37fe1849
* base64.c (gpgsm_create_writer): Allow to set the object name
...
* 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.
2002-01-10 19:47:20 +00:00
Werner Koch
1301c0b5ef
* decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
...
* sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.
2001-12-15 12:36:39 +00:00
Werner Koch
6d27c940b2
* verify.c (gpgsm_verify): Add hash debug helpers
...
* 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 19:36:33 +00:00
Werner Koch
b020999687
* sign.c (get_default_signer): Use keydb_classify_name here.
2001-12-14 13:35:34 +00:00
Werner Koch
e8cc8e4064
Fixed test key
2001-12-14 13:09:51 +00:00
Werner Koch
c3567c42b7
Now that the DN encoding works more correct, we have to update the
...
default key.
2001-12-13 09:33:36 +00:00
Werner Koch
6a8c47bd29
Implemented encryption in server mode.
...
Allow to specify a recipient on the commandline
There is still a default hardwired recipient if none has been set.
2001-12-11 12:31:04 +00:00
Werner Koch
e8676a0871
Started with decryption stuff
2001-12-05 23:48:01 +00:00
Werner Koch
95e6da1b07
--armor does now produce PEM format.
2001-11-27 18:38:59 +00:00
Werner Koch
944fee70bc
* base64.c: New. Changed all other functions to use this instead
...
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-27 17:40:09 +00:00
Werner Koch
99829ef5fb
* keydb.c (keydb_add_resource): Create keybox
...
* keylist.c (gpgsm_list_keys): Fixed non-server keylisting.
* server.c (rc_to_assuan_status): New. Use it for all commands.
2001-11-26 13:08:36 +00:00
Werner Koch
bab7fa0b29
Added new directory common to enable sharing of some code and error
...
numbers between gpg, gpgsm and gpg-agent. Move some files and code to
there.
2001-11-24 17:43:43 +00:00
Werner Koch
8e58435312
Signing does now work. There is no secret key management yet, so you
...
should set GPGSM_FAKE_KEY=1 before you try to verify a signature
created by gpgsm --sign or the SIGN server command.
2001-11-24 14:26:27 +00:00
Werner Koch
757c13a171
Just a Backup. We can now write out a basic signature which in turn
...
exhibits a bug in --verify.
2001-11-23 17:12:37 +00:00