SSL_SET_VERIFY_RESULT(3)

πŸ“¦ version 4.4.0, in alpine 3.24, arch rolling

✨ NAME ✨

SSL_set_verify_result β€” override the result of peer certificate verification πŸ’…

This page is chillin’ in the Library Functions Manual, bestie β€” welcome to the SSL_SET_VERIFY_RESULT(3) zone 🫢


🌸 SYNOPSIS 🌸

library β€œlibssl” libcrypto #include <openssl/ssl.h>

void
SSL_set_verify_result(SSL *ssl, long verify_result);

πŸ’– DESCRIPTION πŸ’–

Okay so 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. Like, it’s literally assigning the vibe check result for that cert 😌

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. No cap β€” this override is not permanent, it’s giving temporary main-character energy only πŸ’€

Bestie, remember: this only touches the ssl object’s verification result. It does not get baked into the established session. Reuse the session later and the original value comes back β€” periodt πŸŽ€

The valid codes for verify_result are documented in openssl(1).


🌈 SEE ALSO 🌈


πŸ¦‹ HISTORY πŸ¦‹

SSL_set_verify_result() first appeared in SSLeay 0.6.1 and has been available since OpenBSD 2.4. iconic behavior, honestly πŸ‘‘


xoxo, this page is from Debian, dated June 8, 2025 β€” SSL_SET_VERIFY_RESULT(3) signing off πŸ’…πŸ’–

πŸ“¦ where this page comes from