Commit graph

863 commits

Author SHA1 Message Date
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
4b707f3076 Fixed off-by-one in fastd_peer_eth_addr_add 2012-03-07 23:18:11 +01:00
6ada3f4364 New debug print function 2012-03-07 23:17:50 +01:00
c6e6c75154 Forget old peers and addresses 2012-03-07 02:12:36 +01:00
f8a2fec8f3 Simplify queue functions 2012-03-06 23:06:18 +01:00
1d18f97255 Reorganized type definitions 2012-03-06 21:29:34 +01:00
d4686dd797 Simplify fastd_peer_config_is_floating 2012-03-06 02:42:22 +01:00
7adeae186c Implement tunneling over IPv6 2012-03-06 02:22:56 +01:00
ebd9d98fd7 Delete pending tasks for deleted peers 2012-03-02 20:12:59 +01:00
3a4964f5e8 Allow floating peers 2012-03-02 19:41:17 +01:00
0f2e170ea6 Only send packets to the right host in ethernet mode 2012-02-29 22:44:40 +01:00
b5892c3418 Make ip mode work 2012-02-29 14:39:32 +01:00
6390442c47 Rework buffer structure 2012-02-28 22:40:53 +01:00
35742ca05a Replicate packets for each peer when sending 2012-02-28 19:19:34 +01:00