1*e71b7053SJung-uk Kim=pod
2*e71b7053SJung-uk Kim
3*e71b7053SJung-uk Kim=head1 NAME
4*e71b7053SJung-uk Kim
5*e71b7053SJung-uk KimSSL_SESSION_get0_peer
6*e71b7053SJung-uk Kim- get details about peer's certificate for a session
7*e71b7053SJung-uk Kim
8*e71b7053SJung-uk Kim=head1 SYNOPSIS
9*e71b7053SJung-uk Kim
10*e71b7053SJung-uk Kim #include <openssl/ssl.h>
11*e71b7053SJung-uk Kim
12*e71b7053SJung-uk Kim X509 *SSL_SESSION_get0_peer(SSL_SESSION *s);
13*e71b7053SJung-uk Kim
14*e71b7053SJung-uk Kim=head1 DESCRIPTION
15*e71b7053SJung-uk Kim
16*e71b7053SJung-uk KimSSL_SESSION_get0_peer() returns the peer certificate associated with the session
17*e71b7053SJung-uk KimB<s> or NULL if no peer certificate is available. The caller should not free the
18*e71b7053SJung-uk Kimreturned value (unless L<X509_up_ref(3)> has also been called).
19*e71b7053SJung-uk Kim
20*e71b7053SJung-uk Kim=head1 RETURN VALUES
21*e71b7053SJung-uk Kim
22*e71b7053SJung-uk KimSSL_SESSION_get0_peer() returns a pointer to the peer certificate or NULL if
23*e71b7053SJung-uk Kimno peer certificate is available.
24*e71b7053SJung-uk Kim
25*e71b7053SJung-uk Kim=head1 SEE ALSO
26*e71b7053SJung-uk Kim
27*e71b7053SJung-uk KimL<ssl(7)>
28*e71b7053SJung-uk Kim
29*e71b7053SJung-uk Kim=head1 COPYRIGHT
30*e71b7053SJung-uk Kim
31*e71b7053SJung-uk KimCopyright 2017 The OpenSSL Project Authors. All Rights Reserved.
32*e71b7053SJung-uk Kim
33*e71b7053SJung-uk KimLicensed under the OpenSSL license (the "License").  You may not use
34*e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
35*e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
36*e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
37*e71b7053SJung-uk Kim
38*e71b7053SJung-uk Kim=cut
39