fix build with new openssl

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 7 years ago
parent 7c4052e696
commit 7220ebe3bb

@ -0,0 +1,26 @@
From fdc4e5c7507f8beb55326357bce4a7f90f97a953 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Sat, 13 Jan 2018 11:15:25 +0100
Subject: [PATCH] deps: update openssl to 0.10
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib.rs b/src/lib.rs
index e29f263..29cb09b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -526,7 +526,7 @@ mod tests {
m.update(&bytes[..len]);
r.update(&bytes[..len]).unwrap();
}
- assert_eq!(r.finish2().unwrap().as_ref(), &m.digest().bytes());
+ assert_eq!(r.finish().unwrap().as_ref(), &m.digest().bytes());
}
}
}
--
2.15.1

@ -16,6 +16,8 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
# * Bump rand to 0.4, https://github.com/mitsuhiko/rust-sha1/pull/26 # * Bump rand to 0.4, https://github.com/mitsuhiko/rust-sha1/pull/26
# * Bump openssl to 0.10, https://github.com/mitsuhiko/rust-sha1/pull/28 # * Bump openssl to 0.10, https://github.com/mitsuhiko/rust-sha1/pull/28
Patch0: sha1-0.4.0-fix-metadata.diff Patch0: sha1-0.4.0-fix-metadata.diff
# Make it work with openssl v0.10
Patch1: 0001-deps-update-openssl-to-0.10.patch
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}

Loading…
Cancel
Save