Fix windows and python 3.7

This commit is contained in:
Romain Thomas 2021-01-05 20:47:18 +01:00
parent 634c2fc98e
commit ec9115a3d1
4 changed files with 3 additions and 3 deletions

View File

@ -228,8 +228,8 @@ endif()
# Boost leaf
# ----------
set(LEAF_VERSION 0.3.0)
set(LEAF_SHA256 SHA256=0a256cba80d9ec53adece74d231c28a79ddb7d96e8f79daeed72cad0c7855dfe )
set(LEAF_VERSION 0.3.1) # Custom fix to remove use of SUBLANG_DEFAULT in common.hpp and all.hpp
set(LEAF_SHA256 SHA256=b925413d165cb841e560e44438dc6ad6bfcbf537d526a51489d518ad381a4c11 )
set(LEAF_URL "${THIRD_PARTY_DIRECTORY}/leaf-${LEAF_VERSION}.zip" CACHE STRING "URL to Leaf")
ExternalProject_Add(lief_leaf # :)
URL ${LEAF_URL}

View File

@ -89,7 +89,7 @@ class TestAuthenticode(TestCase):
self.assertEqual(signer.issuer, "C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert SHA2 Assured ID Code Signing CA")
self.assertEqual(signer.digest_algorithm, lief.PE.ALGORITHMS.SHA_256)
self.assertEqual(signer.encryption_algorithm, lief.PE.ALGORITHMS.RSA)
self.assertEqual(signer.encrypted_digest.hex(":")[:23], "75:8d:b1:f4:80:eb:25:ba")
self.assertEqual(signer.encrypted_digest.hex()[:16], "758db1f480eb25ba")
self.assertEqual(hash(signer.cert), hash(cert_signer))
# Check authenticated attributes

Binary file not shown.

BIN
third-party/leaf-0.3.1.zip vendored Normal file

Binary file not shown.