You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2018/04/06 17:01:39 UTC

[trafficserver] branch master updated: Make CryptoHash::toHexStr const.

This is an automated email from the ASF dual-hosted git repository.

amc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 761f901  Make CryptoHash::toHexStr const.
761f901 is described below

commit 761f90120efaf207d9ac72b30db72d68033cb853
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Fri Apr 6 07:06:14 2018 -0500

    Make CryptoHash::toHexStr const.
---
 lib/ts/CryptoHash.cc | 2 +-
 lib/ts/CryptoHash.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ts/CryptoHash.cc b/lib/ts/CryptoHash.cc
index b28181b..5c315f0 100644
--- a/lib/ts/CryptoHash.cc
+++ b/lib/ts/CryptoHash.cc
@@ -103,7 +103,7 @@ ink_code_to_hex_str(char *dest, uint8_t const *hash)
 }
 
 char *
-CryptoHash::toHexStr(char buffer[(CRYPTO_HASH_SIZE * 2) + 1])
+CryptoHash::toHexStr(char buffer[(CRYPTO_HASH_SIZE * 2) + 1]) const
 {
   return ink_code_to_hex_str(buffer, u8);
 }
diff --git a/lib/ts/CryptoHash.h b/lib/ts/CryptoHash.h
index 650a90f..0d74b71 100644
--- a/lib/ts/CryptoHash.h
+++ b/lib/ts/CryptoHash.h
@@ -100,7 +100,7 @@ union CryptoHash {
   }
 
   /// Fast conversion to hex in fixed sized string.
-  char *toHexStr(char buffer[(CRYPTO_HASH_SIZE * 2) + 1]);
+  char *toHexStr(char buffer[(CRYPTO_HASH_SIZE * 2) + 1]) const;
 };
 
 extern CryptoHash const CRYPTO_HASH_ZERO;

-- 
To stop receiving notification emails like this one, please contact
amc@apache.org.