summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-12-25 23:50:28 -0500
committerJeffrey Walton <noloader@gmail.com>2015-12-25 23:50:28 -0500
commita0b078543abdfb5a508ff75dcd5865c4d6401085 (patch)
treee9b14b648544c986f0fff3967cc64e0a1c3955b3 /test.cpp
parent19f72fc73c232b5dabdab3263fd4f0304ed35e1b (diff)
downloadcryptopp-git-a0b078543abdfb5a508ff75dcd5865c4d6401085.tar.gz
Added CRYPTOPP_DATA_DIR patch (Issue 82)
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.cpp b/test.cpp
index 646f09ea..a6a27005 100644
--- a/test.cpp
+++ b/test.cpp
@@ -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")