[poppler] poppler/NSSCryptoSignBackend.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 3 13:35:30 UTC 2023


 poppler/NSSCryptoSignBackend.cc |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit c46203cb5a9c57ba039658d305d6ed8e450d51e8
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Jul 3 15:25:27 2023 +0200

    Add a few new NSS enums to ConvertHashTypeFromNss

diff --git a/poppler/NSSCryptoSignBackend.cc b/poppler/NSSCryptoSignBackend.cc
index 6e9c1396..ab0d2890 100644
--- a/poppler/NSSCryptoSignBackend.cc
+++ b/poppler/NSSCryptoSignBackend.cc
@@ -474,6 +474,13 @@ static HashAlgorithm ConvertHashTypeFromNss(HASH_HashType type)
         return HashAlgorithm::Sha512;
     case HASH_AlgSHA224:
         return HashAlgorithm::Sha224;
+#if NSS_VMAJOR >= 3 && NSS_VMINOR >= 91
+    // TODO Expose this in HashAlgorithm if PDF supports them
+    case HASH_AlgSHA3_224:
+    case HASH_AlgSHA3_256:
+    case HASH_AlgSHA3_384:
+    case HASH_AlgSHA3_512:
+#endif
     case HASH_AlgNULL:
     case HASH_AlgTOTAL:
         return HashAlgorithm::Unknown;


More information about the poppler mailing list