Lines Matching defs:X509Name
1045 /// A builder used to construct an `X509Name`.
1046 pub struct X509NameBuilder(X509Name);
1053 cvt_p(ffi::X509_NAME_new()).map(|p| X509NameBuilder(X509Name(p)))
1168 /// Return an `X509Name`.
1169 pub fn build(self) -> X509Name {
1173 X509Name::from_der(&self.0.to_der().unwrap()).unwrap()
1182 pub struct X509Name;
1183 /// Reference to `X509Name`.
1187 impl X509Name {
1196 pub fn load_client_ca_file<P: AsRef<Path>>(file: P) -> Result<Stack<X509Name>, ErrorStack> {
1208 X509Name,
1213 impl Stackable for X509Name {
1251 /// Copies the name to a new `X509Name`.
1254 pub fn to_owned(&self) -> Result<X509Name, ErrorStack> {
1255 unsafe { cvt_p(ffi::X509_NAME_dup(self.as_ptr())).map(|n| X509Name::from_ptr(n)) }
1275 /// A type to destructure and examine an `X509Name`.
1316 /// A name entry associated with a `X509Name`.