Skip to content

Commit 4c03591

Browse files
committed
Bump
1 parent 735bbe0 commit 4c03591

File tree

6 files changed

+25
-24
lines changed

6 files changed

+25
-24
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# rust-security-framework
22

3-
[![CircleCI](https://circleci.com/gh/sfackler/rust-security-framework.svg?style=shield)](https://circleci.com/gh/sfackler/rust-security-framework) [![Latest Version](https://img.shields.io/crates/v/security-framework.svg)](https://crates.io/crates/security-framework)
3+
[![Latest Version](https://img.shields.io/crates/v/security-framework.svg)](https://crates.rs/crates/security-framework)
44

5-
[Documentation](https://sfackler.github.io/rust-security-framework/doc/v0.2/security_framework)
5+
[Documentation](https://kornelski.github.io/rust-security-framework/doc/security_framework/)
66

7-
Bindings to the macOS Security Framework.
7+
Bindings to the Apple's `Security.framework`. Allows use of TLS and Keychain from Rust.
88

99
## License
1010

security-framework-sys/Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
[package]
22
name = "security-framework-sys"
3-
version = "0.2.2"
4-
authors = ["Steven Fackler <[email protected]>"]
3+
version = "0.2.3"
4+
authors = ["Steven Fackler <[email protected]>", "Kornel <[email protected]>"]
55
license = "MIT/Apache-2.0"
6-
description = "Security Framework bindings"
6+
description = "Apple `Security.framework` low-level FFI bindings"
77
repository = "https://github.com/kornelski/rust-security-framework"
8+
homepage = "https://crates.rs/crates/security-framework-sys"
89
documentation = "https://kornelski.github.io/rust-security-framework/doc/v0.2/security_framework_sys"
910
readme = "README.md"
1011
keywords = ["ffi", "iOS", "TLS", "SSL", "crypto"]
1112
categories = ["os::macos-apis", "external-ffi-bindings"]
1213
build = "build.rs"
1314

1415
[dependencies]
15-
libc = "0.2"
16-
MacTypes-sys = "1.1.0"
1716
core-foundation-sys = "0.5.1"
17+
libc = "0.2.47"
18+
MacTypes-sys = "2.1.0"
1819

1920
[features]
2021
OSX_10_9 = []

security-framework/Cargo.toml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
[package]
22
name = "security-framework"
3-
version = "0.2.1"
4-
authors = ["Steven Fackler <[email protected]>"]
3+
version = "0.2.2"
4+
authors = ["Steven Fackler <[email protected]>", "Kornel <[email protected]>"]
55
license = "MIT/Apache-2.0"
6-
description = "Security Framework bindings"
7-
repository = "https://github.com/sfackler/rust-security-framework"
8-
documentation = "https://sfackler.github.io/rust-security-framework/doc/v0.2/security_framework"
9-
readme = "../README.md"
10-
keywords = ["OSX", "iOS", "TLS", "SSL", "crypto"]
6+
description = "Security.framework bindings for macOS and iOS"
7+
repository = "https://github.com/kornelski/rust-security-framework"
8+
documentation = "https://kornelski.github.io/rust-security-framework/doc/security_framework/"
9+
homepage = "https://crates.rs/crates/security_framework"
1110
categories = ["os::macos-apis", "cryptography", "api-bindings"]
11+
readme = "README.md"
12+
keywords = ["iOS", "TLS", "SSL", "crypto", "keychain"]
1213
exclude = ["test/*"]
1314

1415
[dependencies]
15-
security-framework-sys = { version = "0.2.1", path = "../security-framework-sys" }
16+
security-framework-sys = { version = "0.2.3", path = "../security-framework-sys" }
1617
core-foundation = "0.5.1"
1718
core-foundation-sys = "0.5.1"
1819
libc = "0.2"
1920

2021
[dev-dependencies]
2122
tempdir = "0.3"
22-
hex = "0.2"
23+
hex = "0.3"
2324

2425
[features]
2526
alpn = []

security-framework/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

security-framework/src/os/macos/digest_transform.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ impl Builder {
140140
#[cfg(test)]
141141
mod test {
142142
use core_foundation::data::CFData;
143-
use hex::ToHex;
144-
143+
use hex;
145144
use super::*;
146145

147146
#[test]
@@ -151,7 +150,7 @@ mod test {
151150
.type_(DigestType::md5())
152151
.execute(&data)
153152
.unwrap();
154-
assert_eq!(hash.bytes().to_hex(), "9e107d9d372bb6826bd81d3542a419d6");
153+
assert_eq!(hex::encode(hash.bytes()), "9e107d9d372bb6826bd81d3542a419d6");
155154
}
156155

157156
#[test]
@@ -164,7 +163,7 @@ mod test {
164163
.execute(&data)
165164
.unwrap();
166165
assert_eq!(
167-
hash.bytes().to_hex(),
166+
hex::encode(hash.bytes()),
168167
"de7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9"
169168
);
170169
}

security-framework/src/os/macos/import_export.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,8 @@ pub struct SecItems {
228228

229229
#[cfg(test)]
230230
mod test {
231-
use hex::ToHex;
232231
use tempdir::TempDir;
233-
232+
use hex;
234233
use super::*;
235234
use import_export::*;
236235
use os::macos::keychain;
@@ -325,7 +324,7 @@ mod test {
325324
.import(data));
326325
assert_eq!(1, identities.len());
327326
assert_eq!(
328-
identities[0].key_id.as_ref().unwrap().to_hex(),
327+
hex::encode(identities[0].key_id.as_ref().unwrap()),
329328
"ed6492936dcc8907e397e573b36e633458dc33f1"
330329
);
331330
}

0 commit comments

Comments
 (0)