SSL_SET_VERIFY_RESULT(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’… SSL_SET_VERIFY_RESULT (3ossl) β€” the OpenSSL glow-up

okay so bestie, this is a page from the OpenSSL manual, third section, and it's about exactly one function that does exactly one chaotic little thing. buckle up, it's a short ride πŸŽ€


✨ NAME ✨

SSL_set_verify_result β€” override the result of peer certificate verification. yes, override. like, you're the main character now and you decide what the verdict is. πŸ‘‘


🌸 SYNOPSIS 🌸

#include <openssl/ssl.h>

void SSL_set_verify_result(SSL *ssl, long verify_result);

look at her. two lines. no return value. she takes what she takes and gives nothing back. iconic, honestly. 🫢


πŸ¦‹ 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. ✨

that's it. that's the whole function. you hand it an SSL pointer and a long, and it just... stores that vibe in the object. no cap.


πŸ’€ NOTES πŸ’€

okay here's the tea, and this part actually matters so don't scroll past it πŸ™ˆ

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. πŸŽ€

so like... it's giving temporary tattoo, not permanent ink. you change it on the object, but the session remembers the truth. if that session comes back later, boom β€” original value, back from the dead. πŸ”₯

the valid codes for verify_result are documented in openssl-verify(1). go read that one for the actual list of codes, this page is not the place for them, i don't make the rules. ⭐


🌈 RETURN VALUES 🌈

SSL_set_verify_result() does not provide a return value.

nothing. void. she simply does the thing and leaves. honestly a mood. πŸ’œ


🧚 SEE ALSO 🧚


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 β€” version 3.5.0, dated 2026-09-25, SSL_SET_VERIFY_RESULT(3ossl), signing off πŸ’–βœ¨ you're gonna slay those certificate checks fr fr πŸŽ€

πŸ“¦ where this page comes from