Commit 0863fb2a authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Added crypto version comments

parent 066fa4bc
......@@ -94,6 +94,10 @@ std::string CTACopyCmd::formatCommandPath(const int argc, const char **argv) con
std::string cmdPath = "root://localhost//";
std::string arg = encode(std::string(argv[0]));
replaceAll(arg, "/", "_");
//need to add this because xroot removes consecutive slashes, and the
//cryptopp base64 algorithm may produce consecutive slashes. This is solved
//in cryptopp-5.6.3 (using Base64URLEncoder instead of Base64Encoder) but we
//currently have cryptopp-5.6.2. To be changed in the future...
cmdPath += arg;
for(int i=1; i<argc; i++) {
std::string arg = encode(std::string(argv[i]));
......
......@@ -159,7 +159,11 @@ int XrdProFile::open(const char *fileName, XrdSfsFileOpenMode openMode, mode_t c
std::stringstream ss(fileName);
std::string item;
while (std::getline(ss, item, '&')) {
replaceAll(item, "_", "/");
replaceAll(item, "_", "/");
//need to add this because xroot removes consecutive slashes, and the
//cryptopp base64 algorithm may produce consecutive slashes. This is solved
//in cryptopp-5.6.3 (using Base64URLEncoder instead of Base64Encoder) but we
//currently have cryptopp-5.6.2. To be changed in the future...
item = decode(item);
tokens.push_back(item);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment