#include <shib-target/shib-target.h>
#include <fstream>
-#include <strstream>
+#include <sstream>
#include <stdexcept>
using namespace std;
extern "C" int shibrm_check_auth(request_rec* r)
{
- ostrstream threadid;
+ ostringstream threadid;
threadid << "[" << getpid() << "] shibrm" << '\0';
- saml::NDC ndc(threadid.str());
+ saml::NDC ndc(threadid.str().c_str());
ShibINI& ini = g_szConfig->getINI();
const char* serverName = get_service_name (r);
#include <shib-target/shib-target.h>
#include <fstream>
-#include <strstream>
+#include <sstream>
#include <stdexcept>
using namespace std;
extern "C" int shire_check_user(request_rec* r)
{
- ostrstream threadid;
+ ostringstream threadid;
threadid << "[" << getpid() << "] shire" << '\0';
- saml::NDC ndc(threadid.str());
+ saml::NDC ndc(threadid.str().c_str());
ShibINI& ini = g_szConfig->getINI();
ShibMLP markupProcessor;
extern "C" int shire_post_handler (request_rec* r)
{
- ostrstream threadid;
+ ostringstream threadid;
threadid << "[" << getpid() << "] shire" << '\0';
- saml::NDC ndc(threadid.str());
+ saml::NDC ndc(threadid.str().c_str());
ShibINI& ini = g_szConfig->getINI();
ShibMLP markupProcessor;
#include <log4cpp/Category.hh>
-#include <strstream>
+#include <sstream>
#include <stdexcept>
using namespace std;
*/
#include "shib-target.h"
-#include <strstream>
+#include <sstream>
#include <iostream>
#include <fstream>
#include <ctype.h>
*/
#include "shib-target.h"
-#include <strstream>
+#include <sstream>
#include <ctype.h>
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/Base64.hpp>
#include <log4cpp/Category.hh>
-#include <strstream>
+#include <sstream>
#include <stdexcept>
using namespace std;
retval = new RPCError(ret.status, ret.error_msg);
else {
for (u_int i = 0; i < ret.assertions.assertions_len; i++) {
- istrstream attrstream(ret.assertions.assertions_val[i].assertion);
+ istringstream attrstream(ret.assertions.assertions_val[i].assertion);
SAMLAssertion *as = NULL;
try {
m_priv->log->debug("Trying to decode assertion %d: %s", i,
{
saml::NDC ndc("RM::serialize");
- ostrstream os;
+ ostringstream os;
os << assertion;
unsigned int outlen;
- XMLByte* serialized = Base64::encode(reinterpret_cast<XMLByte*>(os.str()),
- os.pcount(), &outlen);
+ char* assn = (char*) os.str().c_str();
+ XMLByte* serialized = Base64::encode(reinterpret_cast<XMLByte*>(assn),
+ os.str().length(), &outlen);
result = (char*) serialized;
}
#include "shib-target.h"
#include <stdexcept>
-#include <strstream>
+#include <sstream>
#include <log4cpp/Category.hh>
log4cpp::Category& log = log4cpp::Category::getInstance(ctx);
if (status == SHIBRPC_SAML_EXCEPTION) {
- istrstream estr(msg);
+ istringstream estr(msg);
try {
m_except = NULL;
m_except = new SAMLException(estr);
#include "shib-target.h"
#include <log4cpp/Category.hh>
-#include <strstream>
+#include <sstream>
using namespace std;
using namespace saml;