SSL_SET_VERIFY_RESULT(3SSL)
π SSL_SET_VERIFY_RESULT π
okay bestie, welcome to the OpenSSL girlies' corner of the manual β this one's from the 3SSL family, and it's a lil function called SSL_set_verify_result. she's short, she's sweet, and she's lowkey powerful in a chaotic way. let's get into it π
β¨ NAME β¨
SSL_set_verify_result β override result of peer certificate verification
like, you just rewrite the vibe of whether the peer's cert checked out. no cap.
π¦ SYNOPSIS π¦
#include <openssl/ssl.h>
void SSL_set_verify_result(SSL *ssl, long verify_result);
that's it. that's the whole signature. she takes an SSL *ssl and a long verify_result and gives you literally nothing back. icon behavior, honestly. π
πΈ 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.
so like β you're telling the ssl object "hey babes, here's the tea on whether that cert passed." and if the peer didn't present one at all? "if any" β no cert, no problem, you still get to set the value. π«Ά
π NOTES π
okay this is the part where you need to pay attention, bestie, because this function is a little sneaky.
SSL_set_verify_result()overrides the verification result. it only changes the verification result of thesslobject.- it does NOT become part of the established session. so if the session is to be reused later, the original value will reappear. π like not me setting a value and then the session just... forgetting it. the audacity.
- the valid codes for
verify_resultare documented inopenssl-verify(1).
β οΈ fr fr, that session-reuse thing is a real gotcha. you override it, you feel powerful, the session gets reused, and boom β original value is back like it never left. main character energy from the original value, honestly.
π RETURN VALUES π
SSL_set_verify_result() does not provide a return value.
nope! nothing! she's void, she gives you zero feedback, she simply does the thing and walks away. β
π SEE ALSO π
go read those too, iykyk π
π 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 gorgeous lil doc is from OpenSSL 4.0.3</>, dated 2026-09-29</>, and it lives under the manual name SSL_SET_VERIFY_RESULT(3SSL). slay, go forth, and set those verify results responsibly πβ¨π
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms