|
It is easy to tell SSL servers to reuse sessions, what you
need do
is to properly set the session cache mode. It is the responsibility of the client to give the session ID, but how? Use ip and port as a key to look up for the session ID? what I wanna know is whether SSL will do this automatically. In some implementation of SSL, there is a function called "SSLSetPeerID", PeerID is just server ip plus server port, I suppose it will tell SSL to look up and use the right session id according to the "PeerID" when making SSL connection to servers. But, in OPENSSL, there is no such functions any more, should I do this manually? There is a field called "sid_ctx"(session id context?)" in the session structure of OPENSSL, is it something like the "PeerID"? Anyone would help me?
|
