XSECCryptoKey* SecurityHelper::loadKeyFromURL(SOAPTransport& transport, const char* backing, const char* format, const char* password)
{
// Fetch the data.
- istringstream dummy;
- transport.send(dummy);
+ transport.send();
istream& msg = transport.receive();
// Dump to output file.
ofstream out(backing, fstream::trunc|fstream::binary);
out << msg.rdbuf();
+ out.close();
return loadKeyFromFile(backing, format, password);
}
vector<XSECCryptoX509*>& certs, SOAPTransport& transport, const char* backing, const char* format, const char* password
)
{
- // Fetch the data.
- istringstream dummy;
- transport.send(dummy);
+ transport.send();
istream& msg = transport.receive();
// Dump to output file.
ofstream out(backing, fstream::trunc|fstream::binary);
out << msg.rdbuf();
+ out.close();
return loadCertificatesFromFile(certs, backing, format, password);
}
)
{
// Fetch the data.
- istringstream dummy;
- transport.send(dummy);
+ transport.send();
istream& msg = transport.receive();
// Dump to output file.
ofstream out(backing, fstream::trunc|fstream::binary);
out << msg.rdbuf();
+ out.close();
return loadCRLsFromFile(crls, backing, format);
}