Hi,

We are using MINA 2.0 M1 to develop a Proxy server. The server is
communicating with a proprietary C++ client. 

We are using MINA SSLfilter to enable standard SSL communication. 

To enable another proprietory SSL communication mode, Proxy server needs to
do another handshake with the client after SSLhandshake is complete. 

For this, the proxy server needs SSLSession Id and SSLSession secret Key
from the SSLSession. 

The SSLFilter has a getSslSession(Iosession session) method that returns the
SSLSession object. 

If the above method is called after the SSL handshake (after adding
SSLFilter), a NULL value is returned. If this method is called after another
message is received by the Proxy Server (when using standard SSL
communication mode), the above method returns a non NULL value. 

Is this because MINA is using javax.net.ssl.SSLEngine.beginHandshake()
method which is a non blocking call and the handshake is actually completed
(from server side) after next message is received after SSL handshake is
complete?

Is there any way to retrieve SSLSession immediately after SSLFilter is
added?

Thanks for your help in advance.

Thanks & Regards,
Abhijit



DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

Reply via email to