Secure Download

Implement Apple's Secure Download System in macOS.

Overview

The Security.SecureDownload API provides access to Apple's Secure Download System. This API is only useful for certain specialized apps. Because of this, you must import this API explicitly:

#import <Security/SecureDownload.h>

Topics

Download Creation

SecureDownloadCreateWithTicket

Creates a secure download object for use during the download process.

SecureDownloadTrustEvaluateCallback

Optionally queries the user how to handle a failed trust evaluation.

SecureDownloadTrustSetupCallback

Determines whether trust for a particular signer should be evaluated.

SecureDownloadTrustCallbackResult

A flag used to indicate whether or not a signer should be evaluated.

SecureDownloadRef

An opaque type representing a secure download object.

Download Settings

SecureDownloadGetDownloadSize

Returns the size of the expected download.

SecureDownloadCopyCreationDate

Returns download ticket's creation date.

SecureDownloadCopyName

Returns the printable name of the download ticket.

SecureDownloadCopyTicketLocation

Copies the ticket location from a secure download URL.

SecureDownloadCopyURLs

Returns a list of URLs from which the data can be downloaded.

Receiving Data

SecureDownloadUpdateWithData

Checks data received during download for validity.

Download Completion

SecureDownloadFinished

Concludes the secure download process.

SecureDownloadRelease

Releases the memory associated with a secure download object.

Result Codes

Secure Download Result Codes

Result codes specific to the secure download API.

See Also

Legacy Interfaces

Common Security Services Manager

A set of open source modules underpinning the legacy implementation of the Security framework.

Secure Transport

Secure network communication using standardized transport layer security mechanisms.