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 thesslobject. 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_resultare documented inopenssl-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 π
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
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms