diff options
author | lloyd <[email protected]> | 2012-03-30 01:41:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-03-30 01:41:04 +0000 |
commit | 4ff6063a9605c71cc734a594ddecbdb0d17541bf (patch) | |
tree | 845fa57d5f9e24fc39f5fa847296e4b778e6a894 /src/tls/tls_reader.h | |
parent | 8a31da4d60490753031267b18957c0c599bbee3b (diff) | |
parent | 4c12fa5de1b59f2c58f974412231a19c4dc7c10f (diff) |
propagate from branch 'net.randombit.botan.tls-state-machine' (head 63b88a65b699c95ef839bc18336bceccfbfabd2e)
to branch 'net.randombit.botan.cxx11' (head 1adcc46808b403b8f6bf1669f022e65f9c30e8ea)
Diffstat (limited to 'src/tls/tls_reader.h')
-rw-r--r-- | src/tls/tls_reader.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tls/tls_reader.h b/src/tls/tls_reader.h index 8c2e9efe2..bf8098bed 100644 --- a/src/tls/tls_reader.h +++ b/src/tls/tls_reader.h @@ -50,6 +50,15 @@ class TLS_Data_Reader offset += bytes; } + u16bit get_u32bit() + { + assert_at_least(4); + u16bit result = make_u32bit(buf[offset ], buf[offset+1], + buf[offset+2], buf[offset+3]); + offset += 4; + return result; + } + u16bit get_u16bit() { assert_at_least(2); |