File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -564,18 +564,18 @@ class SslCertificates {
564564 Utils::mkdir (ssl_path);
565565
566566 {
567- std::ofstream out ( ssl_path + Utils::PATH_SEPARATOR + " cassandra.crt" ,
568- std::ios::binary | std::ios::trunc);
567+ std::string file = ssl_path + Utils::PATH_SEPARATOR + " cassandra.crt" ;
568+ std::ofstream out (file. c_str (), std::ios::binary | std::ios::trunc);
569569 out.write (reinterpret_cast <char const *>(cassandra_crt), sizeof (cassandra_crt));
570570 }
571571 {
572- std::ofstream out ( ssl_path + Utils::PATH_SEPARATOR + " keystore.jks" ,
573- std::ios::binary | std::ios::trunc);
572+ std::string file = ssl_path + Utils::PATH_SEPARATOR + " keystore.jks" ;
573+ std::ofstream out (file. c_str (), std::ios::binary | std::ios::trunc);
574574 out.write (reinterpret_cast <char const *>(keystore_jks), sizeof (keystore_jks));
575575 }
576576 {
577- std::ofstream out ( ssl_path + Utils::PATH_SEPARATOR + " truststore.jks" ,
578- std::ios::binary | std::ios::trunc);
577+ std::string file = ssl_path + Utils::PATH_SEPARATOR + " truststore.jks" ;
578+ std::ofstream out (file. c_str (), std::ios::binary | std::ios::trunc);
579579 out.write (reinterpret_cast <char const *>(truststore_jks), sizeof (truststore_jks));
580580 }
581581 }
You can’t perform that action at this time.
0 commit comments