Summary(pl.UTF-8): Odczyt wolumenów szyfrowanych BitLockerem spod Linuksa
Name: dislocker
Version: 0.7.3
-Release: 2
+Release: 3
License: GPL v2+
Group: Applications/File
#Source0Download: https://github.com/Aorimn/dislocker/releases
Source0: https://github.com/Aorimn/dislocker/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: ff1a5a0120cedf04c6146da91dfbd27c
+Patch0: mbedtls.patch
URL: https://github.com/Aorimn/dislocker
BuildRequires: cmake >= 2.6
BuildRequires: libfuse-devel
%prep
%setup -q
+%patch0 -p1
%{__sed} -i -e '1s,/usr/bin/env ruby,/usr/bin/ruby,' src/dislocker-find.rb.in
--- /dev/null
+--- dislocker-0.7.3.org/include/dislocker/ssl_bindings.h.in 2020-11-17 21:29:35.000000000 +0100
++++ dislocker-0.7.3/include/dislocker/ssl_bindings.h.in 2022-04-22 10:29:58.349841704 +0200
+@@ -26,14 +26,14 @@
+ /*
+ * Here stand the bindings for polarssl SHA256/SHA2/SHA-2 function for dislocker
+ */
+-#include "@POLARSSL_INC_FOLDER@/config.h"
++#include "@POLARSSL_INC_FOLDER@/build_info.h"
+ #include "@POLARSSL_INC_FOLDER@/version.h"
+ #include "@POLARSSL_INC_FOLDER@/aes.h"
+
+ // Function's name changed
+ #if defined(MBEDTLS_SHA256_C)
+ # include "mbedtls/sha256.h"
+-# if MBEDTLS_VERSION_NUMBER >= 0x02070000
++# if MBEDTLS_VERSION_NUMBER >= 0x02070000 && MBEDTLS_VERSION_NUMBER < 0x03000000
+ # define SHA256(input, len, output) mbedtls_sha256_ret(input, len, output, 0)
+ # else
+ # define SHA256(input, len, output) mbedtls_sha256(input, len, output, 0)