diff options
author | Ingo Klöcker <kloecker@kde.org> | 2023-03-02 13:18:45 +0000 |
---|---|---|
committer | Sune Vuorela <sune@vuorela.dk> | 2023-03-02 13:18:45 +0000 |
commit | c109770d59cb81d3dc8f3ab8a3ab7795e3583478 (patch) | |
tree | c46951f4eb2c27c390b9ef09af1a636fd2b1a941 | |
parent | 56fc0b14214feb50c377c725bc55d53738881532 (diff) |
add const
-rw-r--r-- | poppler/SignatureHandler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/SignatureHandler.cc b/poppler/SignatureHandler.cc index 0ea44e46..7e475224 100644 --- a/poppler/SignatureHandler.cc +++ b/poppler/SignatureHandler.cc @@ -895,7 +895,7 @@ HASHContext *SignatureHandler::initHashContext() { SECItem usedAlgorithm = NSS_CMSSignedData_GetDigestAlgs(CMSSignedData)[0]->algorithm; - auto hashAlgorithm = SECOID_FindOIDTag(&usedAlgorithm); + const auto hashAlgorithm = SECOID_FindOIDTag(&usedAlgorithm); hash_length = digestLength(ConvertHashAlgorithmFromNss(hashAlgorithm)); HASH_HashType hashType; hashType = HASH_GetHashTypeByOidTag(hashAlgorithm); |