NULL if no peer certificate is available. The caller should not free the returned value (unless <a href="../man3/X509_up_ref.html">X509_up_ref(3)</a> has also been called).</p>

<h1 id="RETURN-VALUES">RETURN VALUES</h1>

<p>SSL_SESSION_get0_peer() returns a pointer to the peer certificate or NULL if no peer certificate is available.</p>

<h1 id="SEE-ALSO">SEE ALSO</h1>

<p><a href="../man7/ssl.html">ssl(7)</a></p>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<p>Copyright 2017 The OpenSSL Project Authors. All Rights 