Home
last modified time | relevance | path

Searched refs:X509PurposeRef (Results 1 - 2 of 2) sorted by relevance

/third_party/rust/crates/rust-openssl/openssl/src/x509/
H A Dtests.rs24 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()
H A Dmod.rs2473 pub struct X509PurposeRef(Opaque); structure names
2476 impl ForeignTypeRef for X509PurposeRef {
2480 impl X509PurposeRef { impls
2492 /// The index can be used with `X509PurposeRef::from_idx()` to get the purpose.
2507 /// Get an `X509PurposeRef` for a given index value. The index can be obtained from e.g.
2508 /// `X509PurposeRef::get_by_sname()`.
2510 pub fn from_idx(idx: c_int) -> Result<&'static X509PurposeRef, ErrorStack> { in from_idx()
2513 Ok(X509PurposeRef::from_ptr(ptr)) in from_idx()

Completed in 5 milliseconds