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

# SSLGetEnableCertVerify

Determines whether peer certificate chain validation is currently enabled.

```
OSStatus SSLGetEnableCertVerify(SSLContextRef context, Boolean *enableVerify);
```

## Parameters

`context`

An SSL session context reference.

`enableVerify`

On return, a pointer to a Boolean value specifying whether peer certificate chain validation is enabled. If this value is `true`, then Secure Transport automatically attempts to verify the certificate chain during exchange of peer certificates.

## Return Value

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

## Discussion

Use the [`SSLSetEnableCertVerify`](/documentation/Security/SSLSetEnableCertVerify) function to set the value of the `enableVerify` flag.

---

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)