Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'cargo install rustup-toolchain-install-master' failed in macOS Mojave #17

Open
rchaser53 opened this issue Mar 2, 2019 · 1 comment

Comments

@rchaser53
Copy link

cargo install rustup-toolchain-install-master failed
The error message is Could not compile `security-framework`

rustc version

rustc 1.34.0-nightly (f66e4697a 2019-02-20)
binary: rustc
commit-hash: f66e4697ae286985ddefc53c3a047614568458bb
commit-date: 2019-02-20
host: x86_64-apple-darwin
release: 1.34.0-nightly
LLVM version: 8.0

cargo version

cargo 1.34.0-nightly (865cb7010 2019-02-10)
release: 1.34.0
commit-hash: 865cb70106a6b1171a500ff68f93ab52eea56e72
commit-date: 2019-02-10
error detail error[E0308]: mismatched types --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/base.rs:49:55 | 49 | Some(CFString::wrap_under_create_rule(s).to_string()) | ^ expected struct `core_foundation::string::__CFString`, found struct `core_foundation_sys::string::__CFString` | = note: expected type `*const core_foundation::string::__CFString` found type `*const core_foundation_sys::string::__CFString` note: Perhaps two different versions of crate `core_foundation_sys` are being used? --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/base.rs:49:55 | 49 | Some(CFString::wrap_under_create_rule(s).to_string()) | ^

Compiling phf_generator v0.7.24
error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:36:67
|
36 | SecCertificateCreateWithData(kCFAllocatorDefault, der_data.as_concrete_TypeRef());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::data::__CFData, found struct core_foundation::data::__CFData
|
= note: expected type *const core_foundation_sys::data::__CFData
found type *const core_foundation::data::__CFData
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:36:67
|
36 | SecCertificateCreateWithData(kCFAllocatorDefault, der_data.as_concrete_TypeRef());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:49:44
|
49 | CFData::wrap_under_create_rule(der_data).to_vec()
| ^^^^^^^^ expected struct core_foundation::data::__CFData, found struct core_foundation_sys::data::__CFData
|
= note: expected type *const core_foundation::data::__CFData
found type *const core_foundation_sys::data::__CFData
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:49:44
|
49 | CFData::wrap_under_create_rule(der_data).to_vec()
| ^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:57:46
|
57 | CFString::wrap_under_create_rule(summary).to_string()
| ^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:57:46
|
57 | CFString::wrap_under_create_rule(summary).to_string()
| ^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:100:51
|
100 | CFString::wrap_under_get_rule(kSecImportExportPassphrase),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:100:51
|
100 | CFString::wrap_under_get_rule(kSecImportExportPassphrase),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:111:17
|
111 | pkcs12_data.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::data::__CFData, found struct core_foundation::data::__CFData
|
= note: expected type *const core_foundation_sys::data::__CFData
found type *const core_foundation::data::__CFData
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:111:17
|
111 | pkcs12_data.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:112:17
|
112 | options.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::dictionary::__CFDictionary, found struct core_foundation::dictionary::__CFDictionary
|
= note: expected type *const core_foundation_sys::dictionary::__CFDictionary
found type *const core_foundation::dictionary::__CFDictionary
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:112:17
|
112 | options.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:115:77
|
115 | let raw_items = CFArray::::wrap_under_create_rule(raw_items);
| ^^^^^^^^^ expected struct core_foundation::array::__CFArray, found struct core_foundation_sys::array::__CFArray
|
= note: expected type *const core_foundation::array::__CFArray
found type *const core_foundation_sys::array::__CFArray
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:115:77
|
115 | let raw_items = CFArray::::wrap_under_create_rule(raw_items);
| ^^^^^^^^^

