diff options
author | Jack Lloyd <[email protected]> | 2022-02-10 17:35:44 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2022-02-10 17:57:10 -0500 |
commit | 86d16c54044dc3df13e6479a437148388f1520fc (patch) | |
tree | 272d8c4db5584f952801a02aeada5460815ead20 /src/lib/tls | |
parent | e068d80953469fc8a3ec1715d0f64756d972daba (diff) |
More clang-tidy fixes
Diffstat (limited to 'src/lib/tls')
-rw-r--r-- | src/lib/tls/tls_handshake_io.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/tls/tls_handshake_io.cpp b/src/lib/tls/tls_handshake_io.cpp index 867f8f9a6..5678fcecf 100644 --- a/src/lib/tls/tls_handshake_io.cpp +++ b/src/lib/tls/tls_handshake_io.cpp @@ -127,7 +127,7 @@ std::vector<uint8_t> Stream_Handshake_IO::send(const Handshake_Message& msg) return std::vector<uint8_t>(); // not included in handshake hashes } - const std::vector<uint8_t> buf = format(msg_bits, msg.type()); + auto buf = format(msg_bits, msg.type()); m_send_hs(HANDSHAKE, buf); return buf; } @@ -432,8 +432,7 @@ std::vector<uint8_t> Datagram_Handshake_IO::send_message(uint16_t msg_seq, { const size_t DTLS_HANDSHAKE_HEADER_LEN = 12; - const std::vector<uint8_t> no_fragment = - format_w_seq(msg_bits, msg_type, msg_seq); + auto no_fragment = format_w_seq(msg_bits, msg_type, msg_seq); if(no_fragment.size() + DTLS_HEADER_SIZE <= m_mtu) { |