mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 01:49:41 +00:00
Cleanup Windows build after refactoring
This commit is contained in:
parent
ddb8f36e88
commit
702b0fd5a7
4
dll.cpp
4
dll.cpp
@ -66,8 +66,6 @@ NAMESPACE_END
|
||||
|
||||
USING_NAMESPACE(CryptoPP)
|
||||
|
||||
using set_new_handler;
|
||||
|
||||
static PNew s_pNew = NULLPTR;
|
||||
static PDelete s_pDelete = NULLPTR;
|
||||
|
||||
@ -111,7 +109,7 @@ static void SetNewAndDeleteFunctionPointers()
|
||||
{
|
||||
s_pNew = &New;
|
||||
s_pDelete = &free;
|
||||
pSetNewAndDelete(s_pNew, s_pDelete, &set_new_handler);
|
||||
pSetNewAndDelete(s_pNew, s_pDelete, &std::set_new_handler);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
2
stdcpp.h
2
stdcpp.h
@ -95,7 +95,7 @@ namespace std {
|
||||
// C++Builder's standard library (Dinkumware) do not have C's global log() function
|
||||
// https://github.com/weidai11/cryptopp/issues/520
|
||||
#ifdef __BORLANDC__
|
||||
using log;
|
||||
using std::log;
|
||||
#endif
|
||||
|
||||
#endif // CRYPTOPP_STDCPP_H
|
||||
|
@ -1556,7 +1556,7 @@ bool TestASN1Functions()
|
||||
|
||||
len = DEREncodeOctetString(encoded, ConstBytePtr(message), BytePtrSize(message));
|
||||
DERReencode(encoded, reencoded);
|
||||
rlen = reencoded.MaxRetrievable();
|
||||
rlen = (size_t)reencoded.MaxRetrievable();
|
||||
(void)BERDecodeOctetString(reencoded, decoded);
|
||||
|
||||
std::string recovered;
|
||||
@ -1589,7 +1589,7 @@ bool TestASN1Functions()
|
||||
|
||||
len = DEREncodeTextString(encoded, ConstBytePtr(message), BytePtrSize(message), asnStringTypes[i]);
|
||||
DERReencode(encoded, reencoded);
|
||||
rlen = reencoded.MaxRetrievable();
|
||||
rlen = (size_t)reencoded.MaxRetrievable();
|
||||
(void)BERDecodeTextString(reencoded, recovered, asnStringTypes[i]);
|
||||
|
||||
fail = (len != rlen || message != recovered);
|
||||
|
@ -158,7 +158,7 @@ bool ValidateRSA_Encrypt()
|
||||
rsaPriv.DEREncodePrivateKey(q);
|
||||
|
||||
RSA::PrivateKey rsaPriv2;
|
||||
rsaPriv2.BERDecodePrivateKey(q, true, q.MaxRetrievable());
|
||||
rsaPriv2.BERDecodePrivateKey(q, true, (size_t)q.MaxRetrievable());
|
||||
|
||||
fail = (rsaPriv != rsaPriv2);
|
||||
pass = pass && !fail;
|
||||
|
Loading…
Reference in New Issue
Block a user