mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-15 00:07:08 +01:00
Update POCO library.
This commit is contained in:
1 parent
8d15f4b6e9
commit
233fc103f9
2521 files changed
+257092
-72789
No files matched your search
+4
-4
@@ -32,21 +32,21 @@ int main(int argc, char** argv)
|
||||
<< " create the MD5 digest for <input_file>" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
std::ifstream istr(argv[1], std::ios::binary);
|
||||
if (!istr)
|
||||
{
|
||||
std::cerr << "cannot open input file: " << argv[1] << std::endl;
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
MD5Engine md5;
|
||||
DigestOutputStream dos(md5);
|
||||
|
||||
|
||||
StreamCopier::copyStream(istr, dos);
|
||||
dos.close();
|
||||
|
||||
std::cout << DigestEngine::digestToHex(md5.digest()) << std::endl;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user