Skip to content

Commit

Permalink
certificate: fix lifetime signature for subject_alt_names getter
Browse files Browse the repository at this point in the history
  • Loading branch information
BiagioFesta authored and chifflier committed Feb 5, 2024
1 parent 6a43441 commit e926ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ impl<'a> TbsCertificate<'a> {
/// or an error if the extension is invalid, or is present twice or more.
pub fn subject_alternative_name(
&self,
) -> Result<Option<BasicExtension<&SubjectAlternativeName>>, X509Error> {
) -> Result<Option<BasicExtension<&SubjectAlternativeName<'a>>>, X509Error> {
self.get_extension_unique(&OID_X509_EXT_SUBJECT_ALT_NAME)?
.map_or(Ok(None), |ext| match ext.parsed_extension {
ParsedExtension::SubjectAlternativeName(ref value) => {
Expand Down

0 comments on commit e926ac6

Please sign in to comment.