From 48e87acf77fb35f2c1a5cdad29f07ec0e4a26f3a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 9 Oct 2013 10:43:22 +0100 Subject: Avoid use of pipes in openssl hackery. --- src/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util.cc') 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* 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 -- cgit v1.2.3