summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-11-24 10:10:36 +0100
committerJose <jose@zeroc.com>2016-11-24 10:10:36 +0100
commit860805f0cabc8133078e8a3ad8b8b51ff1b1fbf8 (patch)
tree2decd3d66cf5db44c3aed4f0872756a306f66d71 /cpp
parentUWP project updates (diff)
downloadice-860805f0cabc8133078e8a3ad8b8b51ff1b1fbf8.tar.bz2
ice-860805f0cabc8133078e8a3ad8b8b51ff1b1fbf8.tar.xz
ice-860805f0cabc8133078e8a3ad8b8b51ff1b1fbf8.zip
Check PCCERT_CHAIN_CONTEXT TrustStatus rather than CERT_SIMPLE_CHAIN TrustStatus
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/IceSSL/SChannelTransceiverI.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/IceSSL/SChannelTransceiverI.cpp b/cpp/src/IceSSL/SChannelTransceiverI.cpp
index 9409467e0ab..794fa5e850a 100644
--- a/cpp/src/IceSSL/SChannelTransceiverI.cpp
+++ b/cpp/src/IceSSL/SChannelTransceiverI.cpp
@@ -676,10 +676,8 @@ IceSSL::TransceiverI::initialize(IceInternal::Buffer& readBuffer, IceInternal::B
throw IceUtilInternal::lastErrorToString();
}
- CERT_SIMPLE_CHAIN* simpleChain = certChain->rgpChain[0];
-
string trustError;
- if(simpleChain->TrustStatus.dwErrorStatus != CERT_TRUST_NO_ERROR)
+ if(certChain->TrustStatus.dwErrorStatus != CERT_TRUST_NO_ERROR)
{
trustError = trustStatusToString(certChain->TrustStatus.dwErrorStatus);
}