aboutsummaryrefslogtreecommitdiffstats
path: root/common/sysutils.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-07-03ssh: Add support for Putty.Werner Koch1-0/+57
* agent/gpg-agent.c [W32]: Include Several Windows header. (opts): Change help text for enable-ssh-support. (opts, main): Add option --enable-putty-support (putty_support, PUTTY_IPC_MAGIC, PUTTY_IPC_MAXLEN): New for W32. (agent_init_default_ctrl): Add and asssert call. (putty_message_proc, putty_message_thread): New. (handle_connections) [W32]: Start putty message thread. * common/sysutils.c (w32_get_user_sid): New for W32 only * tools/gpgconf-comp.c (gc_options_gpg_agent): Add --enable-ssh-support and --enable-putty-support. Make the configuration group visible at basic level. * agent/command-ssh.c (serve_mmapped_ssh_request): New for W32 only. -- This patch enables support for Putty. It has been tested with Putty 0.62 using an Unix created ssh key copied to the private-keys-v1.d directory on Windows and with a manually crafted sshcontrol file. It also works with a smartcard key. May thanks to gniibe who implemented a proxy in Python to test the putty/gpg-agent communication. Signed-off-by: Werner Koch <[email protected]>
2013-04-23w32: Almost everywhere include winsock2.h before windows.h.Werner Koch1-11/+16
-- This is required by newer mingw toolchain versions which demand that winsock2.h is included before windows.h. Now, due to the use of socket definitions in pth.h we need to include winsock2.h also in pth.h, now pth.h is often included after an include of windows.h and thus the compiler spits out a warning. To avoid that we include winsock2.h at all places the compiler complains about.
2009-04-01Import/export of pkcs#12 now uses the gpg-agent directly.Werner Koch1-3/+5
Removed duplicated code (percent unescaping).
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-0/+2
2008-06-25g10/Marcus Brinkmann1-128/+0
2008-06-25 Marcus Brinkmann <[email protected]> * 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 <[email protected]> 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-19Robustness fix.Werner Koch1-9/+16
Add group to the --gpgconf-list.
2008-06-182008-06-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+4
* sysutils.c (TRANS_MAX): Bump up to 350 to be on the safe side.
2008-06-182008-06-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+118
* 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-02-14Poems for AllowSetForegroundWindow (W32)Werner Koch1-1/+16
2007-12-03Try to make sure that the standard descriptors are connected when callingWerner Koch1-1/+75
gpgsm.
2007-08-22Updated estream.Werner Koch1-2/+88
More changes for Windows.
2007-07-12Translate all file descriptors received from assuan.Werner Koch1-13/+25
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-25Fixed a problem in estream-printf.c.Werner Koch1-0/+29
Changes for Windows (gpgsm -k does now work). Minor cleanups.
2007-06-20[w32] gpg-agent is now started automagically by gpgsm.Werner Koch1-6/+49
2007-06-06First steps towards supporting W32.Werner Koch1-1/+1
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-206/+0
2005-06-07New debugging optionhs, updates to the manual.Werner Koch1-1/+1
2004-05-11* sysutils.c (disable_core_dumps): Only set the current limit.Werner Koch1-7/+30
(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-02-12minor cleanupsWerner Koch1-1/+2
2002-01-19* sysutils.c: New. This is the misc.c file from gnupg 1.0.6 withWerner Koch1-0/+206
the OpenPGP stuff removed. * sysutils.h: New.