Compiling tempfile v3.0.7
error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:160:51
|
160 | CFString::wrap_under_get_rule(kSecImportExportKeychain),
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:160:51
|
160 | CFString::wrap_under_get_rule(kSecImportExportKeychain),
| ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:167:51
|
167 | CFString::wrap_under_get_rule(kSecImportExportAccess),
| ^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:167:51
|
167 | CFString::wrap_under_get_rule(kSecImportExportAccess),
| ^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:30:28
|
30 | unsafe { ItemClass(kSecClassGenericPassword) }
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:30:28
|
30 | unsafe { ItemClass(kSecClassGenericPassword) }
| ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:35:28
|
35 | unsafe { ItemClass(kSecClassInternetPassword) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:35:28
|
35 | unsafe { ItemClass(kSecClassInternetPassword) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:40:28
|
40 | unsafe { ItemClass(kSecClassCertificate) }
| ^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:40:28
|
40 | unsafe { ItemClass(kSecClassCertificate) }
| ^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:45:28
|
45 | unsafe { ItemClass(kSecClassKey) }
| ^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:45:28
|
45 | unsafe { ItemClass(kSecClassKey) }
| ^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:50:28
|
50 | unsafe { ItemClass(kSecClassIdentity) }
| ^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:50:28
|
50 | unsafe { ItemClass(kSecClassIdentity) }
| ^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:128:51
|
128 | CFString::wrap_under_get_rule(kSecMatchSearchList),
| ^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:128:51
|
128 | CFString::wrap_under_get_rule(kSecMatchSearchList),
| ^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:134:60
|
134 | params.push((CFString::wrap_under_get_rule(kSecClass), class.to_value()));
| ^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:134:60
|
134 | params.push((CFString::wrap_under_get_rule(kSecClass), class.to_value()));
| ^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:139:51
|
139 | CFString::wrap_under_get_rule(kSecReturnRef),
| ^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:139:51
|
139 | CFString::wrap_under_get_rule(kSecReturnRef),
| ^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:146:51
|
146 | CFString::wrap_under_get_rule(kSecMatchLimit),
| ^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:146:51
|
146 | CFString::wrap_under_get_rule(kSecMatchLimit),
| ^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:153:51
|
153 | CFString::wrap_under_get_rule(kSecAttrLabel),
| ^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:153:51
|
153 | CFString::wrap_under_get_rule(kSecAttrLabel),
| ^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:161:37
|
161 | cvt(SecItemCopyMatching(params.as_concrete_TypeRef(), &mut ret))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::dictionary::__CFDictionary, found struct core_foundation::dictionary::__CFDictionary
|
= note: expected type *const core_foundation_sys::dictionary::__CFDictionary
found type *const core_foundation::dictionary::__CFDictionary
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/item.rs:161:37
|
161 | cvt(SecItemCopyMatching(params.as_concrete_TypeRef(), &mut ret))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:42:49
|
42 | Ok(CFString::wrap_under_create_rule(string).to_string())
| ^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:42:49
|
42 | Ok(CFString::wrap_under_create_rule(string).to_string())
| ^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:74:83
|
74 | let dictionary = SecCertificateCopyValues(self.as_concrete_TypeRef(), keys, &mut error);
| ^^^^ expected struct core_foundation_sys::array::__CFArray, found struct core_foundation::array::__CFArray
|
= note: expected type *const core_foundation_sys::array::__CFArray
found type *const core_foundation::array::__CFArray
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:74:83
|
74 | let dictionary = SecCertificateCopyValues(self.as_concrete_TypeRef(), keys, &mut error);
| ^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:78:21
|
78 | dictionary,
| ^^^^^^^^^^ expected struct core_foundation::dictionary::__CFDictionary, found struct core_foundation_sys::dictionary::__CFDictionary
|
= note: expected type *const core_foundation::dictionary::__CFDictionary
found type *const core_foundation_sys::dictionary::__CFDictionary
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:78:21
|
78 | dictionary,
| ^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:81:53
|
81 | Err(CFError::wrap_under_create_rule(error))
| ^^^^^ expected struct core_foundation::error::__CFError, found struct core_foundation_sys::error::__CFError
|
= note: expected type *mut core_foundation::error::__CFError
found type *mut core_foundation_sys::error::__CFError
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:81:53
|
81 | Err(CFError::wrap_under_create_rule(error))
| ^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:122:55
|
122 | if type_ == CFString::wrap_under_get_rule(kSecPropertyTypeSection) {
| ^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:122:55
|
122 | if type_ == CFString::wrap_under_get_rule(kSecPropertyTypeSection) {
| ^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:126:62
|
126 | } else if type_ == CFString::wrap_under_get_rule(kSecPropertyTypeString) {
| ^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate.rs:126:62
|
126 | } else if type_ == CFString::wrap_under_get_rule(kSecPropertyTypeString) {
| ^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate_oids.rs:13:33
|
13 | unsafe { CertificateOid(kSecOIDX509V1SignatureAlgorithm) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/certificate_oids.rs:13:33
|
13 | unsafe { CertificateOid(kSecOIDX509V1SignatureAlgorithm) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:23:29
|
23 | unsafe { DigestType(kSecDigestHMACMD5) }
| ^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:23:29
|
23 | unsafe { DigestType(kSecDigestHMACMD5) }
| ^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:27:29
|
27 | unsafe { DigestType(kSecDigestHMACSHA1) }
| ^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:27:29
|
27 | unsafe { DigestType(kSecDigestHMACSHA1) }
| ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:31:29
|
31 | unsafe { DigestType(kSecDigestHMACSHA2) }
| ^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:31:29
|
31 | unsafe { DigestType(kSecDigestHMACSHA2) }
| ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:35:29
|
35 | unsafe { DigestType(kSecDigestMD2) }
| ^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:35:29
|
35 | unsafe { DigestType(kSecDigestMD2) }
| ^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:39:29
|
39 | unsafe { DigestType(kSecDigestMD4) }
| ^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:39:29
|
39 | unsafe { DigestType(kSecDigestMD4) }
| ^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:43:29
|
43 | unsafe { DigestType(kSecDigestMD5) }
| ^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:43:29
|
43 | unsafe { DigestType(kSecDigestMD5) }
| ^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:47:29
|
47 | unsafe { DigestType(kSecDigestSHA1) }
| ^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:47:29
|
47 | unsafe { DigestType(kSecDigestSHA1) }
| ^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:51:29
|
51 | unsafe { DigestType(kSecDigestSHA2) }
| ^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:51:29
|
51 | unsafe { DigestType(kSecDigestSHA2) }
| ^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:120:60
|
120 | return Err(CFError::wrap_under_create_rule(error));
| ^^^^^ expected struct core_foundation::error::__CFError, found struct core_foundation_sys::error::__CFError
|
= note: expected type *mut core_foundation::error::__CFError
found type *mut core_foundation_sys::error::__CFError
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:120:60
|
120 | return Err(CFError::wrap_under_create_rule(error));
| ^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:125:57
|
125 | let key = CFString::wrap_under_get_rule(kSecDigestHMACKeyAttribute);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:125:57
|
125 | let key = CFString::wrap_under_get_rule(kSecDigestHMACKeyAttribute);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:129:53
|
129 | let key = CFString::wrap_under_get_rule(kSecTransformInputAttributeName);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/digest_transform.rs:129:53
|
129 | let key = CFString::wrap_under_get_rule(kSecTransformInputAttributeName);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:23:26
|
23 | unsafe { Padding(kSecPaddingNoneKey) }
| ^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:23:26
|
23 | unsafe { Padding(kSecPaddingNoneKey) }
| ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:28:26
|
28 | unsafe { Padding(kSecPaddingPKCS1Key) }
| ^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:28:26
|
28 | unsafe { Padding(kSecPaddingPKCS1Key) }
| ^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:33:26
|
33 | unsafe { Padding(kSecPaddingPKCS5Key) }
| ^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:33:26
|
33 | unsafe { Padding(kSecPaddingPKCS5Key) }
| ^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:38:26
|
38 | unsafe { Padding(kSecPaddingPKCS7Key) }
| ^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:38:26
|
38 | unsafe { Padding(kSecPaddingPKCS7Key) }
| ^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:43:26
|
43 | unsafe { Padding(kSecPaddingOAEPKey) }
| ^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:43:26
|
43 | unsafe { Padding(kSecPaddingOAEPKey) }
| ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:60:23
|
60 | unsafe { Mode(kSecModeNoneKey) }
| ^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:60:23
|
60 | unsafe { Mode(kSecModeNoneKey) }
| ^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:64:23
|
64 | unsafe { Mode(kSecModeECBKey) }
| ^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:64:23
|
64 | unsafe { Mode(kSecModeECBKey) }
| ^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:68:23
|
68 | unsafe { Mode(kSecModeCBCKey) }
| ^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:68:23
|
68 | unsafe { Mode(kSecModeCBCKey) }
| ^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:72:23
|
72 | unsafe { Mode(kSecModeCFBKey) }
| ^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:72:23
|
72 | unsafe { Mode(kSecModeCFBKey) }
| ^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:76:23
|
76 | unsafe { Mode(kSecModeOFBKey) }
| ^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:76:23
|
76 | unsafe { Mode(kSecModeOFBKey) }
| ^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:128:60
|
128 | return Err(CFError::wrap_under_create_rule(error));
| ^^^^^ expected struct core_foundation::error::__CFError, found struct core_foundation_sys::error::__CFError
|
= note: expected type *mut core_foundation::error::__CFError
found type *mut core_foundation_sys::error::__CFError
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:128:60
|
128 | return Err(CFError::wrap_under_create_rule(error));
| ^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:142:60
|
142 | return Err(CFError::wrap_under_create_rule(error));
| ^^^^^ expected struct core_foundation::error::__CFError, found struct core_foundation_sys::error::__CFError
|
= note: expected type *mut core_foundation::error::__CFError
found type *mut core_foundation_sys::error::__CFError
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:142:60
|
142 | return Err(CFError::wrap_under_create_rule(error));
| ^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:153:57
|
153 | let key = CFString::wrap_under_get_rule(kSecPaddingKey);
| ^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:153:57
|
153 | let key = CFString::wrap_under_get_rule(kSecPaddingKey);
| ^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:158:57
|
158 | let key = CFString::wrap_under_get_rule(kSecEncryptionMode);
| ^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:158:57
|
158 | let key = CFString::wrap_under_get_rule(kSecEncryptionMode);
| ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:163:57
|
163 | let key = CFString::wrap_under_get_rule(kSecIVKey);
| ^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:163:57
|
163 | let key = CFString::wrap_under_get_rule(kSecIVKey);
| ^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:167:53
|
167 | let key = CFString::wrap_under_get_rule(kSecTransformInputAttributeName);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/encrypt_transform.rs:167:53
|
167 | let key = CFString::wrap_under_get_rule(kSecTransformInputAttributeName);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/import_export.rs:156:37
|
156 | key_params.alertTitle = alert_title.as_concrete_TypeRef();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::string::__CFString, found struct core_foundation::string::__CFString
|
= note: expected type *const core_foundation_sys::string::__CFString
found type *const core_foundation::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/import_export.rs:156:37
|
156 | key_params.alertTitle = alert_title.as_concrete_TypeRef();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/import_export.rs:160:38
|
160 | key_params.alertPrompt = alert_prompt.as_concrete_TypeRef();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::string::__CFString, found struct core_foundation::string::__CFString
|
= note: expected type *const core_foundation_sys::string::__CFString
found type *const core_foundation::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/import_export.rs:160:38
|
160 | key_params.alertPrompt = alert_prompt.as_concrete_TypeRef();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/import_export.rs:176:17
|
176 | data,
| ^^^^ expected struct core_foundation_sys::data::__CFData, found struct core_foundation::data::__CFData
|
= note: expected type *const core_foundation_sys::data::__CFData
found type *const core_foundation::data::__CFData
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/import_export.rs:176:17
|
176 | data,
| ^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/import_export.rs:177:17
|
177 | filename,
| ^^^^^^^^ expected struct core_foundation_sys::string::__CFString, found struct core_foundation::string::__CFString
|
= note: expected type *const core_foundation_sys::string::__CFString
found type *const core_foundation::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/import_export.rs:177:17
|
177 | filename,
| ^^^^^^^^

error[E0606]: casting &mut *const core_foundation::array::__CFArray as *mut *const core_foundation_sys::array::__CFArray is invalid
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/import_export.rs:170:24
|
170 | Some(_) => &mut raw_items as *mut _,
| ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:19:26
|
19 | unsafe { KeyType(kSecAttrKeyTypeRSA) }
| ^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:19:26
|
19 | unsafe { KeyType(kSecAttrKeyTypeRSA) }
| ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:23:26
|
23 | unsafe { KeyType(kSecAttrKeyTypeDES) }
| ^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:23:26
|
23 | unsafe { KeyType(kSecAttrKeyTypeDES) }
| ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:27:26
|
27 | unsafe { KeyType(kSecAttrKeyTypeAES) }
| ^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:27:26
|
27 | unsafe { KeyType(kSecAttrKeyTypeAES) }
| ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:31:26
|
31 | unsafe { KeyType(kSecAttrKeyTypeDES) }
| ^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:31:26
|
31 | unsafe { KeyType(kSecAttrKeyTypeDES) }
| ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:35:26
|
35 | unsafe { KeyType(kSecAttrKeyType3DES) }
| ^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:35:26
|
35 | unsafe { KeyType(kSecAttrKeyType3DES) }
| ^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:39:26
|
39 | unsafe { KeyType(kSecAttrKeyTypeRC4) }
| ^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:39:26
|
39 | unsafe { KeyType(kSecAttrKeyTypeRC4) }
| ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:43:26
|
43 | unsafe { KeyType(kSecAttrKeyTypeCAST) }
| ^^^^^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/item.rs:43:26
|
43 | unsafe { KeyType(kSecAttrKeyTypeCAST) }
| ^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/key.rs:23:53
|
23 | let key = CFString::wrap_under_get_rule(kSecAttrKeyType);
| ^^^^^^^^^^^^^^^ expected struct core_foundation::string::__CFString, found struct core_foundation_sys::string::__CFString
|
= note: expected type *const core_foundation::string::__CFString
found type *const core_foundation_sys::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/key.rs:23:53
|
23 | let key = CFString::wrap_under_get_rule(kSecAttrKeyType);
| ^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/key.rs:28:17
|
28 | dict.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::dictionary::__CFDictionary, found struct core_foundation::dictionary::__CFDictionary
|
= note: expected type *const core_foundation_sys::dictionary::__CFDictionary
found type *const core_foundation::dictionary::__CFDictionary
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/key.rs:28:17
|
28 | dict.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/key.rs:29:17
|
29 | key_data.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::data::__CFData, found struct core_foundation::data::__CFData
|
= note: expected type *const core_foundation_sys::data::__CFData
found type *const core_foundation::data::__CFData
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/key.rs:29:17
|
29 | key_data.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/key.rs:33:53
|
33 | Err(CFError::wrap_under_create_rule(err))
| ^^^ expected struct core_foundation::error::__CFError, found struct core_foundation_sys::error::__CFError
|
= note: expected type *mut core_foundation::error::__CFError
found type *mut core_foundation_sys::error::__CFError
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/key.rs:33:53
|
33 | Err(CFError::wrap_under_create_rule(err))
| ^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/secure_transport.rs:151:79
|
151 | let certs = CFArray::::wrap_under_create_rule(raw_certs)
| ^^^^^^^^^ expected struct core_foundation::array::__CFArray, found struct core_foundation_sys::array::__CFArray
|
= note: expected type *const core_foundation::array::__CFArray
found type *const core_foundation_sys::array::__CFArray
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/secure_transport.rs:151:79
|
151 | let certs = CFArray::::wrap_under_create_rule(raw_certs)
| ^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/transform.rs:28:17
|
28 | key.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::string::__CFString, found struct core_foundation::string::__CFString
|
= note: expected type *const core_foundation_sys::string::__CFString
found type *const core_foundation::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/transform.rs:28:17
|
28 | key.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/transform.rs:33:60
|
33 | return Err(CFError::wrap_under_create_rule(error));
| ^^^^^ expected struct core_foundation::error::__CFError, found struct core_foundation_sys::error::__CFError
|
= note: expected type *mut core_foundation::error::__CFError
found type *mut core_foundation_sys::error::__CFError
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/transform.rs:33:60
|
33 | return Err(CFError::wrap_under_create_rule(error));
| ^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/transform.rs:48:60
|
48 | return Err(CFError::wrap_under_create_rule(error));
| ^^^^^ expected struct core_foundation::error::__CFError, found struct core_foundation_sys::error::__CFError
|
= note: expected type *mut core_foundation::error::__CFError
found type *mut core_foundation_sys::error::__CFError
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/os/macos/transform.rs:48:60
|
48 | return Err(CFError::wrap_under_create_rule(error));
| ^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/policy.rs:39:61
|
39 | let policy = SecPolicyCreateSSL(is_server as _, hostname);
| ^^^^^^^^ expected struct core_foundation_sys::string::__CFString, found struct core_foundation::string::__CFString
|
= note: expected type *const core_foundation_sys::string::__CFString
found type *const core_foundation::string::__CFString
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/policy.rs:39:61
|
39 | let policy = SecPolicyCreateSSL(is_server as _, hostname);
| ^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/secure_transport.rs:527:48
|
527 | unsafe { cvt(SSLSetCertificate(self.0, certs.as_concrete_TypeRef())) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::array::__CFArray, found struct core_foundation::array::__CFArray
|
= note: expected type *const core_foundation_sys::array::__CFArray
found type *const core_foundation::array::__CFArray
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/secure_transport.rs:527:48
|
527 | unsafe { cvt(SSLSetCertificate(self.0, certs.as_concrete_TypeRef())) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/trust.rs:89:17
|
89 | certs.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct core_foundation_sys::array::__CFArray, found struct core_foundation::array::__CFArray
|
= note: expected type *const core_foundation_sys::array::__CFArray
found type *const core_foundation::array::__CFArray
note: Perhaps two different versions of crate core_foundation_sys are being used?
--> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/trust.rs:89:17
|
89 | certs.as_concrete_TypeRef(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 78 previous errors

Some errors occurred: E0308, E0606.
For more information about an error, try rustc --explain E0308.
error: Could not compile security-framework.
warning: build failed, waiting for other jobs to finish...
error: failed to compile rustup-toolchain-install-master v1.6.0, intermediate artifacts can be found at /var/folders/vd/8dj3n5710qvckvj24scsh5080000gn/T/cargo-installQ8X66b

Caused by:
build failed

@rchaser53
Copy link
Author

I can build from source and use it in mac.
So it's not a serious problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant