1. 28 Aug, 2015 3 commits
    • Werner Koch's avatar
      Release 2.3.0 · cdb1e648
      Werner Koch authored
      
      
      * configure.ac: Set LT version to C6/A6/R0.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      cdb1e648
    • Werner Koch's avatar
      Support Cygwin local sockets. · 6d4a8ee2
      Werner Koch authored
      
      
      * src/assuan-socket.c (cygwin_fdtable, cygwin_fdtable_cs): New.
      (is_cygwin_fd, insert_cygwin_fd, delete_cygwin_fd): New.
      (assuan_sock_init) [W32]: Init the CS.
      (assuan_sock_deinit) [W32]: Deinit the CS.
      (read_port_and_nonce): Add arg cygwin and detect Cygwin socket files.
      (_assuan_sock_set_flag): Add "cygwin" flag.
      (_assuan_sock_get_flag): Ditto.
      (do_readn, do_writen): New.
      (_assuan_sock_bind): Create a Cygwin socket file depending on a socket
      flag.
      (_assuan_sock_connect): Handle the cygwin socket protocol.
      (_assuan_sock_check_nonce): Ditto.
      --
      
      This code has not been tested.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      6d4a8ee2
    • Werner Koch's avatar
      Read up remaining lines in assuan_inquire after reaching MAXLEN · 5a52404c
      Werner Koch authored
      
      
      * src/assuan-inquire.c (assuan_inquire): Clear return args on error.
      Read up remaining lines after MAXLEN has been hit.
      --
      
      If we would stop immediately at MAXLEN, as we did, the client would
      continue to send data which the server may consider as new Assuan
      commands.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      5a52404c
  2. 25 Aug, 2015 1 commit
  3. 07 Aug, 2015 1 commit
    • Werner Koch's avatar
      Wipe the context before releasing as an extra safeguard. · b5cbf11c
      Werner Koch authored
      
      
      * src/assuan-defs.h (wipememory2, wipememory): New.  Taken from GnuPG.
      * src/assuan.c (assuan_release): Wipe the context.
      --
      
      The assuan context has buffers which may carry senitive information.
      These buffers could be wiped out with each flush but that is too
      expensive.  Thus we only wipe them when freeing the context.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      b5cbf11c
  4. 30 Jun, 2015 1 commit
    • Werner Koch's avatar
      Add assuan_sock_set_flag and assuan_sock_get_flag. · 87def94c
      Werner Koch authored
      
      
      * src/assuan-socket.c (_assuan_sock_set_flag): New.
      (assuan_sock_set_flag): New.
      (_assuan_sock_get_flag, assuan_sock_get_flag): New.
      * src/assuan.h.in (assuan_sock_set_flag): New.
      (assuan_sock_get_flag): New.
      * src/libassuan.def: Add them.
      * src/libassuan.vers: Add them.
      --
      
      These new functions are intended for a Cygwin socket emulation.  This
      commit merely introduces a generic framework.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      87def94c
  5. 26 Jun, 2015 2 commits
  6. 01 Jun, 2015 1 commit
  7. 12 May, 2015 2 commits
  8. 07 May, 2015 2 commits
  9. 30 Jan, 2015 1 commit
    • Werner Koch's avatar
      w32: Use -static-libgcc to avoid linking to libgcc_s_sjlj-1.dll. · 5cdc9c45
      Werner Koch authored
      
      
      * src/Makefile.am (extra_ltoptions): New.
      (libassuan_la_LDFLAGS): Use it.
      --
      
      Since gcc 4.8 there is a regression in that plain C programs may link
      to libgcc_s.a which has a dependency on libgcc_s_sjlj.dll.  This is
      for example triggered by using long long arithmetic on a 32 bit
      Windows (e.g symbol __udivdi3).
      
      This patch does not change anything right now but we add it anyway
      in case long long will ever be used.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      5cdc9c45
  10. 28 Jan, 2015 5 commits
  11. 27 Jan, 2015 2 commits
    • Werner Koch's avatar
      Fix WSAEADDRINUSE EADDRINUSE mismatch. · ab5264b2
      Werner Koch authored
      
      
      * src/w32-sock-nonce.inc.h (EADDRINUSE): Avoid redefining.
      * src/assuan-socket.c (_assuan_sock_bind): Set error to EADDRINUSE.
      --
      
      With the latest mingw-w64 EADDRINUSE is defined but to a different
      value than WSAEADDRINUSE.  We need to use EADDRINUSE becuase that is
      what applications expect.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      ab5264b2
    • Werner Koch's avatar
      Comment updates · 054f7c27
      Werner Koch authored
      --
      054f7c27
  12. 11 Dec, 2014 2 commits
  13. 28 Nov, 2014 2 commits
    • Werner Koch's avatar
      Do not allow LFs in the redirected name. · 0fce0171
      Werner Koch authored
      * src/assuan-socket.c (eval_redirection): Stop parsing at the first
      LF.
      --
      
      Avoiding LFs in file names is better for logging.
      0fce0171
    • Werner Koch's avatar
      Implement socket file redirection. · 1f99031c
      Werner Koch authored
      
      
      * configure.ac (AC_CHECK_FUNC): Check for stat.
      * src/assuan-socket.c (SUN_LEN): Add.
      (eval_redirection): New.
      (_assuan_sock_connect) [!W32]: Implement socket file redirection.
      (_assuan_sock_set_sockaddr_un): New.
      (assuan_sock_set_sockaddr_un): New.
      --
      
      This feature is useful to allow sockets with standard names even on
      file system which do not supports socket and to help with shared home
      directories.  For example to use GnuPG 2.1 with shared home
      directories one will be abale to do:
      
       rm ~/.gnupg/S.gpg-agent || true
       printf "%%Assuan%%\nsocket=${HOME}/.gnupg/S.gpg-agent_${HOSTNAME}\n" \
             > ~/.gnupg/S.gpg-agent
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      1f99031c
  14. 07 Nov, 2014 3 commits
  15. 17 Aug, 2014 5 commits
  16. 30 Jun, 2014 1 commit
  17. 16 Apr, 2014 1 commit
  18. 10 Jan, 2014 2 commits
    • Werner Koch's avatar
      Use the generic autogen.sh script. · a5a6aea1
      Werner Koch authored
      * autogen.rc: New.
      * Makefile.am (EXTRA_DIST): Add it.
      * autogen.sh: Update from GnuPG.
      a5a6aea1
    • Werner Koch's avatar
      Move helper scripts to build-aux. · a9c9aaca
      Werner Koch authored
      * compile, config.guess, config.rpath, config.sub, depcomp, ltmain.sh
      * doc/mdate-sh, doc/texinfo.tex, install-sh, missing: Move to
      build-aux/.
      * Makefile.am (EXTRA_DIST): Remove config.rpath - it is implicitly
      distributed.
      * configure.ac (AC_CONFIG_AUX_DIR): New.
      (AM_SILENT_RULES): New.
      a9c9aaca
  19. 06 Jan, 2014 1 commit
    • Werner Koch's avatar
      Update libtool and autogen.sh. · e78abe49
      Werner Koch authored
      --
      
      This is the version from current libgpg-error which already has the
      changes done here plus these:
      
        bf0d67db * Update libtool to support Android.
        dd05f379 * Fix libtool 2.4.2 to correctly detect .def files.
        6971fe55 * Update to libtool 2.4.2.
      e78abe49
  20. 03 Dec, 2013 1 commit
    • Werner Koch's avatar
      Add build support for ppc64le. · 46b6d97b
      Werner Koch authored
      * config.guess, config.sub: Update to latest version (2013-11-29).
      * m4/libtool.m4: Add patches for ppc64le.
      --
      
      We don't want to update libtool, thus we use patches supplied by IBM.
      46b6d97b
  21. 24 Jun, 2013 1 commit