Codebase list rust-stfu8 / 3f1a183
nitrokey - Restore changes for experimental Peter Michael Green 2 years ago
6 changed file(s) with 191 addition(s) and 43 deletion(s). Raw diff Collapse all Expand all
0 rust-nitrokey (0.3.4-3) unstable; urgency=medium
0 rust-nitrokey (0.4.0-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
11
22 * Team upload.
3 * Package nitrokey 0.3.4 from crates.io using debcargo 2.5.0
3 * Package nitrokey 0.4.0 from crates.io using debcargo 2.5.0
44 * Bump rand-core dependency to 0.6
55
6 -- Peter Michael Green <plugwash@debian.org> Sat, 05 Feb 2022 09:55:11 +0000
6 -- Peter Michael Green <plugwash@debian.org> Sat, 29 Jan 2022 11:57:36 +0000
7
8 rust-nitrokey (0.4.0-1) experimental; urgency=medium
9
10 * Package nitrokey 0.4.0 from crates.io using debcargo 2.4.1
11
12 -- Robin Krahl <robin.krahl@ireas.org> Wed, 15 Jan 2020 11:55:02 +0000
713
814 rust-nitrokey (0.3.4-2) unstable; urgency=medium
915
33 Source: https://git.ireas.org/nitrokey-rs/
44
55 Files: *
6 Copyright: 2018 Robin Krahl <robin.krahl@ireas.org>
6 Copyright: 2018-2020 Robin Krahl <robin.krahl@ireas.org>
77 License: MIT
8
9 Files: ./.gitignore
10 Copyright: 2019 Robin Krahl <robin.krahl@ireas.org>
11 License: CC0-1.0
12
13 Files: ./CHANGELOG.md
14 Copyright: 2019-2020 Robin Krahl <robin.krahl@ireas.org>
15 License: CC0-1.0
16
17 Files: ./Cargo.toml
18 Copyright: 2019-2020 Robin Krahl <robin.krahl@ireas.org>
19 License: CC0-1.0
20
21 Files: ./Cargo.toml.orig
22 Copyright: 2019-2020 Robin Krahl <robin.krahl@ireas.org>
23 License: CC0-1.0
24
25 Files: ./README.md
26 Copyright: 2019 Robin Krahl <robin.krahl@ireas.org>
27 License: CC0-1.0
28
29 Files: ./TODO.md
30 Copyright: 2019 Robin Krahl <robin.krahl@ireas.org>
31 License: CC0-1.0
832
933 Files: debian/*
1034 Copyright:
11 2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
12 2019 Robin Krahl <robin.krahl@ireas.org>
35 2019-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
36 2019-2020 Robin Krahl <robin.krahl@ireas.org>
1337 License: MIT
1438
1539 License: MIT
3054 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3155 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3256 SOFTWARE.
57
58 License: CC0-1.0
59 Debian systems provide the CC0 1.0 Universal License in
60 /usr/share/common-licenses/CC0-1.0
1111 be correct information so you should review and fix this before uploading to
1212 the archive.
1313
14 Files: ./LICENSE
14 Files: ./.gitignore
15 Copyright: 2019 Robin Krahl <robin.krahl@ireas.org>
16 License: UNKNOWN-LICENSE; FIXME (overlay)
17 Comment:
18 FIXME (overlay): These notices are extracted from files. Please review them
19 before uploading to the archive.
20
21 Files: ./CHANGELOG.md
22 Copyright: 2019-2020 Robin Krahl <robin.krahl@ireas.org>
23 License: UNKNOWN-LICENSE; FIXME (overlay)
24 Comment:
25 FIXME (overlay): These notices are extracted from files. Please review them
26 before uploading to the archive.
27
28 Files: ./Cargo.toml.orig
29 Copyright: 2019-2020 Robin Krahl <robin.krahl@ireas.org>
30 License: UNKNOWN-LICENSE; FIXME (overlay)
31 Comment:
32 FIXME (overlay): These notices are extracted from files. Please review them
33 before uploading to the archive.
34
35 Files: ./LICENSES/MIT.txt
1536 Copyright: 2018 Robin Krahl <robin.krahl@ireas.org>
37 License: UNKNOWN-LICENSE; FIXME (overlay)
38 Comment:
39 FIXME (overlay): These notices are extracted from files. Please review them
40 before uploading to the archive.
41
42 Files: ./README.md
43 Copyright: 2019 Robin Krahl <robin.krahl@ireas.org>
44 License: UNKNOWN-LICENSE; FIXME (overlay)
45 Comment:
46 FIXME (overlay): These notices are extracted from files. Please review them
47 before uploading to the archive.
48
49 Files: ./TODO.md
50 Copyright: 2019 Robin Krahl <robin.krahl@ireas.org>
51 License: UNKNOWN-LICENSE; FIXME (overlay)
52 Comment:
53 FIXME (overlay): These notices are extracted from files. Please review them
54 before uploading to the archive.
55
56 Files: ./src/auth.rs
57 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
58 License: UNKNOWN-LICENSE; FIXME (overlay)
59 Comment:
60 FIXME (overlay): These notices are extracted from files. Please review them
61 before uploading to the archive.
62
63 Files: ./src/config.rs
64 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
65 License: UNKNOWN-LICENSE; FIXME (overlay)
66 Comment:
67 FIXME (overlay): These notices are extracted from files. Please review them
68 before uploading to the archive.
69
70 Files: ./src/device/mod.rs
71 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
72 License: UNKNOWN-LICENSE; FIXME (overlay)
73 Comment:
74 FIXME (overlay): These notices are extracted from files. Please review them
75 before uploading to the archive.
76
77 Files: ./src/device/pro.rs
78 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
79 License: UNKNOWN-LICENSE; FIXME (overlay)
80 Comment:
81 FIXME (overlay): These notices are extracted from files. Please review them
82 before uploading to the archive.
83
84 Files: ./src/device/storage.rs
85 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
86 License: UNKNOWN-LICENSE; FIXME (overlay)
87 Comment:
88 FIXME (overlay): These notices are extracted from files. Please review them
89 before uploading to the archive.
90
91 Files: ./src/device/wrapper.rs
92 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
93 License: UNKNOWN-LICENSE; FIXME (overlay)
94 Comment:
95 FIXME (overlay): These notices are extracted from files. Please review them
96 before uploading to the archive.
97
98 Files: ./src/error.rs
99 Copyright: 2019 Robin Krahl <robin.krahl@ireas.org>
100 License: UNKNOWN-LICENSE; FIXME (overlay)
101 Comment:
102 FIXME (overlay): These notices are extracted from files. Please review them
103 before uploading to the archive.
104
105 Files: ./src/lib.rs
106 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
107 License: UNKNOWN-LICENSE; FIXME (overlay)
108 Comment:
109 FIXME (overlay): These notices are extracted from files. Please review them
110 before uploading to the archive.
111
112 Files: ./src/otp.rs
113 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
114 License: UNKNOWN-LICENSE; FIXME (overlay)
115 Comment:
116 FIXME (overlay): These notices are extracted from files. Please review them
117 before uploading to the archive.
118
119 Files: ./src/pws.rs
120 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
121 License: UNKNOWN-LICENSE; FIXME (overlay)
122 Comment:
123 FIXME (overlay): These notices are extracted from files. Please review them
124 before uploading to the archive.
125
126 Files: ./src/util.rs
127 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
128 License: UNKNOWN-LICENSE; FIXME (overlay)
129 Comment:
130 FIXME (overlay): These notices are extracted from files. Please review them
131 before uploading to the archive.
132
133 Files: ./tests/device.rs
134 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
135 License: UNKNOWN-LICENSE; FIXME (overlay)
136 Comment:
137 FIXME (overlay): These notices are extracted from files. Please review them
138 before uploading to the archive.
139
140 Files: ./tests/lib.rs
141 Copyright: 2019 Robin Krahl <robin.krahl@ireas.org>
142 License: UNKNOWN-LICENSE; FIXME (overlay)
143 Comment:
144 FIXME (overlay): These notices are extracted from files. Please review them
145 before uploading to the archive.
146
147 Files: ./tests/otp.rs
148 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
149 License: UNKNOWN-LICENSE; FIXME (overlay)
150 Comment:
151 FIXME (overlay): These notices are extracted from files. Please review them
152 before uploading to the archive.
153
154 Files: ./tests/pws.rs
155 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
156 License: UNKNOWN-LICENSE; FIXME (overlay)
157 Comment:
158 FIXME (overlay): These notices are extracted from files. Please review them
159 before uploading to the archive.
160
161 Files: ./tests/util/mod.rs
162 Copyright: 2018-2019 Robin Krahl <robin.krahl@ireas.org>
16163 License: UNKNOWN-LICENSE; FIXME (overlay)
17164 Comment:
18165 FIXME (overlay): These notices are extracted from files. Please review them
+0
-23
src/nitrokey/debian/patches/rand-core-0.5.patch less more
0 --- a/src/util.rs
1 +++ b/src/util.rs
2 @@ -4,8 +4,7 @@
3 use std::os::raw::{c_char, c_int};
4
5 use libc::{c_void, free};
6 -use rand_core::RngCore;
7 -use rand_os::OsRng;
8 +use rand_core::{RngCore, OsRng};
9
10 /// Error types returned by Nitrokey device or by the library.
11 #[derive(Clone, Copy, Debug, PartialEq)]
12 @@ -113,9 +112,8 @@
13 }
14
15 pub fn generate_password(length: usize) -> Result<Vec<u8>, CommandError> {
16 - let mut rng = OsRng::new()?;
17 let mut data = vec![0u8; length];
18 - rng.fill_bytes(&mut data[..]);
19 + OsRng.fill_bytes(&mut data[..]);
20 Ok(data)
21 }
22
00 --- a/Cargo.toml
11 +++ b/Cargo.toml
2 @@ -30,11 +30,9 @@
3 version = "3.4"
4
2 @@ -36,3 +36,3 @@
53 [dependencies.rand_core]
6 -version = "0.3"
7 -default-features = false
4 -version = "0.5.1"
85 +version = "0.6"
9 +features = ["getrandom"]
10
11 -[dependencies.rand_os]
12 -version = "0.1"
13 [dev-dependencies.nitrokey-test]
14 version = "0.1"
15
6 features = ["getrandom"]
00 relax-dep-versions.patch
1 rand-core-0.5.patch