aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_handshake_hash.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-11 15:28:38 -0500
committerJack Lloyd <[email protected]>2016-12-18 16:48:24 -0500
commitf3cb3edb512bdcab498d825886c3366c341b3f78 (patch)
tree645c73ec295a5a34f25d99903b6d9fa9751e86d3 /src/lib/tls/tls_handshake_hash.h
parentc1dd21253c1f3188ff45d3ad47698efd08235ae8 (diff)
Convert to using standard uintN_t integer types
Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
Diffstat (limited to 'src/lib/tls/tls_handshake_hash.h')
-rw-r--r--src/lib/tls/tls_handshake_hash.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/tls/tls_handshake_hash.h b/src/lib/tls/tls_handshake_hash.h
index d0f5c882f..c0c266f9e 100644
--- a/src/lib/tls/tls_handshake_hash.h
+++ b/src/lib/tls/tls_handshake_hash.h
@@ -22,20 +22,20 @@ namespace TLS {
class Handshake_Hash
{
public:
- void update(const byte in[], size_t length)
+ void update(const uint8_t in[], size_t length)
{ m_data += std::make_pair(in, length); }
- void update(const std::vector<byte>& in)
+ void update(const std::vector<uint8_t>& in)
{ m_data += in; }
- secure_vector<byte> final(Protocol_Version version,
+ secure_vector<uint8_t> final(Protocol_Version version,
const std::string& mac_algo) const;
- const std::vector<byte>& get_contents() const { return m_data; }
+ const std::vector<uint8_t>& get_contents() const { return m_data; }
void reset() { m_data.clear(); }
private:
- std::vector<byte> m_data;
+ std::vector<uint8_t> m_data;
};
}