Hi,
  Openssl doesnot have support for client-side session 
  management. There is no concept of a client cache. It's 
  totally upto the client to manage/store/re-use the sessions. 
  To re-use a session, you must use 'SSL_get_session(ssl)' 
  to retrieve the session from the current SSL structure and 
  then on a new SSL struct (i.e. for the next connection) do 
  'SSL_set_session(ssl,session)'. Then connect. If the session
  is still valid with the server it will be reused.

Amit.
  

sanjay reddy gogula wrote:
> 
> Hi All,
> 
> I have a client program which do basic SSL operations.
> 
> I want to enable the application to manage the sessions. I have went
> through the API's that basically used for session management. I got a
> few doubts while trying to incorporate session management into my client
> program which I have listed below.
> 
> I shall be very grateful if any one could clarify atleast some of these.
> 
> What are the basic requirements for client side session management?
> Is it that the application should be multi-threaded?
> Do I need to cache all the SSL stuctures explicitly to enable them to be
> reused later or is it done by APIs implicitly?
> When my client program tries to contact the same server, how to map the
> cached session ids and the URLs pertaining to the server? Do I need to
> do this mapping?
> Are cache size and time out parameters, sent to the server to which
> client programs tries to connect to by the APIs?
> 
> Can some one give sample code implementing session management in SSL
> client?
> 
> TIA
> Sanjay
> **************************************************************
> G.Sanjay Reddy
> Systems Manager
> Account BSI, Telecom
> Wipro Technologies
> Survey No 64;Serilingampalli Mandal;
> Madhapur Village;R.R District;
> Hyderabad - 500033
> Tel(Off): 091-040-6565515
> Tel(Res): 091-040-7502643
> Fax     : 091-040-3110042
> E-mail:[EMAIL PROTECTED]
> www.wipro.com
> The World's First SEI CMM Level 5 Software Services Company
> **************************************************************
> 
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to