Kaydet (Commit) b270233f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

Change-Id: Ic94b5fdcf88a9580e816aceb199753e88636810a
üst 7fa6bded
......@@ -358,7 +358,7 @@ namespace {
} // namespace
extern "C" int NeonSession_CertificationNotify( void *userdata,
int failures,
int,
const ne_ssl_certificate *cert )
{
OSL_ASSERT( cert );
......@@ -376,8 +376,6 @@ extern "C" int NeonSession_CertificationNotify( void *userdata,
if ( !xCertificateContainer.is() )
return 1;
failures = 0;
char * dn = ne_ssl_readable_dname( ne_ssl_cert_subject( cert ) );
OUString cert_subject( dn, strlen( dn ), RTL_TEXTENCODING_UTF8, 0 );
......@@ -462,15 +460,13 @@ extern "C" int NeonSession_CertificationNotify( void *userdata,
pSession->getRequestEnvironment().m_xEnv );
if ( xEnv.is() )
{
failures = static_cast< int >( certValidity );
uno::Reference< task::XInteractionHandler > xIH(
xEnv->getInteractionHandler() );
if ( xIH.is() )
{
rtl::Reference< ucbhelper::SimpleCertificateValidationRequest >
xRequest( new ucbhelper::SimpleCertificateValidationRequest(
(sal_Int32)failures, xEECert, pSession->getHostName() ) );
(sal_Int32)certValidity, xEECert, pSession->getHostName() ) );
xIH->handle( xRequest.get() );
rtl::Reference< ucbhelper::InteractionContinuation > xSelection
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment