Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
SSL_get_peer_cert_chain — get the X509 certificate chain sent by the peerDESCRIPTION
SSL_get_peer_cert_chain() returns a pointer to STACK_OF(X509) certificates forming the certificate chain of the peer. If called on the client side, the stack also contains the peer's certificate; if called on the server side, the peer's certificate must be obtained separately using SSL_get_peer_certificate(3). If the peer did not present a certificate, NULL is returned.RETURN VALUES
The following return values can occur:- NULL
- No certificate was presented by the peer or no connection was established or the certificate chain is no longer available when a session is reused.
- Pointer to a STACK_OF(X509)
- The return value points to the certificate chain presented by the peer.