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
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.
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.
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.