Codebase list rust-serde-xml-rs / c5d9337
libsystemd - update dependencies. Peter Michael Green 1 year, 10 months ago
6 changed file(s) with 49 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
0 rust-libsystemd (0.2.1-3) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package libsystemd 0.2.1 from crates.io using debcargo 2.5.0
4 * Update sha2 and hmac dependencies and update hmac patch to suit
5 new version.
6
7 -- Peter Michael Green <plugwash@debian.org> Thu, 02 Jun 2022 20:19:12 +0000
8
09 rust-libsystemd (0.2.1-2) unstable; urgency=medium
110
211 * Bump sha2 dependency.
88
99 Files: debian/*
1010 Copyright:
11 2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
11 2020-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
1212 2020 Andrej Shadura <andrewsh@debian.org>
1313 License: Expat or Apache-2.0
1414
2020
2121 Files: debian/*
2222 Copyright:
23 2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2020 Andrej Shadura <andrewsh@debian.org>
23 2020-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2020-2022 Andrej Shadura <andrewsh@debian.org>
2525 License: MIT or Apache-2.0
2626
2727 License: Apache-2.0
44
55 [dependencies.sha2]
66 -version = "0.8"
7 +version = "0.9"
7 +version = "0.10"
88
99 [dependencies.uuid]
1010 version = "^0.8.1"
0 This patch is based on the 3 upstream commits described below.
1
02 From 81c0f195210df9d9a4c875cc03b84e6391b140b5 Mon Sep 17 00:00:00 2001
13 From: Luca BRUNO <luca.bruno@coreos.com>
24 Date: Thu, 11 Jun 2020 11:57:57 +0000
35 Subject: [PATCH] id128: update to new hmac API
46
5 ---
6 src/id128.rs | 6 +++---
7 1 file changed, 3 insertions(+), 3 deletions(-)
7 commit 67f4c3c306783c0a0758370abe1e918c74c237f9
8 Author: Zhang Jingqiang <zh_jq@outlook.com>
9 Date: Fri Dec 17 19:42:21 2021 +0800
810
9 --- a/src/id128.rs
10 +++ b/src/id128.rs
11 @@ -37,13 +37,13 @@ impl Id128 {
12
13 /// Hash this ID with an application-specific ID.
14 pub fn app_specific(&self, app: &Self) -> Result<Self> {
15 - use hmac::{Hmac, Mac};
16 + use hmac::{Hmac, Mac, NewMac};
11 update sha2 and hmac to new version
12
13 commit 7c760aafee0408c6e7192bcbea1fb9ef6ed69fd9
14 Author: Luca BRUNO <luca.bruno@coreos.com>
15 Date: Tue Jun 1 08:47:35 2021 +0000
16
17 id128: update to new hmac API
18
19 Index: libsystemd/src/id128.rs
20 ===================================================================
21 --- libsystemd.orig/src/id128.rs
22 +++ libsystemd/src/id128.rs
23 @@ -40,10 +40,10 @@ impl Id128 {
24 use hmac::{Hmac, Mac};
1725 use sha2::Sha256;
1826
19 let mut mac = Hmac::<Sha256>::new_varkey(self.uuid_v4.as_bytes())
27 - let mut mac = Hmac::<Sha256>::new_varkey(self.uuid_v4.as_bytes())
28 + let mut mac = Hmac::<Sha256>::new_from_slice(self.uuid_v4.as_bytes())
2029 .map_err(|_| "failed to prepare HMAC")?;
2130 - mac.input(app.uuid_v4.as_bytes());
2231 - let mut hashed = mac.result().code();
2534
2635 ensure!(hashed.len() == 32, "short hash");
2736
28 --- a/Cargo.toml
29 +++ b/Cargo.toml
37 Index: libsystemd/Cargo.toml
38 ===================================================================
39 --- libsystemd.orig/Cargo.toml
40 +++ libsystemd/Cargo.toml
3041 @@ -35,7 +35,7 @@ version = "^0.12.1"
3142 default-features = false
3243
3344 [dependencies.hmac]
3445 -version = "0.7"
35 +version = "0.10"
46 +version = "0.12"
3647
3748 [dependencies.libc]
3849 version = "0.2"
0 --- a/Cargo.toml
1 +++ b/Cargo.toml
0 Index: libsystemd/Cargo.toml
1 ===================================================================
2 --- libsystemd.orig/Cargo.toml
3 +++ libsystemd/Cargo.toml
24 @@ -41,10 +41,10 @@ version = "0.7"
35 version = "0.2"
46
1214 features = ["derive"]
1315
1416 [dependencies.sha2]
17 @@ -54,4 +54,4 @@ version = "0.8"
18 version = "^0.8.1"
19 features = ["serde"]
20 [dev-dependencies.quickcheck]
21 -version = "0.9"
22 +version = "1"