summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-10-09 10:43:22 +0100
committerCarl Hetherington <cth@carlh.net>2013-10-09 10:43:22 +0100
commit48e87acf77fb35f2c1a5cdad29f07ec0e4a26f3a (patch)
tree99f929830620ea331490edc14cf02b9f0c88368e /src/util.cc
parent259113a96dc9dfbef0b26ff2e142ee673abcd53d (diff)
Avoid use of pipes in openssl hackery.
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cc b/src/util.cc
index 11052df6..ea014bc7 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -111,11 +111,11 @@ libdcp::make_digest (string filename, boost::function<void (float)>* progress)
}
}
- byte_t byte_buffer[20];
+ byte_t byte_buffer[SHA_DIGEST_LENGTH];
SHA1_Final (byte_buffer, &sha);
char digest[64];
- return Kumu::base64encode (byte_buffer, 20, digest, 64);
+ return Kumu::base64encode (byte_buffer, SHA_DIGEST_LENGTH, digest, 64);
}
/** Convert a content kind to a string which can be used in a