diff --git a/pyhanko/sign/validation/ades.py b/pyhanko/sign/validation/ades.py index 75118a4f..3aed1f75 100644 --- a/pyhanko/sign/validation/ades.py +++ b/pyhanko/sign/validation/ades.py @@ -1136,7 +1136,6 @@ async def _build_and_past_validate_cert( cert: x509.Certificate, validation_policy_spec: CertValidationPolicySpec, validation_data_handlers: ValidationDataHandlers, - init_control_time: Optional[datetime] = None, ) -> Tuple[ValidationPath, datetime]: path_builder = PathBuilder( trust_manager=validation_policy_spec.trust_manager, @@ -1153,7 +1152,7 @@ async def _build_and_past_validate_cert( path=cand_path, validation_policy_spec=validation_policy_spec, validation_data_handlers=validation_data_handlers, - init_control_time=init_control_time, + init_control_time=None, ) ) current_subindication = past_result.error_subindic diff --git a/pyhanko/sign/validation/report/tools.py b/pyhanko/sign/validation/report/tools.py index ba04fbd5..58859955 100644 --- a/pyhanko/sign/validation/report/tools.py +++ b/pyhanko/sign/validation/report/tools.py @@ -124,7 +124,7 @@ def _summarise_attrs( # sig_policy_identifier (SASigPolicyIdentifierType) try: sig_policy_ident: cades_asn1.SignaturePolicyIdentifier = ( - find_cms_attribute(signed_attrs, 'signature_policy_identifier') + find_cms_attribute(signed_attrs, 'signature_policy_identifier')[0] ) actual_policy_ident = sig_policy_ident.chosen # we don't support implicit policies (or at least not now)