Dmitry Podgorny
da8dc2d3cb
auth: don't delete stream:error handler
...
Instead, keep the same handler until connection is disconnected. Stream
is opened 3 times during usual workflow. Deleting/restoring the handler
every time brings more places for possible mistakes.
2017-06-29 20:13:16 +03:00
Dmitry Podgorny
182695d1ca
resolver: fix type mismatch in windows part
...
Backported from NetXMS project.
2017-06-29 20:00:25 +03:00
Dmitry Podgorny
0d039f7192
parser/libxml2: fix missed {} for multi-line block
2017-06-29 19:33:26 +03:00
Dmitry Podgorny
ebe97e8f2a
travis-ci: don't use custom CFLAGS
...
Makefile.am provides -Wall and -Werror now.
2017-06-29 19:00:54 +03:00
Dmitry Podgorny
9505cace5e
ctx: don't check whether log level is less than XMPP_LEVEL_DEBUG
...
XMPP_LEVEL_DEBUG is always 0.
2017-06-29 18:49:54 +03:00
Dmitry Podgorny
8ef027c54a
ctx: fix indentation in xmpp_ctx_set_timeout()
2017-06-29 18:49:54 +03:00
Dmitry Podgorny
0bdb5f1d5b
examples/vcard: fix warn_unused_result related to fwrite()
2017-06-29 18:49:54 +03:00
Steffen Jaeckel
49e7572059
fix function-pointer storage
...
the C standard says that you're not allowed to cast a function pointer to
something else
6.3.2.3 §8:
A pointer to a function of one type may be converted to a pointer
to a function of another type and back again
2017-06-29 16:58:11 +02:00
Steffen Jaeckel
c074a6166c
enable some warnings & fix 'em
2017-06-29 16:58:11 +02:00
Steffen Jaeckel
4c504ee42b
add xmpp_ctx_set_timeout()
2017-06-29 16:58:11 +02:00
Steffen Jaeckel
f226891520
fix openssl memory leaks
2017-06-29 16:54:41 +02:00
Dmitry Podgorny
43a68479ad
ChangeLog: mention about disabled insecure SSL/TLS
...
See f47609c1f0
2017-06-26 01:09:24 +03:00
Dmitry Podgorny
1e422a70dd
crypto: add public function xmpp_sha1_digest()
...
For example, XEP-0115 requires binary digest to be base64-encoded.
Add short function to simplify such a digest computation for a single
buffer. This function doesn't allocate memory. Therefore, it can't
fail and doesn't require strophe context (xmpp_ctx_t).
2017-06-26 00:56:03 +03:00
Dmitry Podgorny
2a474bd809
tls/schannel: fix memory leak
...
Assume InitializeSecurityContext() doesn't change pszTargetName.
Reported by @youzpp in metajack/libstrophe#35 .
2017-06-25 22:12:16 +03:00
Dmitry Podgorny
704c157d24
hash: don't use signed types during index calculation
...
Reported by @ITikhonov in pasis/libcouplet#10
2017-06-25 21:59:27 +03:00
Dmitry Podgorny
d8528b597c
parser/libxml2: shorten parser_feed()
2017-06-25 21:19:15 +03:00
Dmitry Podgorny
c149caa32a
examples: add vcard example
...
New exmaple shows how to request vCard and handle result. See XEP-0054
for details.
PHOTO element is stored to an image file.
2017-06-23 22:09:28 +03:00
Dmitry Podgorny
fa63aac731
auth: delete error handler before re-opening stream
2017-06-23 21:51:44 +03:00
Dmitry Podgorny
ba40bf1040
handler: fix possible corruption of handler lists
...
User's handler may delete other handlers. If deleted handler is the next
or the previous to the running one it leads to a list corruption.
Don't cache previous/next items when we walk through a handler's list.
2017-06-23 21:47:10 +03:00
Alexander Krotov
2f9bcfe145
Test xmpp_jid_bare
2017-06-23 20:00:41 +03:00
Alexander Krotov
b957213fdc
Simplify xmpp_jid_{bare,domain,resource}
2017-06-23 19:55:12 +03:00
Alexander Krotov
f51b01a5b3
Remove unused mutex wrappers
2017-06-23 17:58:42 +03:00
Dmitry Podgorny
d2efc85ce3
Makefile.am: refactoring
...
Put filenames to separated lines to simplify adding/removing new files.
Add missed files to EXTRA_DIST.
2017-06-23 17:00:26 +03:00
Dmitry Podgorny
940d76e9e2
rpm: update dependencies
2017-06-23 16:57:27 +03:00
Dmitry Podgorny
59eb8d67ed
ChangeLog: mention significant changes since 0.9.1
2017-06-23 16:55:31 +03:00
Dmitry Podgorny
78592650e5
tls/schannel: reflect changes of the tls interface
...
tls_new() accepts xmpp_conn_t object now.
2017-06-23 15:37:09 +03:00
Alexander Krotov
92d006a41b
Disable hostname verification for pre-1.0.2 OpenSSL
2017-06-23 13:45:24 +03:00
Alexander Krotov
0741820711
Verify certificate hostname when using OpenSSL ( fixes #100 )
2017-06-23 03:00:26 +03:00
Alexander Krotov
c9ddc2b7ef
Make tls_new accept xmpp_conn_t
2017-06-23 02:59:05 +03:00
Alexander Krotov
f776b34d8c
Fix tls_openssl.c indentation
2017-06-22 19:44:41 +03:00
Alexander Krotov
f47609c1f0
Disable insecure SSL/TLS versions
2017-06-20 22:44:39 +03:00
Alexander Krotov
443b4d3116
Use more variables in bot.c message_handler()
...
to avoid calling the same function twice.
2017-06-20 01:38:53 +03:00
Steffen Jaeckel
4cf7a0cb79
split travis build into multiple jobs
2017-04-04 18:25:27 +02:00
Dmitry Podgorny
9a5fe8b96d
handler: allow to add same handler callback with different userdata
...
According to #97 . A single callback can distinguish different cases
using the userdata. Current implementation doesn't allow to delete a
particular couple (handler, userdata), but rather deletes all handlers
regardless of the userdata.
2017-03-24 22:38:16 +02:00
Dmitry Podgorny
80a7ea0b7c
Fix spacing in handler.c
2016-12-02 16:56:45 +02:00
Dmitry Podgorny
1092447edf
Fix spacing in c++ files
2016-09-27 15:40:08 +03:00
Dmitry Podgorny
d2c1daf4d5
Fix spacing in ctx.c and common.h
2016-09-27 15:14:38 +03:00
Dariusz Dwornikowski
d1a41c9d7d
Fixed occurred spelling error fixes : #96
2016-09-23 08:31:31 +02:00
Dmitry Podgorny
9931ad4fa2
Updated ChangeLog
...
- Fixed bug #95 (DNS lookup failing on Cygwin)
- Removed dependency on the check package
0.9.1
2016-09-16 01:10:25 +03:00
Dmitry Podgorny
5a1f282292
README: remove mention of the check dependency
2016-09-16 01:07:21 +03:00
Dmitry Podgorny
b360316b8b
tests/resolver: added test case with pointers
2016-09-16 01:01:43 +03:00
Dmitry Podgorny
c6aaa96dcb
resolver: fixed few bugs
...
Fixed a bug which caused resolver to return a wrong target name with a
missed ".". The bug was in the part of message_name_get() where a pointer
is handled.
Added checks for buffer overflow.
Added 2 test cases to check a corner case and error handling.
2016-09-15 19:26:10 +03:00
Dmitry Podgorny
f0706f56c4
tests: remove dependency on check package
...
Only check_parser depends on the check. Convert it. All tests will be
rewritten at once when new testsuite is implemented.
2016-09-15 12:46:11 +03:00
James Booth
4ef2740c36
Update version to 0.9.1
2016-09-14 19:53:25 +01:00
Dmitry Podgorny
5e0330f0ad
libstrophe 0.9.0
...
See ChangeLog for significant changes or follow the link to see all the
changes:
https://github.com/strophe/libstrophe/compare/0.8.8...strophe:0.9.0
0.9.0
2016-09-14 18:55:48 +03:00
Dmitry Podgorny
717a19859f
doc: describe parameters to suppress doxygen warnings
2016-09-14 18:54:40 +03:00
Dmitry Podgorny
209f21905e
Update Doxyfile
...
Updated Doxyfile with doxygen -u. Removed DOT_FONTNAME. Changed version
to 0.9.
2016-09-14 18:52:20 +03:00
Dmitry Podgorny
38aa05624d
Add warning about disabled TLS in build-android.sh
...
OpenSSL or BoringSSL will be added to build-android.sh in the future.
But for now users need to build libstrophe with openssl manually if
they use ndk-build system.
2016-09-14 18:12:47 +03:00
Dmitry Podgorny
136055024e
conn: update documentation for xmpp_connect_raw()
2016-09-14 17:49:10 +03:00
Michael Vetter
8d3f3d837a
Remove trailing dots from changelog
...
Without the trailing dots it looks more coherent to me.
2016-09-14 14:21:18 +02:00