Lines Matching defs:X509

3 //! An `X509` certificate binds an identity to a public key, and is either
6 //! data with the included public key. `X509` certificates are used in many
53 /// A type of X509 extension.
67 /// An `X509` certificate store context.
93 /// Returns application data pertaining to an `X509` store context.
131 cert_chain: &StackRef<X509>,
198 /// Returns a reference to a complete valid `X509` certificate chain.
200 pub fn chain(&self) -> Option<&StackRef<X509>> {
213 /// A builder used to construct an `X509`.
214 pub struct X509Builder(X509);
222 cvt_p(ffi::X509_new()).map(|p| X509Builder(X509(p)))
278 /// use openssl::x509::{X509, X509NameBuilder};
287 /// let mut x509 = openssl::x509::X509::builder().unwrap();
310 /// Returns a context object which is needed to create certain X509 extension values.
345 /// Adds an X509 extension value to the certificate.
352 /// Adds an X509 extension value to the certificate.
371 pub fn build(self) -> X509 {
377 type CType = ffi::X509;
380 /// An `X509` public key certificate.
381 pub struct X509;
382 /// Reference to `X509`.
658 /// Serializes the certificate into a PEM-encoded X509 structure.
667 /// Serializes the certificate into a DER-encoded X509 structure.
682 type Owned = X509;
684 fn to_owned(&self) -> X509 {
687 X509::from_ptr(self.as_ptr())
707 impl PartialOrd<X509> for X509Ref {
708 fn partial_cmp(&self, other: &X509) -> Option<cmp::Ordering> {
719 impl PartialEq<X509> for X509Ref {
720 fn eq(&self, other: &X509) -> bool {
727 impl X509 {
734 /// Deserializes a PEM-encoded X509 structure.
739 X509,
744 /// Deserializes a DER-encoded X509 structure.
747 X509,
753 pub fn stack_from_pem(pem: &[u8]) -> Result<Vec<X509>, ErrorStack> {
773 certs.push(X509(r));
782 impl Clone for X509 {
783 fn clone(&self) -> X509 {
788 impl fmt::Debug for X509 {
797 let mut debug_struct = formatter.debug_struct("X509");
811 // TODO: Print extensions once they are supported on the X509 struct.
823 impl Stackable for X509 {
827 impl Ord for X509 {
833 impl PartialOrd for X509 {
839 impl PartialOrd<X509Ref> for X509 {
845 impl PartialEq for X509 {
851 impl PartialEq<X509Ref> for X509 {
857 impl Eq for X509 {}
859 /// A context object required to construct certain `X509` extension values.
872 /// Permit additional fields to be added to an `X509` v3 certificate.
883 /// Constructs an X509 extension value. See `man x509v3_config` for information on supported
935 /// Constructs an X509 extension value. See `man x509v3_config` for information on supported
986 /// Constructs a new X509 extension value from its OID, whether it's
1181 /// The names of an `X509` certificate.
1202 /// Deserializes a DER-encoded X509 name structure.
1259 /// Serializes the certificate into a DER-encoded X509 name structure.
1415 /// certain `X509` extensions.
1481 /// An `X509` certificate request.
1639 /// An `X509` certificate revocation status.
1753 /// An `X509` certificate revocation list.
1807 /// The input should have a header of `-----BEGIN X509 CRL-----`.
1827 /// The output will have a header of `-----BEGIN X509 CRL-----`.
1886 pub fn get_by_cert<'a>(&'a self, cert: &X509) -> CrlStatus<'a> {
1984 /// An `X509` certificate alternative names.
2193 /// A `X509` distribution point.
2210 /// A `X509` distribution point.
2262 /// An `X509` certificate signature algorithm.
2283 /// An `X509` or an X509 certificate revocation list.
2307 unsafe fn X509_getm_notAfter(x: *mut ffi::X509) -> *mut ffi::ASN1_TIME {
2312 unsafe fn X509_getm_notBefore(x: *mut ffi::X509) -> *mut ffi::ASN1_TIME {
2317 unsafe fn X509_up_ref(x: *mut ffi::X509) {
2331 x: *const ffi::X509,
2388 unsafe fn X509_OBJECT_get0_X509(x: *mut ffi::X509_OBJECT) -> *mut ffi::X509 {