fixed DigestEngine test in Crypto
This commit is contained in:
Родитель
244f0aaf5a
Коммит
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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче