On Wed, Aug 20, 2003, Carlos G.A. wrote:

> Hello:
> 
> I'm making an implementation of the TLS 1.0 protocol in C#, for testing
> it i'm using OpenSSL under Cygwin ( openssl s_server ... ), i have a
> question about debug output, there are any way for know what are the
> keys that the server is using for data encryption/decryption, i need
> this because at this moment i can finish the Handshake protocol but when
> i send an Application data message seems that i'm sending it bad
> encrypted and i can't decrypt ok the Alert message sent by the openssl
> server.
> 

The key derivation and encryption for TLS is done in ssl/t1_enc.c there's
actually some debugging code in there already so if you #define TLS_DEBUG it
should print out all the keys for you.

Steve.
--
Dr Stephen N. Henson.
Core developer of the   OpenSSL project: http://www.openssl.org/
Freelance consultant see: http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED], PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to