This is an automated email from the ASF dual-hosted git repository. masaori pushed a commit to branch quic-latest in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 51fecc1cc714f7a6d34556dd0d3b9c5399d592e5 Author: Masaori Koshiba <[email protected]> AuthorDate: Wed Jun 20 15:21:15 2018 +0900 Fix unit tests --- iocore/net/quic/Mock.h | 4 ++-- iocore/net/quic/test/test_QUICHandshakeProtocol.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iocore/net/quic/Mock.h b/iocore/net/quic/Mock.h index 898b97c..9c578de 100644 --- a/iocore/net/quic/Mock.h +++ b/iocore/net/quic/Mock.h @@ -578,14 +578,14 @@ public: } bool - encrypt_pn(uint8_t *protected_pn, size_t &protected_pn_len, const uint8_t *unprotected_pn, size_t unprotected_pn_len, + encrypt_pn(uint8_t *protected_pn, uint8_t &protected_pn_len, const uint8_t *unprotected_pn, uint8_t unprotected_pn_len, const uint8_t *sample, QUICKeyPhase phase) const override { return true; } bool - decrypt_pn(uint8_t *unprotected_pn, size_t &unprotected_pn_len, const uint8_t *protected_pn, size_t protected_pn_len, + decrypt_pn(uint8_t *unprotected_pn, uint8_t &unprotected_pn_len, const uint8_t *protected_pn, uint8_t protected_pn_len, const uint8_t *sample, QUICKeyPhase phase) const override { return true; diff --git a/iocore/net/quic/test/test_QUICHandshakeProtocol.cc b/iocore/net/quic/test/test_QUICHandshakeProtocol.cc index 096b9c9..f24c657 100644 --- a/iocore/net/quic/test/test_QUICHandshakeProtocol.cc +++ b/iocore/net/quic/test/test_QUICHandshakeProtocol.cc @@ -620,7 +620,7 @@ TEST_CASE("QUICHandshakeProtocol PNE", "[quic]") uint8_t expected[] = {0x01, 0x02, 0x03, 0x04, 0x05}; uint8_t sample[16] = {0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f}; uint8_t protected_pn[18], unprotected_pn[18]; - size_t protected_pn_len = 0, unprotected_pn_len = 0; + uint8_t protected_pn_len = 0, unprotected_pn_len = 0; // # Before handshake CHECK(client->initialize_key_materials({reinterpret_cast<const uint8_t *>("\x83\x94\xc8\xf0\x3e\x51\x57\x00"), 8}));
