Dmitry Podgorny
57ed30b2bc
autotools: fixed build with old versions of automake
...
Automake-1.11 and some newer versions fail if m4/ doesn't exist. This
behaviour was changed to warning in version 1.13.2.
2015-01-03 01:01:07 +02:00
Codewalker
86f913b001
Fix use of snprintf (which does not exist on all platforms) in auth.c
...
by replacing it with xmpp_snprintf in order to be consistent with the
rest of the code. Also fixes compile error on MSVC.
2015-01-02 20:21:59 +02:00
Codewalker
f62d817c71
Fix error spam in event loop when no connections are open.
...
On Win32 at least, select() will immediately fail with an error if
there are no file descriptors to wait for (max == 0). In the simple case
of a single XMPP session and an event loop that runs only while the
connection is open, this isn't a problem, but doesn't work for more
complex scenarios.
Add some handling so that if xmpp_run_once is called and there are no
active connections, simply sleep for duration of the timeout and
return.
2014-12-24 12:08:05 -06:00
Codewalker
b753e6cf18
Fix a bug where select() could fail due to negative max socket fd.
...
Connection objects in the disconnected state should not have their
fd taken into account when determining the maximum socket fd number,
as they are not set in the bitmask with FD_SET, and their fd could
be anything, even a wildly large or small number.
2014-12-24 12:04:39 -06:00
Dmitry Podgorny
0fed8a55e4
examples: updated header in component.c
2014-12-15 14:47:47 +02:00
Dmitry Podgorny
d28520ba30
added examples/component to .gitignore
2014-12-15 14:42:50 +02:00
Milan Kubik
c52ba85846
XEP-0114: Added an example for component connection.
...
The example is based on basic.c program.
To run the example, a configured server is needed.
2014-12-15 14:42:50 +02:00
Dmitry Podgorny
3b906f6ceb
XEP-0114: minor fixes to auth.c
...
- src/sha1.c is used instead of openssl;
- xmpp_alloc/free should be used instead of malloc/free;
- coding style fixes.
2014-12-15 14:42:50 +02:00
Milan Kubík
5d76e052ec
XEP-0114: external component authentication
...
New API xmpp_connect_component() introduced.
2014-12-15 14:41:18 +02:00
Dariusz Dwornikowski
37a40dec23
Merge pull request #42 from tdi/master
...
Update headers not to mention LICENSE.txt but licenses directly Closes #31
2014-11-13 13:13:37 +01:00
Dmitry Podgorny
2093aac817
rpm: include shared library and pkg-config file
0.8.7
2014-10-31 04:13:49 +02:00
Kristofer White
29fa1bf27e
Updates to rpm/libstrophe.spec
2014-10-31 04:11:13 +02:00
Dmitry Podgorny
f364ed184b
autotools: fixed building of check_parser
...
By default libtool choose dynamic library for linking. Since non-public
API is hidden in libstrophe.so check_parser has been broken. As solution
libtool takes static libstophe.a now.
2014-10-30 23:17:16 +02:00
Dmitry Podgorny
40c9fe22b3
.gitignore: added files generated by make check
2014-10-30 23:16:40 +02:00
Dmitry Podgorny
c33c0a6998
hash: removed useless condition in hash_iter_next
...
Situation ((entry != NULL) && (i >= table->length)) can never happen.
2014-10-29 18:43:06 +02:00
Sergey Anufrienko
92e674e412
fix bug leading to losing of hash entries in hash_iter_next
2014-10-28 16:42:28 +03:00
Dmitry Podgorny
9f82aac8ce
sha1: compile-time endianness check for some compilers
...
Newer gcc and clang provide macro __BYTE_ORDER__.
2014-10-25 16:37:21 +03:00
Dmitry Podgorny
a3f1b83f3a
sha1: run-time check for endianness
...
WORDS_BIGENDIAN is never defined what breaks sha1 on big-endian
architectures. Instead, make run-time check.
2014-10-25 16:03:18 +03:00
Dariusz Dwornikowski
71f75b2e2e
Closes #31
2014-10-23 08:44:52 +02:00
Dmitry Podgorny
b23104f920
ChangeLog: set future version to 0.8.7
2014-10-21 10:23:12 +03:00
Dmitry Podgorny
057f9068c6
autotools: removed duplication in configure.ac
2014-10-21 10:21:55 +03:00
Fabian Freyer
3231214344
Added --with-pkgconfigdir
2014-10-08 18:13:32 +02:00
Fabian Freyer
55efc601cb
Refactored configure.ac, added pkg-config support
2014-10-08 18:13:31 +02:00
Fabian Freyer
dcbf3fb4d5
autotools: check for ssl.h if pkg-config failed
...
Some distros provides libssl without openssl.pc.
2014-09-30 16:02:43 +03:00
Fabian Freyer
e2acd98612
autotools: added AC_CONFIG_MACRO_DIR
2014-09-30 16:00:36 +03:00
Dmitry Podgorny
ee4f6d4e3c
ctx: fixed memory leak in xmpp_log()
...
Also fixed 2 bugs:
- only 1022 bytes of the message is printed when length is 1023.
- va_end() must be called after va_copy() otherwise we get
undefined behaviour according to C99.
2014-09-10 01:03:34 +03:00
Dmitry Podgorny
db14f2bd4a
auth: fixed memory leaks in _handle_scram_sha1_challenge()
2014-09-09 22:55:23 +03:00
Dmitry Podgorny
e768604533
autotools: fixed libstrophe's version
...
Repository contains tag 0.8.6, but version in configure.ac is still
0.8.5. So change it to the future release.
2014-09-09 20:54:01 +03:00
Dmitry Podgorny
1afcd485db
conn: [style] fixed spacing
2014-09-09 20:53:30 +03:00
Vitaly Takmazov
58613ea7f3
fix MSVC build
2014-09-08 13:41:30 +03:00
Dmitry Podgorny
bf5bf96e95
sha1: removed xmpp_ prefix from SHA1 symbols
...
Prefix was introduced in a981c0a as a workaround. Now, non-public API is
not exported, so this patch hides SHA1 symbols for dynamic library.
2014-09-07 00:02:14 +03:00
Dmitry Podgorny
529a9bed44
autotools: export only public API for dynamic library
2014-09-06 23:52:42 +03:00
Dmitry Podgorny
fd4f26e5d4
tls_schannel: [style] removed trailing spaces
2014-09-06 23:43:43 +03:00
Dmitry Podgorny
e7f87c652e
tls_schannel: [style] use LF for EOL, not CR+LF
2014-09-06 22:32:16 +03:00
Dmitry Podgorny
65d2535302
tls_openssl: removed unused openssl/rand.h
2014-09-06 22:31:53 +03:00
Dmitry Podgorny
a981c0a733
sha1: workaround for name collision with libcrypto
...
src/sha1.c is used only for internal purposes. So, just add prefix
xmpp_ to the SHA1 symbols.
2014-08-31 01:47:03 +03:00
Dmitry Podgorny
b08625ef4a
md5: MD5Transform should be static
2014-08-31 01:46:19 +03:00
Dmitry Podgorny
ea719cd02a
SCRAM-SHA-1 authentication mechanism support
2014-08-31 00:44:08 +03:00
Dmitry Podgorny
52dcd26b8c
sasl: don't use uninitialized variable
...
base64_decode() used uninitialized variable when unable to allocate memory.
Reported-by: Fabian Freyer <fabian.freyer@physik.tu-berlin.de >
2014-08-30 15:14:22 +03:00
Dmitry Podgorny
cf361d35fe
auth: removed useless static declaration
...
_handle_open_tls() declared as static function but not defined.
2014-08-26 14:53:15 +03:00
Dmitry Podgorny
077afae693
Added tags to .gitignore
...
This file is generated by ctags.
2014-08-26 14:26:43 +03:00
Damian Obernikowicz
783bad0897
Fixed memory leak
2014-08-20 00:36:59 +03:00
Dmitry Podgorny
d693cc6d15
autotools: check for expat.h if pkg-config failed
...
Some distros provides libexpat without expat.pc. So PKG_CHECK_MODULES
fails even if libexpat is installed. To fix this AC_CHECK_HEADER added
back.
0.8.6
2014-08-08 19:49:46 +03:00
Fabian Freyer
46f371b311
autotools: cleaned up configure.ac and Makefile.am
2014-08-08 19:42:33 +03:00
Fabian Freyer
97c6e6d8d4
autotools: removed libresov check for freebsd.
2014-08-08 19:40:01 +03:00
Dmytro Podgornyi
9af64e244e
examples/bot: removed non-standard strcpy_s/strcat_s
...
strncpy/strncat must be used instead. But in this case they don't make
sense, because string has enough space.
2014-08-08 18:27:02 +03:00
Dariusz Dwornikowski
90075b5feb
Merge pull request #29 from fabianfreyer/fix-readme-homebrew
...
Updated homebrew install instructions
2014-08-08 15:30:19 +02:00
Fabian Freyer
519edba5de
Added homebrew install instructions
2014-08-08 15:17:15 +02:00
Dariusz Dwornikowski
7255b49623
Merge pull request #16 from h0ru5/bot_fixed
...
patch for bot example to avoid crash when messages without type are sent
2014-08-08 08:35:51 +02:00
James Booth
2dc357438b
Use dependency on libstophe.la to enable parallel make
2014-08-07 21:03:04 +01:00