mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 11:06:57 +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
|
else
|
||||||
{
|
{
|
||||||
rc = overflowSize;
|
rc = static_cast<int>(overflowSize);
|
||||||
std::memcpy(buffer, _overflowBuffer.begin(), rc);
|
std::memcpy(buffer, _overflowBuffer.begin(), rc);
|
||||||
_overflowBuffer.resize(0);
|
_overflowBuffer.resize(0);
|
||||||
}
|
}
|
||||||
@ -1283,7 +1283,7 @@ void SecureSocketImpl::verifyCertificateChainClient(PCCERT_CONTEXT pServerCert)
|
|||||||
BOOL ok = CertVerifyRevocation(
|
BOOL ok = CertVerifyRevocation(
|
||||||
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
||||||
CERT_CONTEXT_REVOCATION_TYPE,
|
CERT_CONTEXT_REVOCATION_TYPE,
|
||||||
certs.size(),
|
static_cast<DWORD>(certs.size()),
|
||||||
(void**) &certs[0],
|
(void**) &certs[0],
|
||||||
CERT_VERIFY_REV_CHAIN_FLAG,
|
CERT_VERIFY_REV_CHAIN_FLAG,
|
||||||
NULL,
|
NULL,
|
||||||
@ -1390,7 +1390,7 @@ void SecureSocketImpl::serverVerifyCertificate()
|
|||||||
BOOL ok = CertVerifyRevocation(
|
BOOL ok = CertVerifyRevocation(
|
||||||
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
||||||
CERT_CONTEXT_REVOCATION_TYPE,
|
CERT_CONTEXT_REVOCATION_TYPE,
|
||||||
certs.size(),
|
static_cast<DWORD>(certs.size()),
|
||||||
(void**) &certs[0],
|
(void**) &certs[0],
|
||||||
CERT_VERIFY_REV_CHAIN_FLAG,
|
CERT_VERIFY_REV_CHAIN_FLAG,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -250,7 +250,7 @@ void X509Certificate::extractNames(std::string& cmnName, std::set<std::string>&
|
|||||||
flags |= CRYPT_DECODE_ENABLE_PUNYCODE_FLAG;
|
flags |= CRYPT_DECODE_ENABLE_PUNYCODE_FLAG;
|
||||||
#endif
|
#endif
|
||||||
Poco::Buffer<char> buffer(256);
|
Poco::Buffer<char> buffer(256);
|
||||||
DWORD bufferSize = buffer.sizeBytes();
|
DWORD bufferSize = static_cast<DWORD>(buffer.sizeBytes());
|
||||||
BOOL rc = CryptDecodeObjectEx(
|
BOOL rc = CryptDecodeObjectEx(
|
||||||
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
|
||||||
pExt->pszObjId,
|
pExt->pszObjId,
|
||||||
|
Loading…
Reference in New Issue
Block a user