---
name: "libressl-SSL_set_verify_result"
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_set_verify_result"
---

# libressl-SSL\_set\_verify\_result(3)

override result of peer certificate verification

## NAME

**SSL\_set\_verify\_result** – override result of peer certificate verification

## SYNOPSIS

SSL Library (libssl, -lssl) libcrypto

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

*void*\

**SSL\_set\_verify\_result**(*SSL \*ssl*, *long verify\_result*);

## DESCRIPTION

**SSL\_set\_verify\_result**() sets *verify\_result* of the object *ssl* to be the result of the verification of the X509 certificate presented by the peer, if any.

**SSL\_set\_verify\_result**() overrides the verification result. It only changes the verification result of the *ssl* object. It does not become part of the established session, so if the session is to be reused later, the original value will reappear.

The valid codes for *verify\_result* are documented in [openssl(1)](/openssl/1.md).

## SEE ALSO

[openssl(1)](/openssl/1.md), [ssl(3)](/ssl/3.md), SSL\_get\_peer\_certificate(3), SSL\_get\_verify\_result(3)

## HISTORY

**SSL\_set\_verify\_result**() first appeared in SSLeay 0.6.1 and has been available since OpenBSD 2.4.
