_HttpMultipleConnectionInfo::CheckCurlMultiStatus(void)
{
result r = E_SUCCESS;
+ result res = E_SUCCESS;
CURLMsg* pMessage = null;
int messageCount = 0;
CURL* pCurl = null;
}
else
{
+ _HttpSslInfo* pSSLInfo = _HttpUtility::GetSslCertInfo(pHttpTransactionUserData->GetSocketFd());
+ if (pSSLInfo != null)
+ {
+ if (pSSLInfo->GetCertificateVerificationFlag() == HTTP_CV_FLAG_MANUAL)
+ {
+ res = _HttpUtility::RemoveSslCertInfo(*pSSLInfo);
+ if (IsFailed(res))
+ {
+ SysLogException(NID_NET_HTTP, E_SYSTEM, "[E_SYSTEM] Failed to remove the server cert.");
+ }
+ SysLog(NID_NET_HTTP, "The server certificate is removed.");
+ }
+ }
+
//Fire the event(_HTTP_TRANSACTION_EVENT_TYPE_ABORTED)
pHttpTransactionEvent->FireTransactionAbortedEvent(r);
}
if (__pHttpTransactionUserData->GetSocketFd() >= 0)
{
sockFd = __pHttpTransactionUserData->GetSocketFd();
+
+ _HttpSslInfo* pSSLInfo = _HttpUtility::GetSslCertInfo(sockFd);
+ if (pSSLInfo != null)
+ {
+ if (pSSLInfo->GetCertificateVerificationFlag() == HTTP_CV_FLAG_MANUAL)
+ {
+ r = _HttpUtility::RemoveSslCertInfo(*pSSLInfo);
+ if (IsFailed(r))
+ {
+ SysLogException(NID_NET_HTTP, E_SYSTEM, "[E_SYSTEM] Failed to remove the server cert.");
+ }
+ SysLog(NID_NET_HTTP, "The server certificate is removed.");
+ }
+ }
SysLog(NID_NET_HTTP, "The socket(%d) was closed.", sockFd);
}