Question about behavior of user supplied IceSSL::CertificateVerifier set with setCertificateVerifier
With the initialize IceSSL setup of for Ice 3.5.1:
Ice::PluginManagerPtr pluginMgr = m_communicator->getPluginManager( );
Ice::PluginPtr icePlugin = pluginMgr->getPlugin( "IceSSL" );
IceSSL::PluginPtr sslPlugin = IceSSL::PluginPtr::dynamicCast( icePlugin );
sslPlugin->setCertificateVerifier( new MyVerifier() );
and MyVerifier being:
class MyVerifier : IceSSL::CertificateVerifier
bool verify( const IceSSL::NativeConnectionInfoPtr& info )
What is the correct usage of:
auto myPrx = MyPrx::checkedCast( base->ice_twoway()->ice_secure( true )->ice_timeout( timeout ) );
for multiple threads?
What we are observering is two threads hitting the code above and then a log is printed with the first address and both threads throw an Ice::Exception. I would expect both address to log.