[#SSL_get_peer_cert_chain] = SSL_get_peer_cert_chain :mrdocs: Return the certificate chain as sent by the peer (not necessarily the verified chain). == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:stack_st_X509.adoc[stack_st_X509]* SSL_get_peer_cert_chain(xref:SSL.adoc[SSL] const* s); ---- == Return Value STACK_OF(X509) owned by the session (do not free; may be invalidated by renegotiation), or NULL. == Parameters [cols="1,4"] |=== | Name| Description | *s* | SSL connection to query; on the server the peer leaf must be obtained separately. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#