fixed DigestEngine test in Crypto
This commit is contained in:
Родитель
244f0aaf5a
Коммит
4367c5da7c
|
@ -73,7 +73,7 @@ public:
|
||||||
const Poco::DigestEngine::Digest& digest();
|
const Poco::DigestEngine::Digest& digest();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void updateImpl(const void* data, unsigned length);
|
void updateImpl(const void* data, std::size_t length);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _name;
|
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);
|
EVP_DigestUpdate(_ctx, data, length);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#include "CryptoTestSuite.h"
|
#include "CryptoTestSuite.h"
|
||||||
#include "CryptoTest.h"
|
#include "CryptoTest.h"
|
||||||
#include "RSATest.h"
|
#include "RSATest.h"
|
||||||
|
#include "DigestEngineTest.h"
|
||||||
|
|
||||||
|
|
||||||
CppUnit::Test* CryptoTestSuite::suite()
|
CppUnit::Test* CryptoTestSuite::suite()
|
||||||
|
@ -41,6 +42,7 @@ CppUnit::Test* CryptoTestSuite::suite()
|
||||||
|
|
||||||
pSuite->addTest(CryptoTest::suite());
|
pSuite->addTest(CryptoTest::suite());
|
||||||
pSuite->addTest(RSATest::suite());
|
pSuite->addTest(RSATest::suite());
|
||||||
|
pSuite->addTest(DigestEngineTest::suite());
|
||||||
|
|
||||||
return pSuite;
|
return pSuite;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче