Werner Koch
84a9ac9572
* util.h (fopencokokie): Removed prototype and struct.
...
* maperror.c: Use system assuan.h
2003-04-29 10:39:22 +00:00
Werner Koch
c13b76ca6a
Updated from latest NewPG project
2003-01-09 12:59:25 +00:00
Neal Walfield
cab999130d
2002-09-04 Neal H. Walfield <neal@g10code.de>
...
* vasprintf.c (vasprintf) [va_copy]: Use va_copy.
[!va_copy && __va_copy]: Use __va_copy.
[!va_copy && !__va_copy]: Only now fall back to using memcpy.
2002-09-05 16:24:16 +00:00
Werner Koch
04011644ae
* errors.h: Added STATUS_IMPORT_PROBLEM.
2002-08-21 15:41:11 +00:00
Werner Koch
bc8364ec4f
* vasprintf.c: Hack to handle NULL for %s.
2002-08-21 08:18:43 +00:00
Werner Koch
a55d4d129f
Renamed an error code.
2002-08-16 14:24:12 +00:00
Werner Koch
5b0ccaf949
* signal.c: New. Taken from GnuPG 1.1.91.
2002-08-09 18:13:41 +00:00
Werner Koch
bbf580e702
* fseeko.c, ftello.c: New.
...
* configure.ac: Check for ftello and provide a replacement.
2002-07-22 10:20:39 +00:00
Werner Koch
0c0b0f5452
* maperror.c (map_to_assuan_status): Map more errorcodes to Bad
...
Certificate.
2002-06-28 16:16:57 +00:00
Werner Koch
d905375003
* maperror.c (map_to_assuan_status): Map EOF to No_Data_Available.
2002-06-26 12:51:24 +00:00
Werner Koch
3221ef0add
Various changes.
2002-06-12 09:56:05 +00:00
Werner Koch
b209c17be9
* no-pth.c, Makefile.am: Removed.
...
* call-scd.c: Seirialized all scdaeom access when using Pth.
* cache.c: Made the cache Pth-thread-safe.
(agent_unlock_cache_entry): New.
* findkey.c (unprotect): Unlock the returned cache value.
* command.c (cmd_get_passphrase): Ditto.
* gpg-agent.c (main): Register pth_read/write with Assuan.
2002-05-23 09:07:45 +00:00
Werner Koch
3910c0f005
* mkdtemp.c: Replaced byte by unsigned char because it is no longer
...
defined in gcrypt.h.
2002-05-22 06:23:22 +00:00
Werner Koch
ad6abe7913
* keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
...
(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-21 19:20:40 +00:00
Werner Koch
4f7330e0bb
* import.c (gpgsm_import): Try to identify the type of input and
...
handle certs-only messages.
* maperror.c (map_gcry_err): Add libgcrypt's new S-expression errors.
(map_ksba_err): Add a few mappings.
* configure.ac: We now require libgcrypt 1.1.7 and libksba 0.4.2.
2002-05-21 08:29:17 +00:00
Werner Koch
c7ceb874c2
sm/
...
* gpgsm.c: New option --faked-system-time
* sign.c (gpgsm_sign): And use it here.
* certpath.c (gpgsm_validate_path): Ditto.
common/
* gettime.c: New.
agent/
* cache.c (housekeeping, agent_put_cache): Use our time() wrapper.
/
* doc/: New
* configure.ac, Makefile.am: Added doc/
2002-05-14 16:51:00 +00:00
Werner Koch
11d568a62f
* errors.h: Added STARUS_EXPSIG and STATUS_EXPKEYSIG.
2002-05-03 20:19:35 +00:00
Werner Koch
3719aa5148
* cryptmiss.c: New.
2002-04-15 10:10:59 +00:00
Werner Koch
7e07a397a0
* certlist.c (cert_usable_p): New.
...
(gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
(gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
(gpgsm_add_to_certlist): Check the key usage.
* sign.c (gpgsm_sign): Ditto.
* verify.c (gpgsm_verify): Print a message wehn an unsuitable
certificate was used.
* decrypt.c (gpgsm_decrypt): Ditto
* keylist.c (print_capabilities): Determine values from the cert.
2002-04-12 18:54:34 +00:00
Werner Koch
1f6d901db6
More error codes
2002-03-12 13:36:55 +00:00
Werner Koch
914e77c133
We got more error codes than actual code ;-)
2002-03-05 17:17:41 +00:00
Werner Koch
56341c289c
Changes needed to support smartcards. Well, only _support_. There is
...
no real code yet.
2002-02-28 11:07:59 +00:00
Werner Koch
488243f56e
* certpath.c (check_cert_policy): New.
...
(gpgsm_validate_path): And call it from here.
* gpgsm.c (main): New options --policy-file,
--disable-policy-checks and --enable-policy-checks.
* gpgsm.h (opt): Added policy_file, no_policy_checks.
2002-02-19 17:39:05 +00:00
Werner Koch
1df38417a3
More error codes
2002-02-18 20:46:09 +00:00
Werner Koch
85d9e2e212
* fopencookie.c: Dummy function.
...
* vasprintf.c: New. Taken from binutils-2.9.1 and dropped all non
ANSI-C stuff. Merged with asprintf version.
* no-pth.c: New.
2002-02-12 20:42:25 +00:00
Werner Koch
2a28f5d0ae
* certlist.c (gpgsm_add_to_certlist): Check that the specified
...
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-07 18:43:22 +00:00
Werner Koch
400938f239
Added a few more error codes
2002-01-31 17:46:29 +00:00
Werner Koch
1280f16d96
* mkdtemp.c: Copied from gnupg-1.0.6c and changed to use libgcrypt.
...
* configure.ac (mkdtemp): See whether we have to provide a
replacement.
2002-01-23 15:49:58 +00:00
Werner Koch
4f39f92eff
* certpath.c (unknown_criticals): New.
...
(allowed_ca): New.
(gpgsm_validate_path): Check validity, CA attribute, path length
and unknown critical extensions.
2002-01-22 13:32:48 +00:00
Werner Koch
0e06a31d58
* sysutils.c: New. This is the misc.c file from gnupg 1.0.6 with
...
the OpenPGP stuff removed.
* sysutils.h: New.
2002-01-19 20:58:41 +00:00
Werner Koch
08e10cd52f
More error codes and mappings
2002-01-19 18:20:45 +00:00
Werner Koch
a6a2595dba
* maperror.c: Add mapping for Not_Trusted.
2002-01-15 13:02:13 +00:00
Werner Koch
98b2622ef0
* maperror.c (map_assuan_err): Codes for CRL
2002-01-11 17:07:15 +00:00
Werner Koch
8bad9e344b
*** empty log message ***
2002-01-10 19:46:20 +00:00
Werner Koch
ee1b7e428b
* maperror.c (map_gcry_err): Add some mappings.
2001-12-20 16:49:48 +00:00
Werner Koch
86521773df
* Makefile.am (AM_CPPFLAGS): Add flags for libksba
...
* Makefile.am (AM_CPPFLAGS): Include flags for gcrypt and ksba
* Makefile.am: Use LIBGCRYPT macros
2001-12-18 19:35:12 +00:00
Werner Koch
7606e3b33a
* util.h (digitp, hexdigitp): New ctype like macros.
...
(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 13:43:42 +00:00
Werner Koch
317bccd134
* util.h (digitp, hexdigitp): New ctype like macros.
...
(atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New.
2001-12-14 13:37:08 +00:00
Werner Koch
0d2ea2811b
new error codes
2001-12-11 12:27:10 +00:00
Werner Koch
79956a08e0
The Agent does now call the pin entry program; however because we have
...
not yet implemeted secret key protection, its purpose is somewhat
limited. Well, the PIN entry modules can now be tested.
2001-12-10 09:27:30 +00:00
Werner Koch
e4a72423ff
More error codes
2001-12-06 20:47:30 +00:00
Werner Koch
64c36057eb
New error codes and another mapping fnc.
2001-12-05 23:45:42 +00:00
Werner Koch
ce8a236195
More error codes
2001-11-26 13:08:00 +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
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