We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2496ac8 commit dc3dbf9Copy full SHA for dc3dbf9
src/imp/security_framework.rs
@@ -85,6 +85,12 @@ pub struct Identity {
85
}
86
87
impl Identity {
88
+ #[cfg(target_os = "ios")]
89
+ pub fn from_pkcs8(_: &[u8], _: &[u8]) -> Result<Identity, Error> {
90
+ panic!("Not implemented on iOS");
91
+ }
92
+
93
+ #[cfg(not(target_os = "ios"))]
94
pub fn from_pkcs8(pem: &[u8], key: &[u8]) -> Result<Identity, Error> {
95
if !key.starts_with(b"-----BEGIN PRIVATE KEY-----") {
96
return Err(Error(base::Error::from(errSecParam)));
@@ -215,7 +221,7 @@ impl Certificate {
215
221
216
222
217
223
#[cfg(target_os = "ios")]
218
- pub fn from_pem(buf: &[u8]) -> Result<Certificate, Error> {
224
+ pub fn from_pem(_: &[u8]) -> Result<Certificate, Error> {
219
225
panic!("Not implemented on iOS");
220
226
227
0 commit comments