mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
Merge branch 'poco-1.10.1' into devel
This commit is contained in:
commit
69e56a17c6
@ -433,7 +433,7 @@ int SecureSocketImpl::receiveBytes(void* buffer, int length, int flags)
|
||||
}
|
||||
else
|
||||
{
|
||||
rc = overflowSize;
|
||||
rc = static_cast<int>(overflowSize);
|
||||
std::memcpy(buffer, _overflowBuffer.begin(), rc);
|
||||
_overflowBuffer.resize(0);
|
||||
}
|
||||
@ -1283,7 +1283,7 @@ void SecureSocketImpl::verifyCertificateChainClient(PCCERT_CONTEXT pServerCert)
|
||||
BOOL ok = CertVerifyRevocation(
|
||||
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
||||
CERT_CONTEXT_REVOCATION_TYPE,
|
||||
certs.size(),
|
||||
static_cast<DWORD>(certs.size()),
|
||||
(void**) &certs[0],
|
||||
CERT_VERIFY_REV_CHAIN_FLAG,
|
||||
NULL,
|
||||
@ -1390,7 +1390,7 @@ void SecureSocketImpl::serverVerifyCertificate()
|
||||
BOOL ok = CertVerifyRevocation(
|
||||
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
||||
CERT_CONTEXT_REVOCATION_TYPE,
|
||||
certs.size(),
|
||||
static_cast<DWORD>(certs.size()),
|
||||
(void**) &certs[0],
|
||||
CERT_VERIFY_REV_CHAIN_FLAG,
|
||||
NULL,
|
||||
|
@ -250,7 +250,7 @@ void X509Certificate::extractNames(std::string& cmnName, std::set<std::string>&
|
||||
flags |= CRYPT_DECODE_ENABLE_PUNYCODE_FLAG;
|
||||
#endif
|
||||
Poco::Buffer<char> buffer(256);
|
||||
DWORD bufferSize = buffer.sizeBytes();
|
||||
DWORD bufferSize = static_cast<DWORD>(buffer.sizeBytes());
|
||||
BOOL rc = CryptDecodeObjectEx(
|
||||
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
||||
pExt->pszObjId,
|
||||
|
Loading…
Reference in New Issue
Block a user