---
name: "libressl-SSL_CTX_get_verify_mode"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-SSL_CTX_get_verify_mode"
---

# libressl-SSL\_CTX\_get\_verify\_mode(3)

get currently set verification parameters

## NAME

**SSL\_CTX\_get\_verify\_mode**, **SSL\_get\_verify\_mode**, **SSL\_CTX\_get\_verify\_depth**, **SSL\_get\_verify\_depth**, **SSL\_get\_verify\_callback**, **SSL\_CTX\_get\_verify\_callback** – get currently set verification parameters

## SYNOPSIS

SSL Library (libssl, -lssl) libcrypto

**#include \<openssl/ssl.h\>**

*int*\

**SSL\_CTX\_get\_verify\_mode**(*const SSL\_CTX \*ctx*);

*int*\

**SSL\_get\_verify\_mode**(*const SSL \*ssl*);

*int*\

**SSL\_CTX\_get\_verify\_depth**(*const SSL\_CTX \*ctx*);

*int*\

**SSL\_get\_verify\_depth**(*const SSL \*ssl*);

*int*\

**(\*SSL\_CTX\_get\_verify\_callback(const SSL\_CTX \*ctx))**(*int*, *X509\_STORE\_CTX \**);

*int*\

**(\*SSL\_get\_verify\_callback(const SSL \*ssl))**(*int*, *X509\_STORE\_CTX \**);

## DESCRIPTION

**SSL\_CTX\_get\_verify\_mode**() returns the verification mode currently set in *ctx*.

**SSL\_get\_verify\_mode**() returns the verification mode currently set in *ssl*.

**SSL\_CTX\_get\_verify\_depth**() returns the verification depth limit currently set in *ctx*. If no limit has been explicitly set, −1 is returned and the default value will be used.

**SSL\_get\_verify\_depth**() returns the verification depth limit currently set in *ssl*. If no limit has been explicitly set, −1 is returned and the default value will be used.

**SSL\_CTX\_get\_verify\_callback**() returns a function pointer to the verification callback currently set in *ctx*. If no callback was explicitly set, the NULL pointer is returned and the default callback will be used.

**SSL\_get\_verify\_callback**() returns a function pointer to the verification callback currently set in *ssl*. If no callback was explicitly set, the NULL pointer is returned and the default callback will be used.

## SEE ALSO

[ssl(3)](/ssl/3.md), SSL\_CTX\_set\_verify(3)

## HISTORY

**SSL\_CTX\_get\_verify\_mode**(), **SSL\_get\_verify\_mode**(), **SSL\_get\_verify\_callback**(), and **SSL\_CTX\_get\_verify\_callback**() first appeared in SSLeay 0.8.0 and have been available since OpenBSD 2.4.

**SSL\_CTX\_get\_verify\_depth**() and **SSL\_get\_verify\_depth**() first appeared in OpenSSL 0.9.3 and have been available since OpenBSD 2.6.
