Return the certificate chain as sent by the peer (not necessarily the verified chain).

Synopsis

Declared in <openssl/ssl.h>

stack_st_X509*
SSL_get_peer_cert_chain(SSL const* s);

Return Value

STACK_OF(X509) owned by the session (do not free; may be invalidated by renegotiation), or NULL.

Parameters

Name

Description

s

SSL connection to query; on the server the peer leaf must be obtained separately.

Created with MrDocs