SSL_SET_VERIFY_RESULT(3ossl)

πŸ’– SSL_SET_VERIFY_RESULT πŸ’–

okay bestie, welcome to the SSL_SET_VERIFY_RESULT(3ossl) page, straight out of the OpenSSL manual, but make it ✨readable✨. no cap, this one is short and sweet, so let's get into it. 🫢


🌸 NAME 🌸

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


✨ SYNOPSIS ✨

here's the whole vibe, copy-paste ready:

#include <openssl/ssl.h>

void SSL_set_verify_result(SSL *ssl, long verify_result);

that's it. that's the whole function signature. iconic. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so SSL_set_verify_result() sets the verify_result field of the ssl object to be the result of the verification of the X509 certificate that the peer presented, if any. like, you're literally telling the ssl object "hey girl, this is what we decided the verification result is". πŸ’–


πŸŽ€ NOTES πŸŽ€

okay this is the part where you actually have to pay attention, bestie, because the vibes here are very specific:

  • SSL_set_verify_result() overrides the verification result. it only changes the verification result of the ssl object. periodt. πŸ’…
  • it does not become part of the established session, so if the session is going to be reused later, the original value will reappear. not me getting ghosted by my own override 😭
  • the valid codes for verify_result are documented in openssl-verify(1). go read that one, iykyk. πŸ“–
real talk: this is a vibe check for one ssl object, not a permanent glow-up. the session remembers the truth. 🧚

πŸ’€ RETURN VALUES πŸ’€

SSL_set_verify_result() does not provide a return value. it's a void, babe. nothing comes back. no receipts, no nothing. πŸ™ˆ


🌈 SEE ALSO 🌈

go read these too, they're all part of the lore:


Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.


and that's the whole page, bestie!! 🌸✨ this one shipped in OpenSSL 3.5.9, dated 2026-09-29, and it's filed under the SSL_SET_VERIFY_RESULT(3ossl) name. slay, go verify something. πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from