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
Tim Nieradzik
7ad42add73
test_string: Fix failing strdup test
...
`rc` may be initialised with -1.
2016-09-05 09:11:55 +03:00
Dmitry Podgorny
233094af10
tests/parser: include string.h explicitly
2016-09-04 03:35:28 +03:00
Dmitry Podgorny
c80f99bc68
tests: add tests for string functions
2016-09-04 00:53:24 +03:00
Dmitry Podgorny
f351d62355
tests/jid: fixed crash on QNX
...
QNX version of printf() doesn't check whether a string is valid or not.
Passing NULL pointer leads to a crash inside strlen(). Fix this with a
wrapper _s() which returns "<NULL>" for instead of NULL pointer.
Add checks before strcmp() to avoid crash in case of unexpected result
of the jid functions.
2016-09-02 19:57:25 +03:00
Dmitry Podgorny
b6fcb7035d
rand: replace time() with time_stamp() as entropy source
...
time_stamp() has bigger precision.
2016-09-02 17:38:42 +03:00
Dmitry Podgorny
2b2de142ef
tests/resolver: fix the test and add new testcase
...
It was broken because of changed API.
2016-09-02 12:45:28 +03:00
Dmitry Podgorny
14066d0bff
resolver: fix commit 171b285
2016-08-29 20:09:45 +03:00
Dmitry Podgorny
2ffb278aa4
Implemented public Base64 interface
...
Base64 is required for vCard avatars. It will also be useful for
an authentication mechanism with future xmpp_connect_raw() interface.
2016-04-30 18:09:01 +00:00
Dmitry Podgorny
7f57e3987a
tests/resolver: don't link against -lstrophe
2016-04-30 16:40:10 +00:00
Dmitry Podgorny
c62d1d64ab
tests/ctx: enable the test
2016-04-30 16:37:18 +00:00
Dmitry Podgorny
c9a5cba113
tests/jid: enable the test
2016-04-30 16:15:45 +00:00
Dmitry Podgorny
565ace7982
tests/snprintf: undef HAVE_SNPRINTF and HAVE_VSNPRINTF
2016-04-29 22:51:23 +00:00
Dmitry Podgorny
6d70bf4b0d
tests/sha1: fixed indentation
2016-04-13 12:40:42 +00:00
Dmitry Podgorny
3aafeef215
res_query_dump: added comment with printable symbols
2016-04-13 12:38:53 +00:00
Dmitry Podgorny
b7e308d057
Implemented resolver to replace sock_srv_lookup()
2016-02-20 00:15:08 +02:00
Dmitry Podgorny
98c8afd5fc
tests: updated SHA1 test
...
* added new testcase with 128 'a'
* added check that SHA1 functions don't change original strings
2015-12-04 09:57:09 +02:00
Dmitry Podgorny
331db6f565
tests: added test vectors for MD5
2015-10-18 03:05:38 +03:00
Tristan Le Guern
a61dba0c13
Move declarations of xmpp_{v,}snprintf.
...
Use HAVE_SNPRINTF and HAVE_VSNPRINTF to conditionnaly use an internal
version of these functions or use the libc one.
2015-10-16 14:48:10 +03:00
Dmitry Podgorny
60cfcc72e6
snprintf: moved self-test to a separated test
2015-10-16 00:05:26 +03:00
Dmitry Podgorny
e41b7a06e4
sha1: moved self test to separated test
2015-10-15 00:35:19 +03:00
Dmitry Podgorny
e0a13ecdaa
tests/base64: updated and added to Makefile.am
2015-10-13 23:19:25 +03:00
Dmitry Podgorny
fc856f36a3
tests/parser: fixed gcc warning
...
tests/check_parser.c:59:9: error: variable ‘ret’ set but not used
2015-10-13 22:39:27 +03:00
Dmitry Podgorny
9b67acbfc4
tests: moved common routines to test.[ch]
2015-10-13 22:38:18 +03:00
Dmitry Podgorny
e6bbfa7a62
Updated license in new files
2015-10-10 01:11:08 +03:00
Dmitry Podgorny
e70e755e19
tests: added UT for SCRAM-SHA1 functions
2015-10-07 19:42:16 +03:00
Dmitry Podgorny
5e37de2b63
tests: added test vectors for Hash_DRBG
2015-10-07 19:35:42 +03:00
James Booth
154b70ed2c
Merge remote-tracking branch 'cwtitan/namespace'
2015-03-26 20:44:10 +00:00
Dariusz Dwornikowski
71f75b2e2e
Closes #31
2014-10-23 08:44:52 +02:00
Jack Moffitt
370a371800
Dual licensed libstrophe under MIT and GPLv3.
...
Updated copyright headers.
2009-06-15 15:26:10 -06:00
Jack Moffitt
3fd7515dcf
Abstracted XML parser library and switched to autotools building.
...
expat is still the default parser, but libxml2 can also be used
via an option to the configure script. New parsers can easily be
added by implementing a parser_foo.c that uses the interface defined
in parser.h.
2009-04-14 13:47:20 -06:00
Jack Moffitt
359c47ffdc
Another pass at C++ification.
2005-08-02 20:18:14 +00:00
Ralph Giles
76e0c6a4b3
Add the 'libstrophe' name to the copyright headers.
2005-06-15 16:58:11 +00:00
Jack Moffitt
0d311771bb
Code now builds in Win32 and tests pass. Example code seems to fail though, still tracking that down.
2005-06-15 05:17:07 +00:00
Ralph Giles
72699eff45
Rename xmpp.h to strophe.h and apply the name changes to the internal
...
header multiple include protection.
2005-06-14 14:25:42 +00:00
Ralph Giles
f27235b862
Move the xmpp library to its new name.
2005-06-14 14:10:31 +00:00