<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.5.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecureDownloadFinished",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecureDownloadFinished"
  },
  "title" : "SecureDownloadFinished"
}
-->

# SecureDownloadFinished

Concludes the secure download process.

```
OSStatus SecureDownloadFinished(SecureDownloadRef downloadRef);
```

## Parameters

`downloadRef`

The secure download object to finish.

## Return Value

A result code. See [Secure Download Result Codes](/documentation/Security/secure-download-result-codes).

## Discussion

Call this after all data has been received.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)