Skip to content

Commit

Permalink
Use type alias for EKU (#11368)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Jul 30, 2024
1 parent 9078a13 commit 7228536
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rust/src/x509/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use cryptography_x509::certificate::Certificate as RawCertificate;
use cryptography_x509::common::{AlgorithmParameters, Asn1ReadableOrWritable};
use cryptography_x509::extensions::{
AuthorityKeyIdentifier, BasicConstraints, DisplayText, DistributionPoint,
DistributionPointName, DuplicateExtensionsError, IssuerAlternativeName, KeyUsage,
MSCertificateTemplate, NameConstraints, PolicyConstraints, PolicyInformation,
DistributionPointName, DuplicateExtensionsError, ExtendedKeyUsage, IssuerAlternativeName,
KeyUsage, MSCertificateTemplate, NameConstraints, PolicyConstraints, PolicyInformation,
PolicyQualifierInfo, Qualifier, RawExtensions, SequenceOfAccessDescriptions,
SequenceOfSubtrees, UserNotice,
};
Expand Down Expand Up @@ -768,7 +768,7 @@ pub fn parse_cert_ext<'p>(
}
oid::EXTENDED_KEY_USAGE_OID => {
let ekus = pyo3::types::PyList::empty_bound(py);
for oid in ext.value::<asn1::SequenceOf<'_, asn1::ObjectIdentifier>>()? {
for oid in ext.value::<ExtendedKeyUsage<'_>>()? {
let oid_obj = oid_to_py_oid(py, &oid)?;
ekus.append(oid_obj)?;
}
Expand Down

0 comments on commit 7228536

Please sign in to comment.