Searched refs:X509PurposeRef (Results 1 – 2 of 2) sorted by relevance
24 use crate::x509::X509PurposeRef;596 let purpose_idx = X509PurposeRef::get_by_sname("sslserver") in test_verify_cert_with_purpose()599 X509PurposeRef::from_idx(purpose_idx).expect("Getting certificate purpose failed"); in test_verify_cert_with_purpose()623 let purpose_idx = X509PurposeRef::get_by_sname("timestampsign") in test_verify_cert_with_wrong_purpose_fails()626 X509PurposeRef::from_idx(purpose_idx).expect("Getting certificate purpose failed"); in test_verify_cert_with_wrong_purpose_fails()
2473 pub struct X509PurposeRef(Opaque); struct2476 impl ForeignTypeRef for X509PurposeRef { implementation2480 impl X509PurposeRef { impl2510 pub fn from_idx(idx: c_int) -> Result<&'static X509PurposeRef, ErrorStack> { in from_idx() argument2513 Ok(X509PurposeRef::from_ptr(ptr)) in from_idx()