diff options
Diffstat (limited to 'src/ssl/handshake_hash.h')
-rw-r--r-- | src/ssl/handshake_hash.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ssl/handshake_hash.h b/src/ssl/handshake_hash.h index 8e068f3de..df50e4dfe 100644 --- a/src/ssl/handshake_hash.h +++ b/src/ssl/handshake_hash.h @@ -22,8 +22,10 @@ class BOTAN_DLL HandshakeHash public: void update(const byte in[], u32bit length) { data.append(in, length); } + void update(const MemoryRegion<byte>& in) - { update(in.begin(), in.size()); } + { update(&in[0], in.size()); } + void update(byte in) { update(&in, 1); } |