Lines Matching refs:cert
43 cert: parsed.cert.unwrap(),
55 let mut cert = ptr::null_mut();
62 &mut cert,
67 let cert = X509::from_ptr_opt(cert);
70 Ok(ParsedPkcs12_2 { pkey, cert, ca })
99 cert: None,
114 pub cert: X509,
120 pub cert: Option<X509>,
128 cert: Option<X509>,
157 pub fn cert(&mut self, cert: &X509Ref) -> &mut Self {
158 self.cert = Some(cert.to_owned());
175 /// The encryption algorithm that should be used for the cert
205 note = "Use Self::{name, pkey, cert, build2} instead.",
213 cert: &X509Ref,
220 .cert(cert)
232 let cert = self.cert.as_ref().map_or(ptr::null(), |p| p.as_ptr());
250 cert as *mut _,
307 hex::encode(parsed.cert.unwrap().digest(MessageDigest::sha1()).unwrap()),
358 let cert = builder.build();
363 .cert(&cert)
372 &*parsed.cert.unwrap().digest(MessageDigest::sha1()).unwrap(),
373 &*cert.digest(MessageDigest::sha1()).unwrap()
388 assert!(parsed.cert.is_none());