f31ccaad16
Libraryize test.cc
master
Ian Gulliver
2016-09-25 17:37:37 -07:00
c067cbd71e
Secure, optimizing build options
Ian Gulliver
2016-09-25 16:47:05 -07:00
6da1c57c36
Starting over
Ian Gulliver
2016-09-25 15:56:37 -07:00
a78c8461d6
Remove client-side code for channel setup, headed toward a dumb client.
Ian Gulliver
2015-02-09 04:54:12 +00:00
ac97f35e3c
Precalculate keys and destroy in-memory ephemeral key copies ASAP.
Ian Gulliver
2015-02-08 22:36:23 +00:00
f35f9d8885
Cache derived public key.
Ian Gulliver
2015-02-08 19:54:45 +00:00
6a4a92f47a
Make the handshake mirrored again, for common code and to support future key rotation.
Ian Gulliver
2015-02-08 19:50:09 +00:00
7807df9575
Initialize libsodium in all apps
Ian Gulliver
2015-02-08 19:16:11 +00:00
9a0449be5d
Fix a memory leak in signal event handling. libevent's API is an ownership disaster.
Ian Gulliver
2015-02-08 19:13:00 +00:00
719a8ab1d8
Debugging symbols
Ian Gulliver
2015-02-08 19:04:25 +00:00
52ee93708d
Key handling cleanup, now using libsodium's secure memory allocation
Ian Gulliver
2015-02-08 19:02:37 +00:00
bcfe496fb1
Build fixes for linux
Ian Gulliver
2015-02-08 04:05:36 +00:00
0e0a3eab8b
Shutdown messages and sigint handling.
Ian Gulliver
2015-02-07 16:18:07 -08:00
6fc6070d5f
Start of tunnel request handling.
Ian Gulliver
2015-02-07 16:04:40 -08:00
578615a99e
Error handling fixes.
Ian Gulliver
2015-02-07 15:56:29 -08:00
c93121ddf2
Send tunnel request.
Ian Gulliver
2015-02-07 15:37:45 -08:00
91323771cb
Rename CryptoConnBase to CryptoPubConnBase
Ian Gulliver
2015-02-07 15:26:39 -08:00
4274c7ca1d
More code dedupe.
Ian Gulliver
2015-02-07 15:25:22 -08:00
d82cb789e3
Switch to unique_ptr for ownership clarity in places, combine more code.
Ian Gulliver
2015-02-07 15:07:34 -08:00
844db000f6
Start of channel_bitrates, start combining server and client common code.
Ian Gulliver
2015-02-07 14:32:53 -08:00
2e9d0b7960
Fix message types, add handshake message type checking
Ian Gulliver
2015-02-07 13:53:15 -08:00
f122f38c43
More cleanup for real messages
Ian Gulliver
2015-02-07 13:49:19 -08:00
cdd059370d
Log client ID from server
Ian Gulliver
2015-02-07 13:38:51 -08:00
36bdebe5e0
Transition into ready state.
Ian Gulliver
2015-02-07 13:32:49 -08:00
55ca78194c
Clean up key file save and load.
Ian Gulliver
2015-02-07 13:25:46 -08:00
d90770fabe
Logging cleanup
Ian Gulliver
2015-02-07 11:18:31 -08:00
403c193576
Bidirectional secure handshake
Ian Gulliver
2015-02-07 10:58:20 -08:00
ce0d4481d3
Client -> server handshake successful
Ian Gulliver
2015-02-07 10:47:03 -08:00
f8c2222774
Successful decrypt of client handshake!
Ian Gulliver
2015-02-07 10:35:29 -08:00
f1540c897e
Client sending encoded handshake, server decoding the insecure bits
Ian Gulliver
2015-02-07 19:01:48 +01:00
409c912eeb
Actually sending client handshake
Ian Gulliver
2015-02-07 17:32:57 +01:00
4658186fb4
Move the horrible C wrappers out of the real functions.
Ian Gulliver
2015-02-07 17:15:09 +01:00
14cfbb0372
Convert auth-client to libevent
Ian Gulliver
2015-02-07 17:07:31 +01:00
88c3c69e52
Switch from epoll to libevent, to add OS X support.
Ian Gulliver
2015-02-07 16:44:42 +01:00
2c9b9f97de
Start of a client app
Ian Gulliver
2015-02-06 16:27:47 +00:00
dcbc3d6928
Start of a connection state machine, start of a TLV framework.
Ian Gulliver
2015-02-05 21:57:04 +00:00
c91b64f892
It's not necessary to use EPOLL_CTL_DEL after close()
Ian Gulliver
2015-02-05 20:57:01 +00:00
524434813c
Remove hex encoding, just write binary files.
Ian Gulliver
2015-02-05 17:18:44 +00:00
18715be4b9
Fix indenting
Ian Gulliver
2015-02-05 16:56:29 +00:00
3f7b086e24
Main loop, epoll handling
Ian Gulliver
2015-02-05 16:36:25 +00:00
b3a450226c
Variable name cleanup
Ian Gulliver
2015-02-05 13:04:36 +00:00
b396ad3317
Add gen-key for shared secret key generation
Ian Gulliver
2015-02-05 13:02:42 +00:00
d37b9a7e41
Public key generation
Ian Gulliver
2015-02-05 12:55:48 +00:00
99aac0d648
Add gen-pubkeypair
Ian Gulliver
2015-02-05 11:50:47 +00:00
61d622b9b1
Rename server to auth-server
Ian Gulliver
2015-02-05 11:38:34 +00:00
8117cacb04
Memoize build command
Ian Gulliver
2015-02-04 21:48:49 +00:00
0d2268f833
Test server.
Ian Gulliver
2015-02-04 21:44:16 +00:00
277057f4ea
Clean up receiver API to handle messages in the same datagram from different families. Add supported_iftypes.
Ian Gulliver
2015-01-14 06:20:01 +00:00
3efaf82893
Start of get_wiphy support.
Ian Gulliver
2015-01-11 07:32:41 +00:00
841abaa612
Multiplexing thread for the netlink socket to make the class thread safe.
Ian Gulliver
2015-01-11 06:46:28 +00:00
d0709b885c
Add Query()
Ian Gulliver
2015-01-10 16:39:24 +00:00
d6bbc263ad
Allow multiple instantiations of GenericNetlink
Ian Gulliver
2015-01-10 16:37:52 +00:00
5b9c67b260
Pass flags as a list of strings.
Ian Gulliver
2015-01-10 16:29:51 +00:00
52d7a6a5ca
Clean up message type definitions. Remove extra class layer for message type.
Ian Gulliver
2015-01-10 16:12:06 +00:00
1afd52c1b2
Move attribute parsing down a level to make family definition simpler.
Ian Gulliver
2015-01-10 16:01:02 +00:00
af9828942d
Swap command constants out for strings.
Ian Gulliver
2015-01-10 15:54:54 +00:00
e7d80945b4
Fix ugly family name/id mapping
Ian Gulliver
2015-01-10 15:47:58 +00:00
f88c78de06
Add padding on packed attributes.
Ian Gulliver
2015-01-10 06:53:25 +00:00
eed19490e9
Add GetIfIndex()
Ian Gulliver
2015-01-10 06:49:17 +00:00
1166963aee
nl80211 named, pythonic queries
Ian Gulliver
2015-01-10 06:35:04 +00:00
0a1f6f04dc
Full decode up the stack.
Ian Gulliver
2015-01-09 06:38:56 +00:00
f4c6a7bff2
Multi-message parsing in a generic netlink interface.
Ian Gulliver
2015-01-09 06:21:00 +00:00
9b6894b999
Remove targetlen, remove copying when extracting sub iterators.
Ian Gulliver
2015-01-09 05:30:42 +00:00
35c7f0beba
Now parsing control headers.
Ian Gulliver
2015-01-08 06:09:38 +00:00
18e951ed8c
Clean up some of the pack interface, especially attributes. Remove OrderedDict.
Ian Gulliver
2015-01-08 04:19:10 +00:00
485ad84b64
Enough serialization to generate a query that gets a working response.
Ian Gulliver
2015-01-07 06:27:01 +00:00
fc3bf6d59a
Initial commit.
Ian Gulliver
2015-01-06 06:00:55 +00:00
6cab0ba648
Initial commit
Ian Gulliver
2015-01-05 21:59:11 -08:00