diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-10-31 22:44:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-02 00:12:56 +0100 |
| commit | 9e613ae8a3cd7994194d2d709f6ff9b88feac70b (patch) | |
| tree | 40611aafec40f836ca23ef9b99093d526f9d43c1 /src/util.cc | |
| parent | da15bff6e278d351301c9c50a4c96737ae4b5545 (diff) | |
Add Data class and change API to a raw pointer.
Diffstat (limited to 'src/util.cc')
| -rw-r--r-- | src/util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc index b62def07..56b44889 100644 --- a/src/util.cc +++ b/src/util.cc @@ -102,7 +102,7 @@ dcp::make_digest (ArrayData data) { SHA_CTX sha; SHA1_Init (&sha); - SHA1_Update (&sha, data.data().get(), data.size()); + SHA1_Update (&sha, data.data(), data.size()); byte_t byte_buffer[SHA_DIGEST_LENGTH]; SHA1_Final (byte_buffer, &sha); char digest[64]; |
