diff options
author | lloyd <[email protected]> | 2012-03-19 12:30:56 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-03-19 12:30:56 +0000 |
commit | 9ecf7c11be659502e28407b7e5001d88cba763c2 (patch) | |
tree | 9b45f3e9b90587e43fd62a2dbf0812a9c9663ab2 /src/tls/tls_reader.h | |
parent | b1238320b591bced237ab08bd32713c59d18525a (diff) |
Small fixes, cleanups
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 162f691aa..f6b0d4088 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); |