diff options
Diffstat (limited to 'libqpdf/QPDFCrypto_openssl.cc')
-rw-r--r-- | libqpdf/QPDFCrypto_openssl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libqpdf/QPDFCrypto_openssl.cc b/libqpdf/QPDFCrypto_openssl.cc index 87591eb5..92125b45 100644 --- a/libqpdf/QPDFCrypto_openssl.cc +++ b/libqpdf/QPDFCrypto_openssl.cc @@ -83,8 +83,8 @@ static void check_openssl(int status) { if (status != 1) { - // OpenSSL creates a "queue" of errors; copy the first (innermost) - // error to the exception message. + // OpenSSL creates a "queue" of errors; copy the first (innermost) error to the exception + // message. char buf[256] = ""; ERR_error_string_n(ERR_get_error(), buf, sizeof(buf)); std::string what = "OpenSSL error: "; @@ -194,7 +194,7 @@ QPDFCrypto_openssl::MD5_digest(MD5_Digest d) std::string QPDFCrypto_openssl::SHA2_digest() { - return std::string(reinterpret_cast<char*>(md_out), sha2_bits / 8); + return {reinterpret_cast<char*>(md_out), sha2_bits / 8}; } void |