Werner Koch
a6a9181818
Start support of TCOS 3 cards.
...
Support restriction attribute.
Fix utf-8 printing problems.
Use AES by default.
2008-06-26 19:09:07 +00:00
Marcus Brinkmann
b60bfbe25c
g10/
...
2008-06-25 Marcus Brinkmann <marcus@g10code.de>
* gpg.c (enum cmd_and_opt_values): Remove option
oEnableW32HandleTranslation.
(opts): Remove option --enable-w32-handle-translation.
(main): Remove variable w32_handle_translation.
common/
2008-06-25 Marcus Brinkmann <marcus@g10code.de>
Revert last three changes related to handle translation.
* sysutils.c:
(FD_TRANSLATE_MAX, fd_translate, fd_translate_len)
(translate_table_init, translate_table_lookup): Removed.
* iobuf.c (check_special_filename): Do not use
translate_table_lookup.
* sysutils.h (translate_table_init, translate_table_lookup):
Remove prototypes.
2008-06-25 17:44:26 +00:00
Werner Koch
e573011dda
Robustness fix.
...
Add group to the --gpgconf-list.
2008-06-19 10:45:16 +00:00
Marcus Brinkmann
df066f970f
2008-06-18 Marcus Brinkmann <marcus@g10code.de>
...
* sysutils.c (TRANS_MAX): Bump up to 350 to be on the safe side.
2008-06-18 15:16:53 +00:00
Marcus Brinkmann
02bc6e886c
2008-06-18 Marcus Brinkmann <marcus@g10code.de>
...
* sysutils.h (translate_table_init, translate_table_lookup): New
prototypes.
* sysutils.c: Include <ctype.h>.
(FD_TRANSLATE_MAX): New macro.
(fd_translate, fd_translate_len): New static variables.
(translate_table_init, translate_table_lookup): New functions.
(translate_sys2libc_fd_int): Translate file descriptor.
* iobuf.c (check_special_filename): Translate handle values from
special filenames.
2008-06-18 14:46:05 +00:00
Werner Koch
8e37ee4099
[W32] Change location of /etc.
2008-06-16 13:55:01 +00:00
Werner Koch
5a788b9e00
Add Base64 decoder. Not yet used but complements out encoder.
2008-06-09 14:49:28 +00:00
Werner Koch
b11af4cf50
As a failsafe measure use memcpy instead of strcpy in gnupg_copy_time.
...
Typo fix.
2008-06-05 07:46:12 +00:00
Werner Koch
138bf2dc15
Fixed segv in gpg-agent (command marktrusted).
...
Replaced almost all free by xfree.
Translation fixes.
2008-05-27 12:03:50 +00:00
Werner Koch
08a612f26e
W32 related keyserver fixes.
2008-04-21 19:13:36 +00:00
Werner Koch
4896f5f47c
Adjust for the changed Camellia draft.
...
W32 gettext changes.
Comment and typo fixes.
2008-04-18 09:20:25 +00:00
Werner Koch
86f35a55d0
Minor cleanups.
...
Implemented key helper kdns
2008-04-07 19:31:12 +00:00
Werner Koch
9a8ee6e6be
Changed the way i18n files are located under Windows. The setting of the
...
Registry key is not anymore required. Helpfiles are not properly located.
2008-03-25 19:41:11 +00:00
Werner Koch
c2a8254be7
Fix a bug in the ambigious name detection.
...
Minor cleanups.
2008-03-20 15:31:43 +00:00
Werner Koch
fa800e7c86
Comment fixes.
...
Convey the new envvars when using simple-pwquery.
2008-03-06 18:28:47 +00:00
Marcus Brinkmann
ccd25447f1
2008-02-15 Marcus Brinkmann <marcus@g10code.de>
...
* exechelp.c (gnupg_spawn_process_fd): Add flag DETACHED_PROCESS
unconditionally (required for all callers at the moment).
2008-02-15 22:57:52 +00:00
Werner Koch
30a97e770c
Poems for AllowSetForegroundWindow (W32)
2008-02-14 19:50:10 +00:00
Werner Koch
0819c1e8ca
Always search missing certifcates using a running Dirmngr's cache.
2008-02-13 16:47:14 +00:00
Werner Koch
d84d5ea748
[W32] Avoid extra console window when importing or exporting.
...
Fixes bug 875.
2008-01-27 14:43:52 +00:00
Werner Koch
9d66580cff
Allow verification of some broken S-TRUST generated signatures.
2007-12-13 15:45:40 +00:00
Werner Koch
bae4b256c7
Support DSA2.
...
Support Camellia for testing.
More audit stuff.
2007-12-12 10:28:30 +00:00
Werner Koch
8c20500a5d
Allow configuraton of pinentry tooltip.
...
Other minor buf fixes.
2007-12-04 11:23:31 +00:00
Werner Koch
033a2c0bc9
Try to make sure that the standard descriptors are connected when calling
...
gpgsm.
2007-12-03 13:05:15 +00:00
Werner Koch
e09e3fa4ea
Fixed make distcheck
2007-11-27 08:37:03 +00:00
Werner Koch
598a3d0ab4
[W32] Changed default socket for dirmngr.
...
[W32] Add some code for event notifications
between scdaemon and gpg-agent.
2007-11-27 08:01:19 +00:00
Werner Koch
55ba204bfa
Started to implement the audit log feature.
...
Pass PINENTRY_USER_DATA and XAUTHORITY to Pinentry.
Improved support for the quality bar.
Minor internal restructuring.
Translation fixes.
2007-11-19 16:03:50 +00:00
Werner Koch
c12ce55b25
Factored utf8 switching code out to i18n.c.
2007-10-19 15:58:38 +00:00
Werner Koch
31c19d1d68
Use Assuan socket wrapper calls.
...
Made socket servers secure under Windows.
2007-10-01 14:48:39 +00:00
Werner Koch
19009f9959
Print used library version with --version.
...
Typo fixes
2007-09-14 13:38:36 +00:00
Werner Koch
8464627bf4
Extended the --check-program output: Error messages are now inlcued in an
...
easy parsable format.
2007-08-29 16:59:20 +00:00
Werner Koch
b13587ef16
New command --check-programs for gpgconf.
2007-08-29 09:51:37 +00:00
Werner Koch
f268889b8f
Add more passphrase policy rules.
...
(--max-passphrase-days).
2007-08-28 17:48:13 +00:00
Werner Koch
15d0cb42a1
Implemented more gpg-agen options to support certain passphrase policies.
...
New tool gpg-check-pattern.
2007-08-27 18:10:27 +00:00
Werner Koch
f81f521a72
Updated estream.
...
More changes for Windows.
2007-08-22 10:55:07 +00:00
Werner Koch
ed801e3771
About to do a release
2007-08-16 10:42:06 +00:00
Werner Koch
d20d11a0ee
Documentaion updates.
...
Support doe Dirmngr under W32.
Fixed a yat2m bug.
2007-08-14 16:50:27 +00:00
Werner Koch
74d344a521
Implemented the chain model for X.509 validation.
2007-08-10 16:52:05 +00:00
Werner Koch
ebd36b6344
Factored common gpgconf constants out
...
Fixed W32 compare_filenames
2007-08-02 18:12:43 +00:00
Werner Koch
cc25f43651
Removed unportable testing code.
2007-08-01 18:13:31 +00:00
Werner Koch
bce4ea798a
Properly close files opened by es_fopen.
...
Allow setting of an empty passphrase.
Assorted W32 changes.
2007-07-16 09:53:47 +00:00
Werner Koch
5f97dd2c44
Translate all file descriptors received from assuan.
2007-07-12 15:28:30 +00:00
Werner Koch
b188c246ca
Typo fixes.
...
iconv detection fix.
Use the currect type in t-gettime.
2007-07-10 09:24:29 +00:00
Werner Koch
4631bc8ddf
Fixed card key generation of gpg2.
...
Reveal less information about timings while generating a key.
2007-07-05 16:58:19 +00:00
Werner Koch
93d3811abc
Changed to GPLv3.
...
Removed intl/.
2007-07-04 19:49:40 +00:00
Werner Koch
a7fe86bc02
More W32 related changes
2007-06-26 13:48:44 +00:00
Werner Koch
831cd76256
Fixed a problem in estream-printf.c.
...
Changes for Windows (gpgsm -k does now work).
Minor cleanups.
2007-06-25 11:54:43 +00:00
Werner Koch
0b66f30d66
Implemented the --gen-key command as we can't use the gpgsm-gencert.sh under Windows.
2007-06-21 18:44:48 +00:00
Werner Koch
09cc0ee7be
[w32] gpg-agent is now started automagically by gpgsm.
2007-06-20 11:16:42 +00:00
Werner Koch
0cfbfd6186
A whole bunch of changes to allow building for Windows.
...
See the ChangeLogs for details.
2007-06-14 17:05:07 +00:00
Werner Koch
2c9791db55
First steps towards supporting W32.
...
This is mainly source code reorganization.
Update gnulib.
g10/ does currently not build.
2007-06-06 18:12:30 +00:00
Werner Koch
5f3bca9682
Use estream_asprintf instead of the GNU asprintf.
2007-05-15 16:10:48 +00:00
Werner Koch
d5052fd228
Upgraded gettext.
...
Fixed accidental dependency on libgcrypt 1.3.0.
2007-05-07 19:49:12 +00:00
Werner Koch
3c351d0232
UTF-8 Fixes
2007-05-04 09:22:18 +00:00
Werner Koch
b89d98e335
Improved logging for error orginating from libgcrypt.
2007-04-20 16:59:37 +00:00
Werner Koch
9e95c2dff6
Allow export to work on systems without funopen/fopencookie.
2007-03-19 15:44:59 +00:00
Werner Koch
12b661166c
Changes to let the key listing use estream to help systems without
...
funopen.
2007-03-19 14:35:04 +00:00
David Shaw
24feaa4f8a
From STABLE-BRANCH-1-4
...
* http.c (do_parse_uri): Remove the hkp port 11371 detection. We
implement hkp in the keyserver handler, and the support here makes it
appear like a bad hkp request actually succeeded.
2007-03-10 04:52:57 +00:00
Werner Koch
b861561e47
Included LIBICONV in all Makefiles.
...
g10/
* passphrase.c (passphrase_get): Set the cancel flag on all error
from the agent. Fixes a bug reported by Tom Duerbusch.
sm/
* gpgsm.c (main): Let --gen-key print a more informative error
message.
2007-01-31 14:24:41 +00:00
Werner Koch
6cee3e66c2
agent/
...
* protect-tool.c (get_passphrase): New arg OPT_CHECK.
(get_new_passphrase): Enable OTP_CHECK on the first call.
* command.c (cmd_get_passphrase): Implement option --check.
* gpg-agent.c (MIN_PASSPHRASE_LEN): New
(parse_rereadable_options): New option --min-passphrase-len.
* genkey.c (check_passphrase_constraints): New.
(agent_genkey, agent_protect_and_store): Call new function. Fix
memory leak.
* call-pinentry.c (agent_askpin): Allow translation of the displayed
error message.
(agent_popup_message_start): Remove arg CANCEL_BTN.
(popup_message_thread): Use --one-button option.
* command.c (cmd_passwd): Now that we don't distinguish between
assuan and regular error codes we can jump to the end on error.
common/
* simple-pwquery.c (simple_pwquery): New arg OPT_CHECK.
2007-01-25 08:30:47 +00:00
David Shaw
b26e95cf70
Some build fixes for platforms like OSX where we use the built-in libintl.
2006-12-13 19:48:31 +00:00
Werner Koch
252b668814
Preparing 2.0.1
2006-11-28 16:36:02 +00:00
Werner Koch
e50c5f39cc
No more warnings for AMD64 (at least when cross-compiling). Thus tehre is a
...
good chance that gpg2 will now work.
Other cleanups.
Updated gettext.
2006-11-21 11:00:14 +00:00
Werner Koch
5885142c83
Made some PIN pads work.
...
Some cleanups for 64 bit CPUs.
2006-11-20 16:49:41 +00:00
Werner Koch
10d563da08
Collected fixes.
2006-11-05 15:08:58 +00:00
Marcus Brinkmann
b295a9682b
2006-10-24 Marcus Brinkmann <marcus@g10code.de>
...
* Makefile.am (libcommon_a_CFLAGS): Add $(LIBASSUAN_CFLAGS).
(libsimple_pwquery_a_CFLAGS): New variable.
2006-10-24 14:48:02 +00:00
Werner Koch
58785c880d
Allow to select X.509 certificates using the keygrip.
2006-10-20 11:38:48 +00:00
Werner Koch
be410be660
Pth tweaks and improved estream.c
2006-10-17 14:34:42 +00:00
Werner Koch
2e8481c03b
Various changes
2006-10-10 11:11:04 +00:00
David Shaw
23b7b9a77b
* gpgrlhelp.c: readline requires stdio.h.
2006-10-04 21:23:47 +00:00
Werner Koch
8684a78518
Fixed agent access for gpg.
2006-10-04 16:45:04 +00:00
Werner Koch
4b48bcacc9
Fix for bug 537
2006-10-02 11:54:35 +00:00
Werner Koch
3377456252
Add missing file and other changes.
2006-09-27 13:58:13 +00:00
Werner Koch
b0a06d18a4
Clarified cURL and OpenLDAP license issues.
...
Made readline support work.
2006-09-22 11:39:45 +00:00
Werner Koch
43ab905823
Various updates
2006-09-21 13:30:45 +00:00
Werner Koch
7f42987b07
Allow for a global trustlist.
2006-09-15 18:53:37 +00:00
Werner Koch
03d3322e5f
Take advantage of newer gpg-error features.
2006-09-14 16:50:33 +00:00
Werner Koch
6374763c98
Let scdaemon call a script on status changes
2006-09-07 15:13:33 +00:00
Werner Koch
eef036df23
The big Assuan error code removal.
2006-09-06 16:35:52 +00:00
Werner Koch
7b9fa9da99
Minor changes and typo fixes.
2006-09-06 11:53:24 +00:00
Werner Koch
92550e3016
Support to read response headers. Required for redirection support in the
...
dirmngr package.
2006-09-04 11:00:52 +00:00
Werner Koch
0ebd23fa76
Migrated more stuff to doc/
...
Migrated the gpg regression tests.
Some changes tp the gpg code to fix bugs and
for the use in testing.
make distcheck works now with gpg enabled.
2006-08-21 20:20:23 +00:00
Werner Koch
b744f963d7
With --enable-gpg the keyservers are now build and a first test using gpg2
...
shows no prblems. Needs more testing of course.
2006-08-16 10:47:53 +00:00
Werner Koch
5be40e9fad
Changed HTTP API.
2006-08-14 14:40:07 +00:00
Werner Koch
6c94373609
Added http.c from 1.4.
...
Added support for estream and gnutls.
2006-08-11 11:04:38 +00:00
Werner Koch
fbe4ac37f6
g10/ does build again.
2006-05-23 16:19:43 +00:00
Werner Koch
4459fcb032
Still merging 1.4.3 code back
2006-04-21 12:56:40 +00:00
Werner Koch
29b23dea97
Merged with gpg 1.4.3 code.
...
The gpg part does not yet build.
2006-04-19 11:26:11 +00:00
Marcus Brinkmann
84b22283d9
2005-10-08 Marcus Brinkmann <marcus@g10code.de>
...
* signal.c (get_signal_name): Check value of HAVE_DECL_SYS_SIGLIST
instead of just if it is defined.
2005-10-07 23:46:36 +00:00
Marcus Brinkmann
694cebb1c1
2005-09-28 Marcus Brinkmann <marcus@g10code.de>
...
* Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
2005-09-28 22:45:05 +00:00
Marcus Brinkmann
51a164e752
2005-07-04 Marcus Brinkmann <marcus@g10code.de>
...
* simple-pwquery.h (simple_pwclear): New prototype.
* simple-pwquery.c (simple_pwclear): New function.
2005-07-04 04:55:48 +00:00
Werner Koch
deeba405a9
gcc-4 defaults forced me to edit many many files to get rid of the
...
char * vs. unsigned char * warnings. The GNU coding standards used to
say that these mismatches are okay and better than a bunch of casts.
Obviously this has changed now.
2005-06-16 08:12:03 +00:00
Werner Koch
f1dac8851d
* command.c (cmd_updatestartuptty): New.
...
* gpg-agent.c: New option --write-env-file.
* gpg-agent.c (handle_connections): Make sure that the signals we
are handling are not blocked.Block signals while creating new
threads.
* estream.c: Use HAVE_CONFIG_H and not USE_CONFIG_H!
(es_func_fd_read, es_func_fd_write): Protect against EINTR.
* gpg-agent.texi (Agent UPDATESTARTUPTTY): New.
* scdaemon.c (handle_connections): Make sure that the signals we
are handling are not blocked.Block signals while creating new
threads.
(handle_connections): Include the file descriptor into the name of
the thread.
2005-06-03 13:57:24 +00:00
Werner Koch
cad9562436
* configure.ac (gl_INIT): Add gnulib stuff.
...
(fseeko, ftello, ttyname, isascii): Replaced the AC_REPLACE_FUNCS
by a simple check.
(putc_unlocked): Removed check. Not used.
(strsep, mkdtemp, asprintf): Replaced checks by gnulib checks.
(xsize): Added will probably come handy soon.
(CFLAGS): Use -Wformat-security instead of
-Wformat-nonliteral. Add --Wno-format-y2k.
* gl/, gl/m4/: New.
* gpg-agent.c: Include setenv.h.
* Makefile.am (AM_CPPFLAGS): Added.
* util.h: Add some includes for gnulib.
(ttyname, isascii): Define them inline.
* fseeko.c, ftello.c: Removed.
* strsep.c, mkdtemp.c: Removed.
* ttyname.c, isascii.c: Removed.
* mkdtemp.c: Removed.
* exec.c: Include mkdtemp.h
* keybox-file.c (ftello) [!HAVE_FSEEKO]: New replacement
function. Copied from ../common/ftello.c.
* keybox-update.c (fseeko) [!HAVE_FSEEKO]: New replacement
function. Copied from ../common/iobuf.c.
* scdaemon.c: Include mkdtemp.h.
* misc.c: Include setenv.h.
* symcryptrun.c: Include mkdtemp.h.
2005-06-01 15:46:01 +00:00
Werner Koch
6e522257a9
* agent.h (out_of_core): s/__inline__/inine. Noted by Ray Link.
...
* dynload.h: s/__inline__/inline/.
* tlv.c [GNUPG_MAJOR_VERSION==1]: Define constants instead of
including a gnupg 1.4 header.
* watchgnupg.c: Make sure that PF_LCOAL and AF_LOCAL are defines.
Noted by Ray Link.
2005-05-31 20:03:04 +00:00
Werner Koch
a5c4c4bf12
(got_fatal_signal): Print the signal number if we can't
...
get a name for it.
(get_signal_name): Return NULL if no name is available. Fixed
conditional for sys_siglist to the correct one.
2005-05-13 12:43:07 +00:00
Werner Koch
d8718bd67f
(got_fatal_signal): Print the signal number if we can't
...
get a name for it.
(get_signal_name): Return NULL if no name is available.
2005-05-13 12:37:52 +00:00
Werner Koch
eff62d82bf
* configure.ac: Require libksba 0.9.11.
...
sm/
* call-dirmngr.c (inq_certificate): Add new inquire SENDCERT_SKI.
* certlist.c (gpgsm_find_cert): Add new arg KEYID and implement
this filter. Changed all callers.
* certchain.c (find_up_search_by_keyid): New helper.
(find_up): Also try using the AKI.keyIdentifier.
(find_up_external): Ditto.
2005-04-18 10:44:46 +00:00
Werner Koch
45eba6e5de
* sexputil.c: New.
2005-04-11 16:10:03 +00:00
Marcus Brinkmann
c5b1095b6d
2005-04-11 Marcus Brinkmann <marcus@g10code.de>
...
* simple-pwquery.c (simple_pwquery): Use spwq_secure_free.
2005-04-10 22:12:31 +00:00
Werner Koch
df05dde9d5
* acinclude.m4 (GNUPG_PTH_VERSION_CHECK): Accidently used
...
--ldflags instead of --cflags. Reported by Kazu Yamamoto.
* Makefile.am (AM_CFLAGS): Added PTH_CFLAGS. Noted by Kazu Yamamoto.
* Makefile.am (gpgsm_LDADD): Added PTH_LIBS. Noted by Kazu Yamamoto.
2005-03-03 10:15:07 +00:00
Werner Koch
faef9f929b
* findkey.c (modify_description): Keep invalid % escapes, so that
...
%0A may pass through.
* agent.h (server_control_s): New field USE_AUTH_CALL.
* call-scd.c (agent_card_pksign): Make use of it.
* command-ssh.c (data_sign): Set the flag.
(ssh_send_key_public): New arg OVERRIDE_COMMENT.
(card_key_available): Add new arg CARDSN.
(ssh_handler_request_identities): Use the card s/n as comment.
(sexp_key_extract): Use GCRYMPI_FMT_STD.
(data_sign): Ditto.
* learncard.c (make_shadow_info): Moved to ..
* protect.c (make_shadow_info): .. here. Return NULL on malloc
failure. Made global.
* agent.h: Add prototype.
* xasprintf.c (xtryasprintf): New.
* app-openpgp.c (get_public_key): Make sure not to return negative
numbers.
(do_sign): Allow passing of indata with algorithm prefix.
(do_auth): Allow OPENPGP.3 as an alternative ID.
* app.c (app_getattr): Return just the S/N but not the timestamp.
* no-libgcrypt.c (gcry_strdup): New.
2005-02-25 16:14:55 +00:00
Moritz Schulte
4d2b474ef2
2005-01-26 Moritz Schulte <moritz@g10code.com>
...
* Makefile.am (libcommon_a_SOURCES): New source files: estream.c,
estream.h.
* estream.c, estream.h: New files.
2005-01-26 22:24:59 +00:00
Werner Koch
832edf9963
(send_pinentry_environment): Fixed changed from
...
2004-12-18; cut+paste error for lc-messages.
2005-01-03 11:30:43 +00:00
Werner Koch
01f3f25158
* preset-passphrase.c (preset_passphrase): Handle --passphrase.
...
* Makefile.am (gpg_preset_passphrase_LDADD): Reorder libs so that
pwquery may use stuff from jnlib. Conditionally add -lwsock2
(gpg_protect_tool_LDADD): Ditto.
* preset-passphrase.c (main): Use default_homedir().
(main) [W32]: Initialize sockets.
* simple-pwquery.c (agent_open) [W32]: Implement for W32.
(readline) [W32]: Use recv instead of read.
(writen) [W32]: Use send instead of write.
(my_stpcpy): Define a stpcpy replacement so that this file
continues to be self-contained.
(agent_send_all_options) [W32]: Don't call ttyname.
* gnupg-badge-openpgp.eps, gnupg-badge-openpgp.jpg: New
* gnupg.texi: Add a logo.
* sysnotes.texi: New.
* gpgsm.c (main): Use default_homedir().
(main) [W32]: Default to disabled CRL checks.
* gpgconf-comp.c (get_config_pathname) [DOSISH]: Detect absolute
pathnames with a drive letter.
2004-12-21 19:05:15 +00:00
Werner Koch
7b9e5a343f
* homedir.c: New. Use CSIDL_APPDATA for W32 as the default home
...
directory.
2004-12-21 12:44:42 +00:00
Werner Koch
878cf20766
* gpg-agent.c (main): Use default_homedir().
...
* protect-tool.c (main): Ditto.
* signal.c (got_fatal_signal, got_usr_signal)
(got_fatal_signal) [DOSISH]: Don't build.
* simple-gettext.c: Include sysutils.h
* homedir.c: New.
* Makefile.am (libcommon_a_SOURCES): Add it.
(EXTRA_DIST): Removed mkerror and mkerrtok.
* gpgv.c, g10.c (main): Use default_hoemdir ().
* scdaemon.c (main): Use default_homedir().
* gpgsm.c (main): Use default_homedir().
2004-12-21 10:03:00 +00:00
Werner Koch
581f5ddb17
* configure.ac: Add PATHSEP_C and PATHSEP_S. For W32 let all
...
directories default to c:/gnupg. Require libassuan 0.6.9.
* gpg-agent.c (main) [W32]: Now that Mutexes work we can remove
the pth_init kludge.
(main): Add new options --[no-]use-standard-socket.
(check_for_running_agent): Check whether it is running on the
standard socket.
* sysutils.h [W32]: Define sleep.
* util.h: Add prototype for mkdtemp.
* call-agent.c (start_agent): Before starting a pipe server start
to connect to a server on the standard socket. Use PATHSEP
* call-dirmngr.c (start_dirmngr): Use PATHSEP.
* import.c: Include unistd.h for dup and close.
2004-12-20 16:17:25 +00:00
Werner Koch
18fd4964f6
* call-scd.c (init_membuf, put_membuf, get_membuf): Removed. We
...
now use the identical implementation from ../common/membuf.c.
* pksign.c (agent_pksign): Changed arg OUTFP to OUTBUF and use
membuf functions to return the value.
* pkdecrypt.c (agent_pkdecrypt): Ditto.
* genkey.c (agent_genkey): Ditto.
* command.c (cmd_pksign, cmd_pkdecrypt, cmd_genkey): Replaced
assuan_get_data_fp() by a the membuf scheme.
(clear_outbuf, write_and_clear_outbuf): New.
* membuf.c (put_membuf): Wipe out buffer after a failed realloc.
2004-12-20 08:32:56 +00:00
Werner Koch
e73100a940
* maperror.c (map_assuan_err_with_source): Oops, args were swapped.
...
* w32-pth.c (pth_init): Enable debugging depending on env var.
2004-12-19 13:38:24 +00:00
Werner Koch
3666a2859b
Avoid the " map_to_assuan_status called with no error source" diagnostic.
2004-12-18 10:22:10 +00:00
Werner Koch
69967b0412
A whole bunch of changes to allow building for W32.
2004-12-15 14:15:54 +00:00
Werner Koch
b50a587d8d
* asshelp.c (send_pinentry_environment) [W32]: Do not use ttyname.
...
* w32-pth.c, w32-pth.h: New.
* Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because
under W32 we need the w32 pth code from jnlib.
* misc.c (setup_pinentry_env) [W32]: Disabled.
2004-12-07 11:21:40 +00:00
Werner Koch
0a058ac53c
* exechelp.h, exechelp.c: New. Based on code from ../sm/import.c.
...
* gpgsm.c (run_protect_tool) [_WIN32]: Disabled.
* import.c (popen_protect_tool): Simplified by making use of
gnupg_spawn_process.
(parse_p12): Likewise, using gnupg_wait_process.
* export.c (popen_protect_tool): Ditto.
(export_p12): Ditto.
2004-12-06 18:28:56 +00:00
Werner Koch
237611cddf
Fixed copyright comments.
2004-12-03 18:38:23 +00:00
Werner Koch
4a73d94757
First take on a W32 port
2004-12-02 07:48:09 +00:00
Werner Koch
c7b97075aa
* b64enc.c: Include stdio.h and string.h
...
* gpgsm.c: New option --prefer-system-dirmngr.
* call-dirmngr.c (start_dirmngr): Implement this option.
* gpgconf-comp.c <dirmngr>: Add the proxy options.
<gpgsm>: Add --prefer-system-daemon.
2004-11-23 17:09:51 +00:00
Werner Koch
33310977ac
(simple_pwquery): Handle gpg-error style return
...
code for canceled.
2004-08-18 14:37:22 +00:00
Werner Koch
2e10dbd6c8
* Makefile.am (sm): Build kbx only if gpgsm is to be build.
...
* maperror.c: Removed header ksba.h. Not required anymore.
2004-07-20 18:41:49 +00:00
Werner Koch
feb40e2c6e
* xreadline.c: New. Based on the iobuf_read_line function.
...
* no-libgcrypt.c (gcry_realloc, gcry_xmalloc, gcry_xcalloc): New.
* gpgconf-comp.c (retrieve_options_from_program)
(retrieve_options_from_file, change_options_file)
(change_options_program, gc_component_change_options): Replaced
getline by read_line and test for allocation failure.
2004-06-14 08:32:07 +00:00
Werner Koch
438ece068b
* util.h (xtrycalloc_secure,xtrymalloc_secure): New.
2004-06-06 12:59:02 +00:00
Werner Koch
ac791c0a9a
* sysutils.c (disable_core_dumps): Only set the current limit.
...
(enable_core_dumps): New.
* gpgsm.texi (Esoteric Options): Add --debug-allow-core-dump.
* gpgsm.c: New option --debug-allow-core-dump.
* gpgsm.h (opt): Add member CONFIG_FILENAME.
* gpgsm.c (main): Use it here instead of the local var.
* server.c (gpgsm_server): Print some additional information with
the hello in verbose mode.
2004-05-11 09:54:52 +00:00
Werner Koch
5b9023c6e7
(copy_and_escape): Relaxed quoting.
2004-04-13 09:45:23 +00:00
Werner Koch
d3411b3277
(STATUS_NEWSIG): New.
2004-04-05 17:24:27 +00:00
Werner Koch
b541bbde6d
* dynload.h [__MINGW32__]: Define RTLD_LAZY.
2004-03-16 10:47:08 +00:00
Werner Koch
884483282f
Preparing for a release
2004-03-06 20:11:19 +00:00
Werner Koch
a1b487a17a
* protect-tool.c: New options --have-cert and --prompt.
...
(export_p12_file): Read a certificate from STDIN and pass it to
p12_build. Detect a keygrip and construct the filename in that
case. Unprotcet a key if needed. Print error messages for key
formats we can't handle.
(release_passphrase): New.
(get_passphrase): New arg PROMPTNO. Return the allocated
string. Changed all callers.
* minip12.c: Revamped the build part.
(p12_build): New args CERT and CERTLEN.
* simple-pwquery.c (agent_open): Don't mangle INFOSTR.
* export.c (export_p12, popen_protect_tool)
(gpgsm_p12_export): New.
* gpgsm.c (main): New command --export-secret-key-p12.
2004-02-19 16:26:32 +00:00
Werner Koch
103a442be9
* simple-pwquery.c (agent_open): Ignore an empty GPG_AGENT_INFO.
2004-02-18 16:58:00 +00:00
Werner Koch
ef5546a48b
Added STATUS_IMPORT_OK.
2004-02-17 15:04:28 +00:00
Werner Koch
f0d63ef75d
New. Based on code from ../sm/base64.c.
2004-02-10 19:27:54 +00:00
Marcus Brinkmann
0f7a19f3b0
2004-01-30 Marcus Brinkmann <marcus@g10code.de>
...
* Makefile.am (libcommon_a_SOURCES): Add xasprintf.c.
* miscellaneous.c (xasprintf): Moved to ...
* xasprintf (xasprintf): ... here. New file.
This allows to use xasprintf without sucking in gpg-error.
2004-01-30 12:37:09 +00:00
Werner Koch
eb24d8b751
Some minor bug fixes, new test utilities and started support for other
...
smartcard applications.
2004-01-27 16:40:42 +00:00
Werner Koch
6103066b17
(map_assuan_err): Prepared for a new error code.
2003-12-23 10:24:49 +00:00
Werner Koch
8ab35a7d26
* gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning.
...
* util.h [!HAVE_VASPRINTF]: Add printf format attribute to the
replacement function.
* miscellaneous.c (xasprintf): New.
2003-12-17 12:26:38 +00:00
Werner Koch
fbb2d9de15
Preparing for 1.9.2 release.
2003-11-17 12:20:11 +00:00
Werner Koch
ecba8bf1f5
Removed.
2003-11-14 11:36:04 +00:00
Werner Koch
9b32497c7e
(vasprintf): Also fixed the prototype.
2003-11-13 19:15:38 +00:00
Werner Koch
53272a25fc
(vasprintf): ARGS should not be a pointer. Fixed
...
segv on Solaris. Reported by Andrew J. Schorr.
2003-11-13 07:37:18 +00:00
Werner Koch
dba40e5e45
Mainly changes to adjust for the changed KSBA API.
2003-11-12 15:17:44 +00:00
Werner Koch
f21638c9e3
* util.h (gnupg_isotime_t): New.
...
(gnupg_copy_time): New.
* gettime.c (gnupg_get_isotime): New.
2003-10-31 12:11:57 +00:00
Werner Koch
4c66e94ff9
Merged most of David Shaw's changes in 1.3 since 2003-06-03.
2003-09-23 17:48:33 +00:00
Werner Koch
210b725748
(tty_fprintf): New.
...
(tty_print_string, tty_print_utf8_string2)
(tty_print_utf8_string): Made P argument const byte*.
2003-09-18 15:51:01 +00:00
Marcus Brinkmann
238a1b26b8
2003-08-20 Marcus Brinkmann <marcus@g10code.de>
...
* maperror.c (map_ksba_err): Map -1. Use gpg_err_make to set
the error source.
2003-08-20 17:23:23 +00:00
Timo Schulz
f099ed75b8
*** empty log message ***
2003-08-14 12:16:58 +00:00
Timo Schulz
2bf665e188
2003-08-14 Timo Schulz <twoaday@freakmail.de>
...
* dlfcn.h. New. W32 wrapper around the dynload mechanism.
2003-08-14 12:06:43 +00:00
Repo Admin
9ca4830a5b
This commit was manufactured by cvs2svn to create branch
...
'GNUPG-1-9-BRANCH'.
2003-08-05 17:11:04 +00:00
Repo Admin
82a17c9fb3
This commit was manufactured by cvs2svn to create branch
...
'GNUPG-1-9-BRANCH'.
2002-10-19 07:55:27 +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
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
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
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
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
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
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
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