SSL_SESSION_GET0_PEER(3ossl)
π SSL_SESSION_GET0_PEER β¨
okay bestie so this is the OpenSSL manual page for SSL_SESSION_get0_peer, and honestly? it's a tiny little icon and you're gonna love how simple it is π
πΈ NAME πΈ
SSL_SESSION_get0_peer β get details about peer's certificate for a session π¦
β SYNOPSIS β
#include <openssl/ssl.h>
X509 *SSL_SESSION_get0_peer(SSL_SESSION *s);
π DESCRIPTION π
So like, SSL_SESSION_get0_peer() returns the peer certificate associated with the session s, or NULL if no peer certificate is available. that's the whole vibe, no cap π«Ά
β οΈ okay this part matters bestie: the caller should not free the returned value β unless X509_up_ref(3) has also been called. like, do NOT go freeing it, that's not your moment π
π₯ RETURN VALUES π₯
SSL_SESSION_get0_peer() returns a pointer to the peer certificate π or NULL if no peer certificate is available. literally it's giving "either you got one or you don't" β¨
π SEE ALSO π
π COPYRIGHT π
Copyright 2017 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>. π
aaaand that's the whole page bestie, short and slay π
mwah, this was version 3.5.0 dated 2026-09-25, from the OpenSSL fam β periodt π§β
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms