On Sun, Jan 01, 2006, Folkert van Heusden wrote:

> Hi,
> 
> Thanks for replying.
> 
> > >What would be the way to obtain the fingerprint of the peer to which my
> > >program connects? I looked in the sources of fetchmail but there a
> > >call-back is used and I would like to implement it without a callback
> > >function.
> > X509 *  SSL_get_peer_certificate(const SSL *s);
> > or
> > STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s);
> 
> Ok, but how to get that fingerprint from there?
> 
> 

X509_digest().

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to