Closed alwendya closed 2 years ago
@alwendya, I reported an issue to Upstream to confirm this issue, see https://github.com/libarchive/libarchive/issues/1607.
@PhoebeHui , thanks for your implication and for searching the root of this issue. Hope the LibArchive Teams will answer quickly to solve it. Thanks again to you and the Vcpkg team!
By the way, do you think there is a possibility to provide a temporary patch file ? ( I tried to create one by myself but I'm not a pro in GIT patch file and sadly, it's not working...)
By the way, do you think there is a possibility to provide a temporary patch file ? ( I tried to create one by myself but I'm not a pro in GIT patch file and sadly, it's not working...)
Yeah we can do that, but need the upstream approval first.
Is there any movement on this?
Close this PR until upstream fixes this.
I used VCPKG to build libarchive 3.5.2#1 with triplet x64-windows-static and the following addon :
When I use LibArchive (following LibArchive code sample) to create zip file , tar file, 7z file, it work fine. I intended to use encryption to zip file and it works for the ZipCrypt encryption (function archive_write_set_options(a, "encryption=zipcrypt")). But when I use the other parameter for AES128 or 256 (archive_write_set_options(a, "encryption=aes128")) I get an error code
encryption not supported
. Backtracking source file I managed to find in the filearchive_cryptor_private.h
the code#elif defined(HAVE_LIBCRYPTO)
supposing openssl is needed for AES encryption to work. I linked libssl.lib end libcrytpo.lib build by vcpkg, compilation is fine but I still got the error during code execution.Anyone got this problem ?
Here is the whole library linked in VS2019 :
Here is the code used :