Commit Graph

49 Commits

Author SHA1 Message Date
Dmitry Podgorny
82040403bf tests/hash: enable the test 2017-06-29 20:22:55 +03:00
Steffen Jaeckel
c074a6166c enable some warnings & fix 'em 2017-06-29 16:58:11 +02: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
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
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
Dmitry Podgorny
c80f99bc68 tests: add tests for string functions 2016-09-04 00:53:24 +03:00
Dmitry Podgorny
14066d0bff resolver: fix commit 171b285 2016-08-29 20:09:45 +03: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
e4a4bdd3a3 Implemented public SHA1 interface
A number of XEPs require SHA1. Publishing its interface helps user to
reduce number of dependencies.
2016-04-29 22:51:23 +00:00
Dmitry Podgorny
063f4deb22 Refactor autotools scripts
* Add --disable-tls
* Check for libxml2 if expat is not found
* Single coding style
2016-04-28 22:37:27 +00:00
Dmitry Podgorny
9d7b3394e7 Makefile.am: updated EXTRA_DIST
'make dist' prepares complete tarballs now.
2016-04-15 15:51:12 +00:00
Dmitry Podgorny
b7e308d057 Implemented resolver to replace sock_srv_lookup() 2016-02-20 00:15:08 +02:00
Dmitry Podgorny
a7c18ba6c7 autotools: choose correct library for res_query()
See #72 for further information.
2016-02-05 23:37:55 +00:00
Dmitry Podgorny
c291513663 Makefile: remove unused src/thread.c
See #72 for further information.
2016-02-05 21:58:00 +00:00
James Booth
6f612d4f4d Add -no-undefined to LDFLAGS 2015-12-14 00:28:37 +00: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
9b67acbfc4 tests: moved common routines to test.[ch] 2015-10-13 22:38:18 +03:00
Dmitry Podgorny
8fcac79301 Makefile.am: removed whitespaces 2015-10-12 20:51:24 +03:00
Dmitry Podgorny
8627fbb13f Implemented UUID generation (RFC4122)
This patch adds new API:
  * xmpp_uuid_gen()
2015-10-12 15:17:22 +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
Dmitry Podgorny
10656ead46 Introduced PRNG based on Hash_DRBG (NIST SP 800-90A)
This pseudo-random number generator solves problem with
platform-independent generation of randomized nonces.
Current implementation uses weak entropy, especially when
kernel.randomize_va_space = 0. But it can be improved by
adding new sources to xmpp_rand_reseed().

New internal API introduced:
  xmpp_rand_new
  xmpp_rand_free
  xmpp_rand
  xmpp_rand_bytes
  xmpp_rand_nonce
2015-10-07 19:35:42 +03:00
shooding
239d365ea1 fix Makefile.am to respect openssl_CFLAGS, which is useful if openssl is not installed in the default path, e.g. cross-compiling. 2015-01-14 18:06:35 +08: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
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
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
e2acd98612 autotools: added AC_CONFIG_MACRO_DIR 2014-09-30 16:00:36 +03:00
Dmitry Podgorny
529a9bed44 autotools: export only public API for dynamic library 2014-09-06 23:52:42 +03:00
Dmitry Podgorny
ea719cd02a SCRAM-SHA-1 authentication mechanism support 2014-08-31 00:44:08 +03:00
Fabian Freyer
46f371b311 autotools: cleaned up configure.ac and Makefile.am 2014-08-08 19:42:33 +03:00
James Booth
2dc357438b Use dependency on libstophe.la to enable parallel make 2014-08-07 21:03:04 +01:00
Christopher Meng
51816cd7a8 Correct the libtool file
LDFLAGS needs to be set, or the final library produced won't have dependency on the parser(expat/libxml2).

Someone has fixed the issue on SSL linking(ac886a156a), and the parser should be linked as well. Thus it will confuse the packager manager's dependency generator(At least RPM).

And, this commit also correct the usage of libtool file cflags and ldflags introduced from the commit mentioned above, as they are not the same terminology.
2014-08-07 17:17:34 +08:00
James Booth
ac886a156a Added SSL_LIBS to library CFLAGS 2014-08-06 21:55:39 +01:00
Dariusz Dwornikowski
50b5e5a05b Changes to .gitignore + cosmetic changes in Makefile.am 2014-05-09 16:41:36 +02:00
Dariusz Dwornikowski
9caaaccc33 Fixes in Makefile.am 2014-05-09 11:57:43 +02:00
Dariusz Dwornikowski
8a87a88904 Generating .so library 2014-04-25 19:23:04 +02:00
Jack Moffitt
aadc58711b Build fixes for OpenBSD.
Fixes #14. Issue discovered and fixes based on patch by Pierre-Emmanuel André.
2012-02-08 22:00:06 -07:00
Jack Moffitt
eb9d1eb760 Fix dist targets. 2012-02-07 23:32:37 -07:00
Jack Moffitt
9b50b56dbb Fix docs and build system. 2012-02-07 22:46:38 -07:00
Russell Zuck
d00a70a406 removed the line in Makefile.am that defines libstrophe_a_HEADERS that was causing ./configure to fail 2011-05-05 13:35:38 -06:00
Jack Moffitt
a02ce0151d A few build fixes. Found and suggested by David C. 2010-06-09 10:30:20 -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