- 02 Dec, 2015 3 commits
-
-
Eric Dorland authored
-
Eric Dorland authored
Upstream version 2.4.1
-
Eric Dorland authored
-
- 23 Nov, 2015 2 commits
-
-
Werner Koch authored
* configure.ac: Bump LT version to C7/A7/R1.
-
Werner Koch authored
* tests/socks5.c (main): Call gpgrt_init. Check for write and read errors. Allow building of some parts even w/o getaddrinfo.
-
- 21 Nov, 2015 2 commits
-
-
Werner Koch authored
* src/assuan-socket.c (TOR_PORT2): New. (_assuan_sock_wsa2errno): Map WSAECONNREFUSED. (socks5_connect): Fall back to TOR_PORT2. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Andre Heinecke authored
* src/assuan-socket.c: Add errno values not defined by mingw-w64 2.0
-
- 12 Nov, 2015 4 commits
-
-
Eric Dorland authored
-
Eric Dorland authored
-
Eric Dorland authored
Upstream version 2.4.0
-
Eric Dorland authored
-
- 03 Nov, 2015 4 commits
-
-
Werner Koch authored
--
-
Werner Koch authored
* configure.ac: Bump LT version to C7/A7/Ro. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/assuan-socket.c (socks5_connect): Use assuan_fd_t instead of int. (_assuan_sock_connect): Ditto. (_assuan_sock_connect_byname): Ditto. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* configure.ac: Require libgpg-error 1.17. (vasprintf): Remove ac_replace. * src/assuan-defs.h [!HAVE_VASPRINTF]: Remove replace wrapper. * src/assuan-logging.c (_assuan_log_control_channel): (_assuan_log_control_channel): s/asprintf/gpgrt_asprintf/. * src/debug.c (_assuan_debug): s/vasprintf/gpgrt_vasprintf/. (_assuan_debug_begin): Ditto. (_assuan_debug_add): Ditto. s/asprintf/gpgrt_asprintf/. -- We plan to move more code into libgpg-error/gpgrt anyway thus this is a good start which also fixes this bug: GnuPG-bug-id: 1477 Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 26 Oct, 2015 2 commits
-
-
Werner Koch authored
* tests/socks5.c (main): Use GET instead of HEAD
-
Werner Koch authored
* src/assuan.h.in (ASSUAN_SOCK_SOCKS): New. (ASSUAN_SOCK_TOR): New. (assuan_sock_connect_byname): New. * src/libassuan.def, src/libassuan.vers: Add that function. * src/assuan-socket.c (socks5_connect): Add args socksport, credentials, hostname, and hostport. Implement user/password authentication and domainname address type. Change callers accordingly. (_assuan_sock_connect_byname): New. (assuan_sock_connect_byname): New. * tests/socks5.c (main): Add options --byname, --user, and --pass. -- The assuan_sock_connect_byname may eventually be extended to work without Tor or SOCKS by using getaddrinfo. Or we move that all to libgpgrt (aka libgpg-error). Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 18 Oct, 2015 1 commit
-
-
Werner Koch authored
* src/assuan-socket.c: Include netinet/in.h and arpa/inet.h. (SOCKS_PORT, TOR_PORT): New constants. (tor_mode): New variable. (_assuan_sock_set_flag): Add flags "tor-mode" and "socks". (_assuan_sock_get_flag): Ditto. (do_readn, do_writen): Always build. (socks5_connect): New. (use_socks): New. (_assuan_sock_connect): Divert to socks5_connect if requested. * tests/socks5.c: New. * configure.ac (AH_TOP): Define GPGRT_ENABLE_ES_MACROS. (AC_CHECK_FUNC): Check for getaddrinfo. * tests/Makefile.am (testtools): New. Add socks5. (AM_LDFLAGS): Add -no-install for easier debugging. -- A future extension might be a new assuan_sock_direct_connect call takes the hostname as a string and returns a new socket. This allows the proxy to do the resolving. However, in the long term these socket wrapper should be moved to libgpgrt (aka libgpg-error). Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 08 Sep, 2015 8 commits
-
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
Upstream version 2.3.0
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
- 28 Aug, 2015 4 commits
-
-
Werner Koch authored
-
Werner Koch authored
* configure.ac: Set LT version to C6/A6/R0. Signed-off-by:Werner Koch <wk@gnupg.org>
-
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:Werner Koch <wk@gnupg.org>
-
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:Werner Koch <wk@gnupg.org>
-
- 25 Aug, 2015 1 commit
-
-
Werner Koch authored
* configure.ac (BUILD_TIMESTAMP): Set to "<none>" by default. -- This is based on libgpg-error commit d620005fd1a655d591fccb44639e22ea445e4554 but changed to be disabled by default. Check there for some background. Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 07 Aug, 2015 1 commit
-
-
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:Werner Koch <wk@gnupg.org>
-
- 30 Jun, 2015 1 commit
-
-
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:Werner Koch <wk@gnupg.org>
-
- 26 Jun, 2015 2 commits
-
-
Werner Koch authored
* src/assuan-defs.h (_assuan_error): Use error source Assuan if no CTX is given. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/assuan-buffer.c (assuan_sendfd): Check that CTX is not NULL. (assuan_receivefd): Ditto. -- This change is to align the behaviour with that of assuan_send_data. Suggested-by: Andre Heinecke. Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 01 Jun, 2015 1 commit
-
-
Neal H. Walfield authored
* doc/assuan.texi (assuan_inquire): Fix and improve description of this function.
-
- 22 May, 2015 4 commits
-
-
Eric Dorland authored
-
Eric Dorland authored
-
Eric Dorland authored
-
Eric Dorland authored
Upstream version 2.2.1
-