aboutsummaryrefslogtreecommitdiffstats
path: root/common/sysutils.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-04-20Change license for some files in common to LGPLv3+/GPLv2+.Werner Koch1-5/+15
Having the LGPL on the common GnuPG code helps to share code between GnuPG and related projects (like GPGME and Libassuan). This is good for interoperability and to reduces bugs. * common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c * common/b64enc.c, common/convert.c, common/dns-cert.c * common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c * common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c * common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c * common/helpfile.c, common/homedir.c, common/http.c, common/http.h * common/i18n.c, common/init.c, common/init.h, common/iobuf.c * common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h * common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h * common/percent.c, common/pka.c, common/pka.h, common/session-env.c * common/session-env.h, common/sexp-parse.h, common/sexputil.c * common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c * common/ssh-utils.h, common/sysutils.c, common/sysutils.h * common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h * common/userids.c, common/userids.h, common/xasprintf.c: Change license to LGPLv3+/GPLv2+/
2012-01-25Port to npth.Marcus Brinkmann1-6/+6
* configure.ac: Don't check for PTH but for NPTH. (AH_BOTTOM): Remove PTH_SYSCALL_SOFT. (have_pth): Rename to ... (have_npth): ... this. (USE_GNU_NPTH): Rename to ... (USE_GNU_PTH): ... this. * m4/npth.m4: New file. * agent/Makefile.am, agent/cache.c, agent/call-pinentry.c, agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c, agent/trustlist.c, common/Makefile.am, common/estream.c, common/exechelp-posix.c, common/exechelp-w32.c, common/exechelp-w32ce.c, common/http.c, common/init.c, common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c, dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c, dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am, g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am, scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c, scd/scdaemon.c, tools/Makefile.am: Port to npth.
2011-04-12Add code for explicit selection of pooled A records.Werner Koch1-0/+11
To better cope with round robin pooled A records like keys.gnupg.net we need to keep some information on unresponsive hosts etc. What we do now is to resolve the hostnames, remember them and select a random one. If a host is dead it will be marked and a different one selected. This is intended to solve the problem of long timeouts due to unresponsive hosts. The code is not yet finished but selection works.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-15/+14
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2010-08-12Fix dirmngr problems on CE.Werner Koch1-2/+2
Add new dirmngr commands. Minor other fixes.
2010-06-10common/Marcus Brinkmann1-2/+4
2010-06-11 Marcus Brinkmann <[email protected]> * sysutils.c (translate_sys2libc_fd): Revert last change. (translate_sys2libc_fd_int): Revert last change. sm/ 2010-06-11 Marcus Brinkmann <[email protected]> * server.c (cmd_message) [HAVE_W32CE_SYSTEM]: Finish pipe.
2010-06-102010-06-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-4/+2
* sysutils.c (translate_sys2libc_fd) [HAVE_W32CE_SYSTEM]: Implement. (translate_sys2libc_fd_int) [HAVE_W32CE_SYSTEM]: Don't call translate_sys2libc_fd.
2010-06-082010-06-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+3
* Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS). (t_common_ldadd): Add $(LIBASSUAN_LIBS). * sysutils.c: Include <assuan.h>. (translate_sys2libc_fd_int): Cast to silence gcc warning. * iobuf.c: Include <assuan.h> (translate_file_handle): Fix syntax error.
2010-06-07Change OpenPGP test framework to run under the control of the agent.Werner Koch1-2/+7
2010-04-20common/Marcus Brinkmann1-3/+3
2010-04-20 Marcus Brinkmann <[email protected]> * logging.c (do_log_ignore_arg): New helper function. (log_string): Use it to remove ugly volatile hack that causes gcc warning. (log_flush): Likewise. * sysutils.c (gnupg_unsetenv) [!HAVE_W32CE_SYSTEM]: Return something. (gnupg_setenv) [!HAVE_W32CE_SYSTEM]: Likewise. * pka.c (get_pka_info): Solve strict aliasing rule violation. * t-exechelp.c (test_close_all_fds): Use dummy variables to silence gcc warning. kbx/ 2010-04-20 Marcus Brinkmann <[email protected]> * keybox-update.c [!HAVE_DOSISH_SYSTEM]: Include ../common/sysutils.h even then to silence gcc warning about missing declaration of gnupg_remove. tools/ 2010-04-20 Marcus Brinkmann <[email protected]> * gpgconf-comp.c (option_check_validity): Use dummy variables to silence gcc warning.
2010-04-14Fixed dependencies and a syntax errorWerner Koch1-2/+2
2010-04-14./autogen.sh --build-w32ce does now succeed.Werner Koch1-0/+11
2010-04-14Whole lot of changes to support CE.Werner Koch1-2/+109
2010-03-24More changes for CE. gpgsm does now build and run a keylisting.Werner Koch1-0/+24
2010-03-22More chnages to use estream. Add a way to replace the standardWerner Koch1-1/+1
descriptors.
2010-03-02First steps towards the W32CE portWerner Koch1-28/+57
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.