apple_codesign

Function derive_designated_requirements

Source
pub fn derive_designated_requirements(
    signing_cert: &CapturedX509Certificate,
    chain: &[CapturedX509Certificate],
    identifier: Option<String>,
) -> Result<CodeRequirementExpression<'static>, AppleCodesignError>
Expand description

Derive a designated requirements expression given a code signing certificate.

The default expression is derived from properties of the signing certificate. If it is an Apple signed certificate, extensions on the issuer CA denote which expression to use.

For non-Apple signed certificates, the expression self-references the issuing certificate in the same Organization as the signing certificate.