---
title: SSLGetEnableCertVerify
framework: security
role: symbol
role_heading: Function
path: security/sslgetenablecertverify
---

# SSLGetEnableCertVerify

Determines whether peer certificate chain validation is currently enabled.

## Declaration

```occ
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

Return Value A result code. See Secure Transport Result Codes.

## Discussion

Discussion Use the SSLSetEnableCertVerify function to set the value of the enableVerify flag.
