Lines Matching defs:extension

47 pub mod extension;
53 /// A type of X509 extension.
310 /// Returns a context object which is needed to create certain X509 extension values.
345 /// Adds an X509 extension value to the certificate.
348 pub fn append_extension(&mut self, extension: X509Extension) -> Result<(), ErrorStack> {
349 self.append_extension2(&extension)
352 /// Adds an X509 extension value to the certificate.
354 pub fn append_extension2(&mut self, extension: &X509ExtensionRef) -> Result<(), ErrorStack> {
356 cvt(ffi::X509_add_ext(self.0.as_ptr(), extension.as_ptr(), -1))?;
486 /// Retrieves the path length extension from a certificate, if it exists.
859 /// A context object required to construct certain `X509` extension values.
883 /// Constructs an X509 extension value. See `man x509v3_config` for information on supported
886 /// Some extension types, such as `subjectAlternativeName`, require an `X509v3Context` to be
892 /// See the extension module for builder types which will construct certain common extensions.
895 /// types in `x509::extension` should be used in its place.
897 note = "Use x509::extension types or new_from_der instead",
935 /// Constructs an X509 extension value. See `man x509v3_config` for information on supported
938 /// Some extension types, such as `nid::SUBJECT_ALTERNATIVE_NAME`, require an `X509v3Context` to
944 /// See the extension module for builder types which will construct certain common extensions.
947 /// types in `x509::extension` should be used in its place.
949 note = "Use x509::extension types or new_from_der instead",
986 /// Constructs a new X509 extension value from its OID, whether it's
990 /// extension type, and can generally be found in the RFC defining the
991 /// extension.
993 /// For common extension types, there are Rust APIs provided in
1020 /// Adds an alias for an extension
1027 note = "Use x509::extension types or new_from_der and then this is not necessary",
1438 /// Permits any number of extension fields to be added to the certificate.
1694 /// Get the criticality and value of an extension.
1696 /// This returns None if the extension is not present or occurs multiple times.
1698 pub fn extension<T: ExtensionType>(&self) -> Result<Option<(bool, T::Output)>, ErrorStack> {
1715 // -1 means the extension wasn't found, -2 means multiple were found.
1720 (c_int::MIN..=-2 | 2.., _) => panic!("OpenSSL should only return -2, -1, 0, or 1 for an extension's criticality but it returned {}", critical),
1725 /// The CRL entry extension identifying the reason for revocation see [`CrlReason`],
1737 /// The CRL entry extension identifying the issuer of a certificate used in