Commit graph

926 commits

Author SHA1 Message Date
f25c92359e Handle receive errors correctly 2012-03-31 21:17:46 +02:00
2a9e807c78 Fix double free when receiving unexpected packets from floating peers 2012-03-31 20:45:27 +02:00
ee8b2de4b7 ecfxp: refresh session key periodically 2012-03-31 19:38:18 +02:00
0c82651c30 Change how handshakes are triggered 2012-03-31 18:04:02 +02:00
342d63a45a Limit key validity 2012-03-30 18:40:23 +02:00
9ee88db0f8 Change peer print format 2012-03-30 17:33:03 +02:00
23e76b0d25 Correctly update seen time when data is received from a peer 2012-03-30 17:14:10 +02:00
002fd7132a Fix memory leak in on_up 2012-03-30 04:42:31 +02:00
6f1f926bb8 Make ecfxp protocol work with new handshake 2012-03-30 04:36:50 +02:00
ca127fccb8 Rework handshake... again. ecfxp protocol broken, will be fixed with next commit. 2012-03-30 02:26:30 +02:00
4d696a973a Add Flex options to fix -Wall warnings 2012-03-30 01:33:16 +02:00
8a6a48807d Add MTU parameter to on-up command 2012-03-29 20:04:22 +02:00
d2bf3c0947 Add support for Tinc-like peer directory configurations 2012-03-29 04:25:30 +02:00
eb0c48b789 Config parse: add location tracking for nice error messages 2012-03-29 03:19:50 +02:00
aadf0a94b4 Implement on-up commands; also fix log print conditions 2012-03-29 01:28:55 +02:00
63e123738a Stop handshake when key is identity 2012-03-28 23:11:02 +02:00
0c1296cb86 Interpret includes relative to config file path 2012-03-28 22:26:02 +02:00
9d572f3b53 Add license headers to Flex and Bison files; also remove Quicktun note as we don't actually use any of is code 2012-03-28 21:54:48 +02:00
ae9df63aa9 Config: allow escaping quotes in strings 2012-03-28 21:51:07 +02:00
14a44b4016 Add keygen function 2012-03-28 20:47:06 +02:00
c8ea4868b3 Add single peer config options; also fix string handling in lexer 2012-03-28 18:42:24 +02:00
1653c57e81 Make peer takeover work 2012-03-28 02:32:18 +02:00
22a6b57065 Make crypto handshake with floating peers work 2012-03-28 00:55:39 +02:00
b69d34071b Allow comments in config files 2012-03-27 22:58:59 +02:00
3065f96f7b New handshake format; don't respond to data packets from unknown peers with handshakes, but request a re-handshake 2012-03-27 22:43:19 +02:00
2190d635c1 Fix NULL dereference on null protocol initialization 2012-03-27 19:01:58 +02:00
21e4ada4bb Use configured peer names 2012-03-27 19:01:31 +02:00
cfadfce548 ec25519-fhmqvc-xsalsa20-poly1305: separate session better to allow smooth rekeying 2012-03-27 00:24:22 +02:00
2a8c655a5d Correctly free handshake state with peer state 2012-03-27 00:10:55 +02:00
9fd69a7893 Allow initating and accepting handshake instances to coexist; fix some memory corruption etc. found by Valgrind 2012-03-26 23:51:41 +02:00
5074b7d5e1 fastd_handshake_handle: Use data pointer instead of base 2012-03-26 22:23:24 +02:00
2ffca7de4e Move around some structure fields 2012-03-26 19:16:29 +02:00
e89cfb2f0b Implement encrypted send/receive 2012-03-26 06:05:36 +02:00
a02fb0711b Initial implementation of the FHMQV-C handshake 2012-03-26 03:06:03 +02:00
44742f8aad Add include command 2012-03-25 15:06:39 +02:00
59a5b83321 Change parse to push API, fix some parser bugs 2012-03-25 14:21:47 +02:00
6ce20e2bb6 Add keypair config 2012-03-25 00:16:20 +01:00
0b61ebf351 Remove context argument from lexer call 2012-03-24 23:10:10 +01:00
01683df316 Fix peer address config 2012-03-24 22:42:38 +01:00
29bdd55286 Fix a config file parse bug 2012-03-24 22:35:26 +01:00
359e9b6c2b Rename methods to protocols; fix some command line parse bugs; implement most of the config file parser 2012-03-24 22:32:24 +01:00
4ffc28ecd6 Partial implementation of a config files parser 2012-03-24 20:55:27 +01:00
78fe2cda05 Move command line parsing to a new file 2012-03-16 08:08:16 +01:00
d9ed50094d Require libuecc; rename cfxp to ecfxp; add some basic infrastructure for crypto implementation 2012-03-14 17:16:28 +01:00
4cdee0ee47 Fix allocated buffer size in fastd_buffer_alloc() 2012-03-08 23:20:35 +01:00
9cd196627b Fix packet struct packing 2012-03-08 23:10:36 +01:00
ea75116c74 Add curve25519-fhmqvc-xsalsa20-poly1305 method stub 2012-03-08 22:38:02 +01:00
c111e07c4a Moved some code 2012-03-08 20:55:58 +01:00
e9ff4485fb Fix some log messages 2012-03-08 16:47:52 +01:00
5268f248c9 New and improved handshake 2012-03-08 01:47:34 +01:00