Commit Graph

26 Commits

Author SHA1 Message Date
Mark Spanbroek 81cfe64137 Communicate transport parameters via encrypted payload 2020-10-08 14:31:15 +02:00
Mark Spanbroek b5601fe076 Cleanup: remove fake AEAD overhead for encryption 2020-10-08 14:31:15 +02:00
Mark Spanbroek 4fccf3a9d0 Cleanup: remove unnecessary callbacks 2020-10-08 14:31:15 +02:00
Mark Spanbroek 27f33188fa Cleanup: extract procs to install keys for 0-RTT, handshake and 1-RTT 2020-10-08 14:31:15 +02:00
Mark Spanbroek f0f136c271 Cleanup: remove unnecessary retry logic 2020-10-08 14:31:15 +02:00
Mark Spanbroek 35d1220777 Cleanup: install 1-RTT keys for client at the right moment 2020-10-08 14:31:15 +02:00
Mark Spanbroek 8e1a5ede7c Cleanup: install handshake keys for client at the right moment 2020-10-08 14:31:15 +02:00
Mark Spanbroek a3cc283abf Cleanup: Install initial key for client at the right moment 2020-10-08 14:31:15 +02:00
Mark Spanbroek 85631ba47c Cleanup: remove debug output from callbacks 2020-10-08 14:31:15 +02:00
Mark Spanbroek c6e329dcee Cleanup: consolidate various types into type "Key" 2020-10-08 14:31:15 +02:00
Mark Spanbroek 542d5acd79 Cleanup: remove unnecessary settings 2020-10-08 14:31:15 +02:00
Mark Spanbroek 0aae5aaa4d Set client handshake keys 2020-10-08 14:31:15 +02:00
Mark Spanbroek c8b333d72b Install rx and tx keys at the appropriate moment 2020-10-08 14:31:15 +02:00
Mark Spanbroek 32ace45629 Ensure that various fake key material uses separate memory locations 2020-10-08 14:31:15 +02:00
Mark Spanbroek af58d18401 Fake transport settings being exchanged via TLS 2020-10-08 14:31:15 +02:00
Mark Spanbroek 7ea33ce19d Move client and server settings into separate file 2020-10-08 14:31:15 +02:00
Mark Spanbroek 89eb18d3b4 Use our own code to parse and echo the first packet from ngtcp2 2020-10-08 14:31:15 +02:00
Mark Spanbroek d7c5628131 Signal handshake complete 2020-10-08 14:31:15 +02:00
Mark Spanbroek 8911311b2d Supply more crypto data 2020-10-08 14:31:15 +02:00
Mark Spanbroek 3f9d9050df Add AEAD overhead 2020-10-08 14:31:15 +02:00
Mark Spanbroek bd32d3ecd9 Correct connection id exchange 2020-10-08 14:31:15 +02:00
Mark Spanbroek a73536c10f Add monotonic clock for packet timestamps 2020-10-08 14:31:15 +02:00
Mark Spanbroek cd8b40a47a Use matching client and server connection ids 2020-10-08 14:31:15 +02:00
Mark Spanbroek 79eca562f8 Remove faulty dummyPath() 2020-10-08 14:31:15 +02:00
Mark Spanbroek b0cd50b5df Add logging 2020-10-08 14:31:15 +02:00
Mark Spanbroek d1c665fedb Add test that sets up a client and a server connection
Inspiration mostly from:
dfe3771dbb/tests/ngtcp2_conn_test.c (L502)
2020-10-08 14:31:15 +02:00