aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_bigint.cpp2
-rw-r--r--src/tests/test_cvc.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_bigint.cpp b/src/tests/test_bigint.cpp
index 99114a422..82fc49861 100644
--- a/src/tests/test_bigint.cpp
+++ b/src/tests/test_bigint.cpp
@@ -288,7 +288,7 @@ size_t is_primetest(const std::vector<std::string>& args,
size_t test_bigint()
{
const std::string filename = TEST_DATA_DIR "/mp_valid.dat";
- std::ifstream test_data(filename.c_str());
+ std::ifstream test_data(filename);
if(!test_data)
throw Botan::Stream_IO_Error("Couldn't open test file " + filename);
diff --git a/src/tests/test_cvc.cpp b/src/tests/test_cvc.cpp
index eb10ebd40..a2e398c37 100644
--- a/src/tests/test_cvc.cpp
+++ b/src/tests/test_cvc.cpp
@@ -44,15 +44,15 @@ namespace {
void helper_write_file(EAC_Signed_Object const& to_write, std::string const& file_path)
{
std::vector<byte> sv = to_write.BER_encode();
- std::ofstream cert_file(file_path.c_str(), std::ios::binary);
+ std::ofstream cert_file(file_path, std::ios::binary);
cert_file.write((char*)&sv[0], sv.size());
cert_file.close();
}
bool helper_files_equal(std::string const& file_path1, std::string const& file_path2)
{
- std::ifstream cert_1_in(file_path1.c_str());
- std::ifstream cert_2_in(file_path2.c_str());
+ std::ifstream cert_1_in(file_path1);
+ std::ifstream cert_2_in(file_path2);
std::vector<byte> sv1;
std::vector<byte> sv2;
if (!cert_1_in || !cert_2_in)