diff options
author | Robert Relyea <rrelyea@redhat.com> | 2017-11-01 12:42:41 -0700 |
---|---|---|
committer | Robert Relyea <rrelyea@redhat.com> | 2017-11-01 12:42:41 -0700 |
commit | 3c7faf80796f9161570ba1603a1a0c14bb7552fe (patch) | |
tree | 021db1879e04846529de37bf19ad63ab6a405336 /gtests/common | |
parent | 21a4833ee48f406a51f3c2d3f1816eba17652ea9 (diff) | |
download | nss-hg-3c7faf80796f9161570ba1603a1a0c14bb7552fe.tar.gz |
Bug 1236720 - Provide sym key derive mechanism as result of encryption of message, r=mt
- Original patch by Robert Relyea was modified to make the tests gtests unit tests
- Tests modifications are a collaboration between Martin Thomson and Elio Maldonado
Diffstat (limited to 'gtests/common')
-rw-r--r-- | gtests/common/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtests/common/util.h b/gtests/common/util.h index ccab5604e..7ed1fd799 100644 --- a/gtests/common/util.h +++ b/gtests/common/util.h @@ -10,7 +10,7 @@ #include <cassert> #include <vector> -std::vector<uint8_t> hex_string_to_bytes(std::string s) { +static inline std::vector<uint8_t> hex_string_to_bytes(std::string s) { std::vector<uint8_t> bytes; for (size_t i = 0; i < s.length(); i += 2) { bytes.push_back(std::stoul(s.substr(i, 2), nullptr, 16)); |