19 std::string ucert, ukey;
20 if ( std::getenv(
"X509_USER_PROXY")) {
21 ucert = ukey = std::getenv(
"X509_USER_PROXY");
24 if (ucert.empty() || ukey.empty()) {
25 Davix::DavixError::setupError(err,
"fReadDavix.cxx",
26 Davix::StatusCode::AuthentificationError,
27 "Could not set the user's proxy or certificate");
30 return cert->loadFromFilePEM(ukey, ucert,
"", err);
100 if (sizeBytes==0)
return;
103 unsigned int totalRead=0,ntry=0;
104 while(sizeBytes > totalRead)
108 std::stringstream mystream;
109 mystream <<
"fReadDavix::readData: can not read data with davix " <<
m_err->getErrMsg().c_str() <<
" " <<
m_err->getStatus();
110 Davix::DavixError::clearError(&
m_err);
111 EventStorage::ReadingIssue ci(ERS_HERE, mystream.str().c_str());
117 totalRead += ret; ++ntry;
119 std::stringstream mystream;
120 mystream <<
"Problem reading from the data file. "
121 <<
"fReadDavix::readData asked to read "<<sizeBytes
122 <<
" bytes and managed to read only "<<totalRead
124 EventStorage::ReadingIssue ci(ERS_HERE, mystream.str().c_str());