*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> SSL_get_peer_cert_chain (3)              
Title
Content
Arch
Section
 

SSL_GET_PEER_CERT_CHAIN(3)

Contents


NAME    [Toc]    [Back]

       SSL_get_peer_cert_chain - get the X509 certificate chain
       of the peer

SYNOPSIS    [Toc]    [Back]

        #include <openssl/ssl.h>

        STACKOF(X509) *SSL_get_peer_cert_chain(SSL *ssl);

DESCRIPTION    [Toc]    [Back]

       SSL_get_peer_cert_chain() returns a pointer to
       STACKOF(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.

NOTES    [Toc]    [Back]

       The peer certificate chain is not necessarily available
       after reusing a session, in which case a NULL pointer is
       returned.

       The reference count of the STACKOF(X509) object is not
       incremented.  If the corresponding session is freed, the
       pointer must not be used any longer.

RETURN VALUES    [Toc]    [Back]

       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 STACKOF(X509)
           The return value points to the certificate chain presented
 by the peer.

SEE ALSO    [Toc]    [Back]

      
      
       ssl(3), SSL_get_peer_certificate(3)


OpenBSD 3.6                 2001-06-21                          1
[ Back ]
 Similar pages
Name OS Title
SSL_get_peer_certificate Tru64 Get the X509 certificate of the peer
SSL_get_peer_certificate OpenBSD get the X509 certificate of the peer
SSL_get_peer_certificate NetBSD get the X509 certificate of the peer
SSL_CTX_set_cert_store Tru64 Manipulate X509 certificate verification storage.
SSL_CTX_get_cert_store OpenBSD manipulate X509 certificate verification storage
SSL_CTX_set_cert_store NetBSD manipulate X509 certificate verification storage
SSL_CTX_set_cert_store OpenBSD manipulate X509 certificate verification storage
SSL_CTX_set_verify Tru64 Set peer certificate verification parameters
SSL_CTX_set_verify NetBSD set peer certificate verification parameters
SSL_get_verify_result Tru64 Get result of peer certificate verification
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service