mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 14:24:35 +01:00
fixed DigestEngine test in Crypto
This commit is contained in:
parent
244f0aaf5a
commit
4367c5da7c
@ -73,7 +73,7 @@ public:
|
||||
const Poco::DigestEngine::Digest& digest();
|
||||
|
||||
protected:
|
||||
void updateImpl(const void* data, unsigned length);
|
||||
void updateImpl(const void* data, std::size_t length);
|
||||
|
||||
private:
|
||||
std::string _name;
|
||||
|
@ -84,7 +84,7 @@ const Poco::DigestEngine::Digest& DigestEngine::digest()
|
||||
}
|
||||
|
||||
|
||||
void DigestEngine::updateImpl(const void* data, unsigned length)
|
||||
void DigestEngine::updateImpl(const void* data, std::size_t length)
|
||||
{
|
||||
EVP_DigestUpdate(_ctx, data, length);
|
||||
}
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "CryptoTestSuite.h"
|
||||
#include "CryptoTest.h"
|
||||
#include "RSATest.h"
|
||||
#include "DigestEngineTest.h"
|
||||
|
||||
|
||||
CppUnit::Test* CryptoTestSuite::suite()
|
||||
@ -41,6 +42,7 @@ CppUnit::Test* CryptoTestSuite::suite()
|
||||
|
||||
pSuite->addTest(CryptoTest::suite());
|
||||
pSuite->addTest(RSATest::suite());
|
||||
pSuite->addTest(DigestEngineTest::suite());
|
||||
|
||||
return pSuite;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user