6 - get details about peer's certificate for a session
10 #include <openssl/ssl.h>
12 X509 *SSL_SESSION_get0_peer(SSL_SESSION *s);
16 SSL_SESSION_get0_peer() returns the peer certificate associated with the session
17 B<s> or NULL if no peer certificate is available. The caller should not free the
18 returned value (unless L<X509_up_ref(3)> has also been called).
22 SSL_SESSION_get0_peer() returns a pointer to the peer certificate or NULL if
23 no peer certificate is available.
31 Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
33 Licensed under the OpenSSL license (the "License"). You may not use
34 this file except in compliance with the License. You can obtain a copy
35 in the file LICENSE in the source distribution or at
36 L<https://www.openssl.org/source/license.html>.