X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fremoting%2Fddf.h;h=b361ec04e2658af47f9ad5a1c94eeaa84fd43f25;hb=a5b1914f888d2ac8992cc4985d65e9d727aa8df4;hp=041f3440ff32ee15d9f51b8363bdc7b0e88c3b5c;hpb=8cfb88bff921f1830d05045bf266b88f8d49abd7;p=shibboleth%2Fsp.git diff --git a/shibsp/remoting/ddf.h b/shibsp/remoting/ddf.h index 041f344..b361ec0 100644 --- a/shibsp/remoting/ddf.h +++ b/shibsp/remoting/ddf.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007 Internet2 + * Copyright 2001-2009 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,7 +44,7 @@ namespace shibsp { // constructors DDF() : m_handle(NULL) {} DDF(const char* n); - DDF(const char* n, const char* val); + DDF(const char* n, const char* val, bool safe=true); DDF(const char* n, long val); DDF(const char* n, double val); DDF(const char* n, void* val); @@ -80,7 +80,10 @@ namespace shibsp { DDF& string(const char* val) { return string(const_cast(val), true); } - DDF& string(char* val, bool copyit=true); + DDF& unsafe_string(const char* val) { + return string(const_cast(val), true, false); + } + DDF& string(char* val, bool copyit=true, bool safe=true); DDF& string(long val); DDF& string(double val); DDF& integer(long val);