Commit graph

78 commits

Author SHA1 Message Date
Erik Ekman
9e265625a1 Fix authentication bypass bug
The client could bypass the password check by continuing after getting error
from the server and guessing the network parameters. The server would still
accept the rest of the setup and also network traffic.

Add checks for normal and raw mode that user has authenticated before allowing
any other communication.

Problem found by Oscar Reparaz.

Backported to iodine 0.6 branch.
2014-06-17 18:59:06 +02:00
Erik Ekman
13590899c8 Fix strange sizeof() 2009-12-30 07:39:52 +00:00
Erik Ekman
0c294915ae fix tests after patch in #88 2009-12-29 20:08:01 +00:00
Erik Ekman
8692c7f759 Fix test cases 2009-09-20 21:10:45 +00:00
Erik Ekman
39d7263a11 Fix segfault in test for BSDs 2009-09-20 15:57:00 +00:00
Erik Ekman
a5c6f93fa2 Fix data length in encoding dns queries 2009-09-20 15:41:24 +00:00
Erik Ekman
34c69866c9 Added new test, found and fixed an actual bug 2009-09-20 08:43:49 +00:00
Erik Ekman
98d5f61e5e #51 handle one block encode/decode for base32 2009-02-17 20:40:40 +00:00
Erik Ekman
75ffe37863 #51 handle one block encode/decode for base64 2009-02-17 20:22:24 +00:00
Erik Ekman
e5582b39f4 Added tests on forwarded query cache 2009-02-10 19:48:42 +00:00
Erik Ekman
d6cf7e4de1 refactored tests 2009-02-10 18:10:40 +00:00
Erik Ekman
b3603abf2e Made dns_get_id return unsigned short, added test cases 2009-02-09 20:44:08 +00:00
Erik Ekman
e3804cdbca Extended test cases 2009-02-09 18:46:17 +00:00
Erik Ekman
d08da80160 revert cygwin stuff 2009-01-24 22:12:00 +00:00
Erik Ekman
5352b5075e Make it build and fix tests in cygwin 2009-01-24 16:39:05 +00:00
Erik Ekman
4dcdd31e3c #40, fix dots in hostname when length is 113, 170, 227... Includes test. 2009-01-16 18:51:54 +00:00
Erik Ekman
9f3e397475 add osflags for tests 2009-01-06 22:05:15 +00:00
Erik Ekman
ab75dae208 allow custom check path 2009-01-06 13:41:45 +00:00
Erik Ekman
f5e58e6527 Assign client IPs within the network (fixes #28), also limit number of users depending on netmask (for #27) 2009-01-04 12:03:35 +00:00
Erik Ekman
c742fe79c3 Happy new year 2009-01-03 23:39:54 +00:00
Erik Ekman
d027a60859 Handle trans id >= 0x8000, fix bug #37 2009-01-03 20:13:31 +00:00
Erik Ekman
b66dc4ea51 update tests after inline dot function now uses 57 as distance 2008-12-27 00:40:30 +00:00
Erik Ekman
458b5af003 Added simple 5bits to 8 and reverse encoder, with test 2008-12-11 19:26:11 +00:00
Erik Ekman
5450372a75 Updated encoding tests 2008-12-06 19:08:14 +00:00
Erik Ekman
2eb78f9e8c Reverted [686], [689] and [692]. SSH login now works again. Increased version. 2008-09-14 12:44:55 +00:00
Erik Ekman
e8ee981f97 Print failed tests 2008-09-14 11:33:18 +00:00
Erik Ekman
524522d00a Base64 codec now uses + as 64th char 2008-09-14 11:32:31 +00:00
Erik Ekman
9c74eb09a7 Improved latency for traffic initiated from server 2008-08-07 13:22:30 +00:00
Erik Ekman
e4e23275c9 Removed needless va_str() 2008-07-12 20:57:30 +00:00
Erik Ekman
ddaebb0074 reverting the code after 0.4.1, except for some patches 2008-07-12 11:36:39 +00:00
Erik Ekman
cb3115865d Fix tests, dotting does not spare a char anymore 2008-01-07 22:24:19 +00:00
Erik Ekman
5460c8eb0a Link test with packet 2007-12-02 10:51:52 +00:00
Erik Ekman
b0c6924a8e Init variables, fix #26 2007-08-08 06:20:09 +00:00
Erik Ekman
ba8f2cfac1 base64 impl now escapes dots. does not really respect buflen 2007-06-10 18:55:18 +00:00
Erik Ekman
bacb0d2bfb Add 2007 in tests 2007-06-09 18:15:29 +00:00
Erik Ekman
1173bf2c8e added base64 test in header 2007-06-09 17:52:02 +00:00
Erik Ekman
7c53be08c0 added base64 codec 2007-06-09 17:49:19 +00:00
Erik Ekman
1e7486bdd2 make sure len is always correct 2007-06-09 17:48:28 +00:00
Erik Ekman
019fb51ee6 Fixed tests after #6 api changes 2007-06-09 16:57:33 +00:00
Erik Ekman
3341f3c268 Additional checks 2007-02-11 15:04:44 +00:00
Erik Ekman
68c4233f9b Added test on user handling methods 2007-02-11 14:39:43 +00:00
Erik Ekman
7ea80349f5 Use -pedantic in tests, fixed all warnings 2007-02-11 14:07:26 +00:00
Erik Ekman
05927b97e4 Fix testcases after refactoring 2007-02-11 01:46:45 +00:00
Erik Ekman
71e9359ed0 #3 fixed last test, added A char 2007-02-08 21:10:46 +00:00
Erik Ekman
79f9940b83 #3 fixed decode query test 2007-02-08 20:53:37 +00:00
Erik Ekman
a8127f410c #3 updated encoding testcase to new usage 2007-02-08 20:42:24 +00:00
Erik Ekman
c58df44dc6 Reverting unintended commit 2007-02-05 19:47:03 +00:00
Erik Ekman
9355cd7829 #10 fixed basic ack. pings bigger than 110 still lost 2007-02-05 19:44:46 +00:00
Erik Ekman
da636b1f47 #3 fix issue with topdomain. Also make sure ping packet is type NULL 2007-02-04 23:08:09 +00:00
Erik Ekman
0fd3d9e62e #3 Make testcases compile. They still need to be adjusted to the new way of working 2007-02-04 22:11:00 +00:00