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
d9a4ccf94e
* certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
...
* certdump.c (gpgsm_dump_string): New.
(print_dn): Replaced by above.
2002-01-23 13:40:38 +00:00
Werner Koch
a9979e26a5
* import.c (gpgsm_import): Just do a basic cert check before
...
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.
2002-01-15 13:02:47 +00:00
Werner Koch
438b2bcb8c
* call-dirmngr.c (inq_certificate): Changed for new interface semantic.
...
* certlist.c (gpgsm_find_cert): New.
DirMngr should now work. Remember that there is a --disable-crl-check
option in gpgsm to be used when there is a problem with the dirmngr
communication or you want to do faster tests.
2002-01-14 12:15:30 +00:00
Werner Koch
6af7631e54
* call-dirmngr.c: New.
...
* certpath.c (gpgsm_validate_path): Check the CRL here.
* fingerprint.c (gpgsm_get_certid): New.
* gpgsm.c: New options --dirmngr-program and --disable-crl-checks.
2002-01-11 17:07:51 +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
3b8cf6e497
* verify.c (gpgsm_verify): Implemented non-detached signature
...
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-20 16:51:06 +00:00
Werner Koch
5f116e9540
* base64.c (base64_reader_cb): Try to detect an S/MIME body part.
...
* certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
global.
(print_time): Renamed to gpgsm_dump_time, made global.
(gpgsm_dump_serial): Take a real S-Expression as argument and
print the first item.
* keylist.c (list_cert_colon): Ditto.
* keydb.c (keydb_search_issuer_sn): Ditto.
* decrypt.c (print_integer_sexp): Removed and made callers
use gpgsm_dump_serial.
* verify.c (print_time): Removed, made callers use gpgsm_dump_time.
2001-12-20 13:25:08 +00:00
Werner Koch
56172ce393
Changes to be used with the new libksba interface.
...
libgcrypt-1.1.5 is required (cvs or tarball)
2001-12-18 17:37:48 +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
ce32f6b6c8
Decryption does now work
2001-12-06 20:48:10 +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
d9aecd9eb7
* gpgsm.c: New option --agent-program
...
* call-agent.c (start_agent): Allow to override the default path
to the agent.
2001-11-26 17:54:49 +00:00
Werner Koch
0e36c4c6a7
The agent does now work and read the secret keys from the directory
...
~/.gnupg-test/private-keys-v1.d/<keygrip-as-20-byte-hex-number>. I
will post a sample key to gpa-dev.
2001-11-25 18:23:06 +00:00
Werner Koch
f60dc501d2
Introduced the keygrip
2001-11-24 22:20:38 +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
Werner Koch
a413066de1
Added basic code for keylisting.
...
New Assuan command LISTKEYS.
2001-11-19 16:17:43 +00:00
Werner Koch
0b17666145
Write status output, make verify work in server mode.
2001-11-19 12:42:01 +00:00
Werner Koch
2b99de5a5d
gpgsm --verify does now work like gpg including the
...
--enable-special-filenames option.
2001-11-19 10:25:00 +00:00
Werner Koch
0f26760d9f
Base code for gpgsm --verify does work
2001-11-16 17:56:23 +00:00
Werner Koch
90d060c199
We have reached a state where we are able to import certs and
...
check the certification path.
2001-11-13 12:50:14 +00:00
Werner Koch
7c708298d2
Implemented server main loop and started with import command.
2001-11-07 17:44:22 +00:00
Werner Koch
4fcb72b382
gpgsm does now build and a dummy server can be started.
2001-11-06 19:14:14 +00:00