You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sc...@apache.org on 2018/01/28 00:56:50 UTC
[trafficserver] branch quic-latest updated: Replace INK_MD5 since
c93790a merged
This is an automated email from the ASF dual-hosted git repository.
scw00 pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/quic-latest by this push:
new 8be2071 Replace INK_MD5 since c93790a merged
8be2071 is described below
commit 8be2071db8fec2d9e2f03ce7828e0e99afd14dd0
Author: scw00 <sc...@apache.org>
AuthorDate: Sat Jan 27 12:14:57 2018 +0800
Replace INK_MD5 since c93790a merged
---
iocore/net/quic/QUICTypes.cc | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/iocore/net/quic/QUICTypes.cc b/iocore/net/quic/QUICTypes.cc
index a622bd5..1b4c87f 100644
--- a/iocore/net/quic/QUICTypes.cc
+++ b/iocore/net/quic/QUICTypes.cc
@@ -203,16 +203,16 @@ QUICTypeUtil::write_uint_as_nbytes(uint64_t value, uint8_t n, uint8_t *buf, size
void
QUICStatelessResetToken::_gen_token(uint64_t data)
{
- INK_MD5 _md5;
+ CryptoHash _hash;
static constexpr char STATELESS_RESET_TOKEN_KEY[] = "stateless_token_reset_key";
- MD5Context ctx;
+ CryptoContext ctx;
ctx.update(STATELESS_RESET_TOKEN_KEY, strlen(STATELESS_RESET_TOKEN_KEY));
ctx.update(reinterpret_cast<void *>(&data), 8);
- ctx.finalize(_md5);
+ ctx.finalize(_hash);
size_t dummy;
- QUICTypeUtil::write_uint_as_nbytes(_md5.u64[0], 8, _token, &dummy);
- QUICTypeUtil::write_uint_as_nbytes(_md5.u64[1], 8, _token + 8, &dummy);
+ QUICTypeUtil::write_uint_as_nbytes(_hash.u64[0], 8, _token, &dummy);
+ QUICTypeUtil::write_uint_as_nbytes(_hash.u64[1], 8, _token + 8, &dummy);
}
uint16_t
--
To stop receiving notification emails like this one, please contact
scw00@apache.org.