diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-12-25 23:50:28 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-12-25 23:50:28 -0500 |
commit | a0b078543abdfb5a508ff75dcd5865c4d6401085 (patch) | |
tree | e9b14b648544c986f0fff3967cc64e0a1c3955b3 /test.cpp | |
parent | 19f72fc73c232b5dabdab3263fd4f0304ed35e1b (diff) | |
download | cryptopp-git-a0b078543abdfb5a508ff75dcd5865c4d6401085.tar.gz |
Added CRYPTOPP_DATA_DIR patch (Issue 82)
Diffstat (limited to 'test.cpp')
-rw-r--r-- | test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -279,6 +279,7 @@ int CRYPTOPP_API main(int argc, char *argv[]) DigestFile(argv[2]);
else if (command == "tv")
{
+ // TestDataFile() adds CRYPTOPP_DATA_DIR as required
std::string fname = (argv[2] ? argv[2] : "all");
if (fname.find(".txt") == std::string::npos)
fname = "TestVectors/" + fname + ".txt";
@@ -369,7 +370,7 @@ int CRYPTOPP_API main(int argc, char *argv[]) AES_CTR_Encrypt(argv[2], argv[3], argv[4], argv[5]);
else if (command == "h")
{
- FileSource usage("TestData/usage.dat", true, new FileSink(cout));
+ FileSource usage(CRYPTOPP_DATA_DIR "TestData/usage.dat", true, new FileSink(cout));
return 1;
}
else if (command == "V")
|