| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
* doc/assuan.texi: fix documentation
--
Reading up on assuan to create python bindings uncovered a few bugs in
the documentation.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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: Werner Koch <[email protected]>
|
|
|
|
| |
--
|
|
|
|
|
|
| |
* configure.ac (AM_INIT_AUTOMAKE): Add serial-tests.
* src/Makefile.am (INCLUDES): Rename to AM_CPPFLAGS and remove the
nonexistent ../include/.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/assuan-socket-connect.c (assuan_socket_connect_fd): Map fd to
assuan_fd_t.
--
This function is actually not used by GnuPG. The function should have
taken an assuan_fd but given that it did not we use our usual mapping
from Windows libc fds to an assuan fd.
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
* src/debug.h: Remove traling ", 0" expression part where not useful.
--
gcc 4.9 detected this. Probably taken from gpgme but used
differently.
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
| |
--
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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: Werner Koch <[email protected]>
|
|
|
|
| |
--
|
|
|
|
| |
--
|
|
|
|
|
|
| |
* configure.ac: Set LT version to C5/A5/R0.
(AM_INIT_AUTOMAKE): Add options.
* Makefile.am (AUTOMAKE_OPTIONS): Remove.
|
|
|
|
|
|
|
|
| |
* src/assuan-socket.c (eval_redirection): Stop parsing at the first
LF.
--
Avoiding LFs in file names is better for logging.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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: Werner Koch <[email protected]>
|
|
|
|
| |
--
|
|
|
|
| |
* configure.ac: Set LT version to C4/A4/R3.
|
|
|
|
|
|
|
| |
* src/system-w32.c (__assuan_read): Retry using select. Map
WSAECONNRESET to EPIPE.
(__assuan_write): Retry using select.
* src/assuan-buffer.c (readline) [W32]: Return EOF instead of EPIPE.
|
|
|
|
| |
--
|
|
|
|
| |
* configure.ac: Set LT version to C4/A4/R2.
|
|
|
|
|
| |
* autogen.sh: Add --find-version stuff. Taken from GnuPG.
* configure.ac: Change accordingly
|
|
|
|
| |
--
|
|
|
|
|
|
|
|
|
| |
* src/context.c (assuan_set_error): Do not pass NULL for %s in the
trace function.
--
This likely fixes
GnuPG-bug-id: 1659
|
|
|
|
| |
* src/debug.c (_assuan_debug): Check wether CAT want to be logged.
|
|
|
|
|
|
|
|
|
| |
* src/debug.h (TRACE_ERR): Check CTX before a deref.
* src/assuan-defs.h (_assuan_error): Turn into an inline function and
check CTX before a deref.
--
Found by Hans-Christoph Steiner with cppcheck.
|
|
|
|
|
|
| |
* autogen.rc: New.
* Makefile.am (EXTRA_DIST): Add it.
* autogen.sh: Update from GnuPG.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
--
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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
--
|
|
|
|
| |
* configure.ac: Set LT version to C4/A4/R1.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac (have_dosish_system): Set for W64.
* src/assuan-defs.h (SOCKET2HANDLE, HANDLE2SOCKET): Add versions for
W64.
* src/assuan-handler.c (assuan_command_parse_fd) [W64]: Use strtoull
to parse an FD.
--
Note that these changes are not complete but merely sufficient to
allow building of GpgEX.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ltmain.sh: Prefix the SO number for W64 with a "6".
--
We need to stick to libtool 2.4.2 anyway, thus we take the easy way
and hack libtool instead of adding "-release 6" to the Makefile. This
also avoids an extra dash before the 6 and thus yields a prettier name
than the one produced by the -release option. The header files and
def files are supposed to be identical for w32 and w64 thus we don't
need to do any special code for them.
Having a different namespace for 64 bit DLLs is such a good idea that
I hope this or a similar feature will be provided by future libtool
versions.
|
| |
|
|
|
|
| |
--
|
|
|
|
| |
* configure.ac: Bump LT version to C4/A4/R0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/assuan.c (assuan_check_version): New.
(digitp, parse_version_number, parse_version_string)
(compare_versions): New. Taken from libksba.
* configure.ac (VERSION_NUMBER): New ac_subst.
* src/Makefile.am (assuan.h): Pass VERSION and VERSION_NUMBER to
mkheader.
* src/assuan.h.in (ASSUAN_VERSION, ASSUAN_VERSION_NUMBER): New macros.
(assuan_check_version): New prototype.
* src/libassuan.def, src/libassuan.vers: Add assuan_check_version.
* src/mkheader.c (write_special, main): Support version and
version_number.
* tests/version.c: New.
* tests/Makefile.am (TESTS): Add version.
--
All our other libs have a version number check, thus we should have
one in Libassuan as well.
|
|
|
|
|
|
|
|
| |
* src/system-w32.c: Do not include windows.h here.
--
winsock2.h must now be included before windows.h. This is already
properly handled by assuan-defs.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac (BUILD_TIMESTAMP): Use an ISO date string on all
platforms and ac_define it.
* src/sysutils.c (_assuan_sysutils_blurb): But revision and build date
into the binary.
--
An ISO date is for sure better than the old C standard time format.
An almost all platforms this should work. We don't print the seconds
to be compatible with the way we did in on Windows. However we print
in UTC.
|
|
|
|
|
|
|
|
|
|
|
| |
* src/system-w32ce.c (__assuan_write, __assuan_recvmsg)
(__assuan_sendmsg, __assuan_waitpid): Make functions global.
* tests/ce-server.c: Fix syntax error (s/#else/#endif)
--
This patch fixes some cruft which has accidentally been introduced
over time. The code builds, but due to a lack of ready to use CE box,
I was not able to test it.
|
|
|
|
|
|
|
|
| |
* autogen.sh (build-w32): Include {amd64,w32_toolprefixes).
--
Note that despite of the support in autogen.sh and possible other
places, there is no W64 support yet.
|
|
|
|
|
|
| |
* configure.ac: Update to modern git version checking. Remove svn
support.
* src/versioninfo.rc.in: Update copyright years.
|
|
|
|
| |
* m4/gpg-error.m4: Update from current gpg-error git.
|
|
|
|
|
|
|
|
|
| |
* compile, config.guess, config.rpath, config.sub, depcomp,
* install-sh, mkinstalldirs: Update to current versions from gnulib.
--
Some of them have not been updated here in over 8 years, time to fix
that.
|
|
|
|
|
| |
* src/client.c (assuan_transact): Send an CAN after an error return
from the inquiry callback.
|
|
|
|
|
|
|
| |
* configure.ac: check for getpeerucred() which (Open)Solaris/SunOS
uses.
* src/assuan-socket-server.c (accept_connection_bottom): make use
of getpeerucred().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: check for LOCAL_PEEREID and getpeereid().
* src/assuan-socket-server.c (accept_connection_bottom): make use of
LOCAL_PEEREID and getpeereid().
--
For use with assuan_get_peercred(). Note that getpeereid() does not
set the PID member. LOCAL_PEEREID is checked before getpeereid()
since NetBSD has both of these. SO_PEERCRED is still checked first.
[Second revision]
This revision adds support for LOCAL_PEEREID which NetBSD uses. Its
tested against NetBSD 6.0 and may work without problems with earlier
versions. FreeBSD uses getpeereid() which does not have PID support.
Recent OpenBSD versions do support SO_PEERCRED and old versions have
getpeereid() but also may have LOCAL_PEEREID (not sure).
|
|
|
|
|
| |
* configure.ac (mmm4_revision): Use git rev-parse. Print version
information at the end of a configure run.
|
|
|
|
| |
* autogen.sh: Remove option -c from chmod.
|
|
|
|
| |
Signed-off-by: W. Trevor King <[email protected]>
|