Hello,

I have a question about something I don't understand in the SSL
implementation of NSS.

When ssl_Do1stHandshake is called, it checks three handshake function
pointers in the sslSocket struct: handshake, nextHandshake and
securityHandshake.  What is the difference between the three?

I can see that the ss->handshake pointer is set in the beginning of the SSL
handshake by either ssl_SecureConnect or by SSL_ResetHandshake (if the
socket is already connected) to either ssl_BeginClientHandshake or
ssl_BeginServerHandshake.  ssl_BeginClientHandshake, in turn, sets that
pointer to ssl_GatherRecord1stHandshake, which wil receive the server_hello
record from the server.

Is the ss->nextHandshake used only for the SSL v2 implementaion?  What is
the ss->securityHandshake used for?

Regards,
Peter
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to