pub fn record_name_from_executable_bundle(
    bundle: &DirectoryBundle
) -> Result<String, AppleCodesignError>
Expand description

Resolve the notarization ticket record name from a bundle.

The record name is derived from the digest of the code directory of the main binary within the bundle.

Examples found in repository?
src/stapling.rs (line 165)
161
162
163
164
165
166
167
168
169
170
171
172
    pub fn lookup_ticket_for_executable_bundle(
        &self,
        bundle: &DirectoryBundle,
    ) -> Result<Vec<u8>, AppleCodesignError> {
        let record_name = record_name_from_executable_bundle(bundle)?;

        let response = lookup_notarization_ticket(&self.client, &record_name)?;

        let ticket_data = response.signed_ticket(&record_name)?;

        Ok(ticket_data)
    }