aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeLines
* tests: fix build warnings in jabber_buddy_by_jid testsdequis2017-10-05-2/+2
|
* The protocol argument to socketpair was incorrect.Anthony Molinaro2017-03-12-1/+1
| | | | | | | | | For some reason the protocol was being set to PF_UNIX which is incorrect. According to the man pages and other sources (like Stevens Unix Network Programming), the protocol should be '0' which will use the default for the given domain. This appears to actually work under Linux (which appears to allow 0 or 1 as the protocol without error), but fails under Mac OSX (which only allows 0).
* Add --verbose configure option to control verbose build outputTim Harder2017-03-12-2/+2
| | | | Defaults to disabled to maintain the status quo.
* word_wrap: truncate utf8 safelydequis2016-11-12-0/+5
|
* tests: don't require pam and ldap to testdequis2016-11-12-1/+1
|
* jabber: handle nulls in jabber_compare_jiddequis2016-08-23-0/+2
| | | | | As far as I can see this isn't remotely exploitable (and if it were it would be just DoS of the child process), but i'm still looking into it
* ldap authentication backendDennis Kaarsemaker2016-03-25-1/+1
| | | | | | We only support the openldap scheme for now, with users that are posixAccounts. Moreover, as the plugin cannot be configured directly, you must configure libldap correctly in /etc/openldap/ldap.conf
* Linux pam authentication backendDennis Kaarsemaker2016-03-25-1/+1
| | | | This backend authenticates users against pam.
* Authentication: scaffolding for multiple authentication backendsDennis Kaarsemaker2016-03-25-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Instead of always putting users passwords in XML files, allow site admins to configure a different authentication method to integrate authentication with other systems. This doesn't add any authentication backends yet, merely the scaffolding. Notably: - Password checking and loading/removing from storage has been decoupled. A new auth_check_pass function is used to check passwords. It does check against the configured storage first, but will handle the authentication backends as well. The XML storage merely signals that a user's password should be checked using an authentication backend. - If unknown-to-bitlbee users identify using an authentication backend, they are automatically registered. - If an authentication backend is used, that fact is stored in the XML file, the password is not. Passwords are also stored unencrypted in this case, as the password used to encrypt them can change underneath us. - configure and Makefile changes for the backend objects
* hipchat: 'chat add hipchat "channel name"' now tries to guess the JIDdequis2015-11-23-0/+20
| | | | | | | | | | | It's basically prepending the organization id, appending the default MUC host from the success packet, and generating a slug based on the name for the middle part, which is replacing a few characters with underscores and doing a unicode aware lowercasing. Includes tests, which are useless other than validating the initial implementation with the test vectors that i already tested manually. Guaranteed to detect zero breakages in the future. Good test code.
* tests: Define a stub sighandler_shutdown_setup() to allow linkingdequis2015-10-30-0/+5
| | | | | | I'm sure that some day the tests will be useful, not just an annoyance. Some day.
* check_jabber_util: adapt to new behavior of GET_BUDDY_EXACTdequis2015-10-22-1/+1
| | | | | | | I can't believe the tests did something! Returning the bare jabber_buddy when asking for GET_BUDDY_EXACT is now acceptable, since the google talk typing commit.
* Move CAP commands to irc_cap.c; use enum for flagsdequis2015-09-30-1/+1
|
* typofix - https://github.com/vlajos/misspell_fixerVeres Lajos2015-08-07-2/+2
|
* Reindent everything to K&R style with tabsIndent2015-02-20-469/+476
| | | | | | | Used uncrustify, with the configuration file in ./doc/uncrustify.cfg Commit author set to "Indent <please@skip.me>" so that it's easier to skip while doing git blame.
* Fix compiler warnings on Cygwin and Mac OS X.Jason Copenhaver2015-01-16-2/+2
| | | | | | | | * Don't use PIE/PIC on Cygwin/Darwin unless specified as these platforms don't support it. * Cleanup warnings for 'make check' build. * Fix the type issue for getsockopt calls. * Fix enum warnings in Yahoo libs on Mac OS X.
* Add limit param to split_command_parts(), fix twitter quotes bugdequis2014-07-24-0/+45
| | | | Only took me a few months to write. I even added a test case.
* Added jabber_compare_jid to fix JID comparison case sensitivityGRMrGecko2014-07-24-0/+11
|
* Fix building of testsuite.Jelmer Vernooij2014-04-20-2/+3
|
* Fix compiler warnings in testsuite/.Jelmer Vernooij2014-04-20-10/+10
|
* Fix check_nick tests (Ticket #1102)radhermit2014-02-27-3/+4
|
* Rename SRCDIR directory to _SRCDIR_. I guess #907 was caused by SRCDIRWilmer van der Gaast2012-02-11-3/+3
| | | | | unexpectedly being set to something already.
* Make the unittests work *slightly* better with libevent. (Still won't workWilmer van der Gaast2010-07-29-0/+1
| | | | | | completely because events.h doesn't export a way to run a single event loop iteration.
* Fixing http_encode(): BitlBee now calls setlocale() (for nicknameWilmer van der Gaast2010-07-29-0/+11
| | | | | | | | | transliteration to work), which changes the behaviour of isalpha() (turns out it's not a simple macro). For HTTP-encoding, this sucks, especially when doing OAuth (which is very picky about the way HTTP encoding is done). This should fix problems some people were seeing with posting Twitter messages containing accents.
* "Fix up" unittests enough to at least compile. Never touched these duringWilmer van der Gaast2010-07-29-55/+6
| | | | | the ui-fix works.
* Allow one to run the configure script from a different directory and put allWilmer van der Gaast2010-05-25-1/+4
| | | | | | build files in there. I need this to properly make Debian package variants (i.e. libpurple and native).
* Fixed a bug that caused full JIDs to get lost sometimes with the new wayWilmer van der Gaast2010-03-18-0/+9
| | | | | of storing full JIDs belongong to a contact.
* Test activity_timeout and some other test tweaks.Wilmer van der Gaast2010-03-12-1/+14
|
* Fixed jabber_util unittest. It passes, yet something still seems to beWilmer van der Gaast2010-03-12-3/+3
| | | | | broken. :-(
* Killed the test for setting non-existing variables since I killed supportWilmer van der Gaast2008-12-13-9/+1
| | | | | | | for them as well. Thanks to cedk@gentoo.org for noticing (Bug #448). Also including chat.o when building the tests to fix linking issues.
* Now preserving case in JID resources, and handling them with case sensitivityWilmer van der Gaast2008-06-22-14/+28
| | | | | | | since apparently that's how the RFC wants it. (While the rest of the JID should be case IN-sensitive. Consistency is hard to find these days...) Also extended the unittests a little bit. Closes #422.
* Added jabber_util unittests (buddy_add/_by_jid only ATM).Wilmer van der Gaast2008-06-22-2/+82
|
* Be more liberal with accepted line endings. ERC on Windows likes to useWilmer van der Gaast2008-03-29-2/+2
| | | | | | | "\r\r\n", for example, and until now BitlBee only chopped off the \r\n, leaving the first \r as part of the command, which means it couldn't log in to BitlBee at all. (Bad character in nickname.)
* Adding padding to encrypted IM-passwords so the exact password length can'tWilmer van der Gaast2008-03-16-13/+22
| | | | | be guessed from the encrypted data anymore.
* Added help_free() test, and fixed compiler warning in SASL test.Wilmer van der Gaast2008-02-16-3/+6
|
* Improved sasl_get_part() to deal with whitespace in challenge strings, asWilmer van der Gaast2008-02-16-2/+123
| | | | | described in RFC 2831 secion 7.1 (the #rule description). Closes bug #362.
* Fixed broken check in check_arc.cWilmer van der Gaast2008-02-16-2/+3
|
* Don't allow nicks that start with a number.Wilmer van der Gaast2007-12-10-3/+9
|
* Added word_wrap() function to misc.c and using it at the right places soWilmer van der Gaast2007-10-12-0/+58
| | | | | | that long messages in groupchats also get wrapped properly (instead of truncated).
* "Changed" the ArcFour implementation. I'm afraid this was a waste of time,Wilmer van der Gaast2007-10-07-1/+1
| | | | | but at least I added a neat unittest...
* Adding test for arc.c so that I can now safely replace the RC4 code with aWilmer van der Gaast2007-10-07-1/+100
| | | | | (compatible) ArcFour implementation.
* Merge from Jelmer (mainly unit testing things).Wilmer van der Gaast2007-07-01-1/+380
|\
| * Add tests for setJelmer Vernooij2007-01-21-1/+137
| |
| * Add testsuite for crypting.Jelmer Vernooij2007-01-21-1/+52
| |
| * Add unit testing for user codeJelmer Vernooij2007-01-21-1/+91
| |
| * Add tests for set_url(). Fixed a bug where the default port wasn't Jelmer Vernooij2006-12-24-0/+66
| | | | | | | | | | set when socks5 was used.
| * Refactor the help code to take a filename rather than using the global struct.Jelmer Vernooij2006-12-24-1/+35
| |
| * Fix check for non-debug builds.Jelmer Vernooij2006-12-24-0/+2
| |
* | Fixed Makefiles (make distclean was completely broken).Wilmer van der Gaast2007-02-18-1/+3
|/
* Some simple tests for irc_*()Jelmer Vernooij2006-12-06-2/+82
|