diff options
author | Juraj Somorovsky <[email protected]> | 2016-05-12 23:40:49 +0200 |
---|---|---|
committer | Juraj Somorovsky <[email protected]> | 2016-05-12 23:40:49 +0200 |
commit | 7dd73a96bbea879a6d7107bf4b23a44ba527a134 (patch) | |
tree | 34cfb60fa6f8d8535a3e51cd9ab1dec62fe32596 /src/lib/tls/msg_certificate.cpp | |
parent | 7c7fcecbe6a94ffaba5752175d8da5e33fbf0d7b (diff) | |
parent | 8578e0fc758b81d176d0c5092417f4cc77676895 (diff) |
Merge branch 'master' into Encrypt-then-MAC-with-policy
Merged recent changes and resolved minor conflicts in tls record classes.
Diffstat (limited to 'src/lib/tls/msg_certificate.cpp')
-rw-r--r-- | src/lib/tls/msg_certificate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tls/msg_certificate.cpp b/src/lib/tls/msg_certificate.cpp index dbf9dbe12..a83d32d11 100644 --- a/src/lib/tls/msg_certificate.cpp +++ b/src/lib/tls/msg_certificate.cpp @@ -101,14 +101,14 @@ std::vector<byte> Certificate::serialize() const const size_t cert_size = raw_cert.size(); for(size_t j = 0; j != 3; ++j) { - buf.push_back(get_byte<u32bit>(j+1, cert_size)); + buf.push_back(get_byte(j+1, static_cast<u32bit>(cert_size))); } buf += raw_cert; } const size_t buf_size = buf.size() - 3; for(size_t i = 0; i != 3; ++i) - buf[i] = get_byte<u32bit>(i+1, buf_size); + buf[i] = get_byte(i+1, static_cast<u32bit>(buf_size)); return buf; } |