Fix warnings and build issues
This commit is contained in:
parent
5adbe4b362
commit
ac24bc5422
|
|
@ -23,7 +23,7 @@ version = "0.5.0"
|
||||||
libc = "0.1"
|
libc = "0.1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rustc-serialize = "0.2"
|
rustc-serialize = "0.3"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "0.1.1"
|
bitflags = "0.1.1"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
#![feature(unsafe_destructor, core, io, std_misc, net, path, unique)]
|
#![feature(unsafe_destructor, core, io, std_misc, unique)]
|
||||||
#![cfg_attr(test, feature(net))]
|
|
||||||
#![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/openssl")]
|
#![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/openssl")]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
||||||
|
|
@ -521,7 +521,7 @@ make_validation_error!(X509_V_OK,
|
||||||
#[test]
|
#[test]
|
||||||
fn test_negative_serial() {
|
fn test_negative_serial() {
|
||||||
// I guess that's enough to get a random negative number
|
// I guess that's enough to get a random negative number
|
||||||
for _ in range(0, 1000) {
|
for _ in 0..1000 {
|
||||||
assert!(X509Generator::random_serial() > 0, "All serials should be positive");
|
assert!(X509Generator::random_serial() > 0, "All serials should be positive");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue