--- /dev/null
+/*
+ * The Shibboleth License, Version 1.
+ * Copyright (c) 2002
+ * University Corporation for Advanced Internet Development, Inc.
+ * All rights reserved
+ *
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution, if any, must include
+ * the following acknowledgment: "This product includes software developed by
+ * the University Corporation for Advanced Internet Development
+ * <http://www.ucaid.edu>Internet2 Project. Alternately, this acknowledegement
+ * may appear in the software itself, if and wherever such third-party
+ * acknowledgments normally appear.
+ *
+ * Neither the name of Shibboleth nor the names of its contributors, nor
+ * Internet2, nor the University Corporation for Advanced Internet Development,
+ * Inc., nor UCAID may be used to endorse or promote products derived from this
+ * software without specific prior written permission. For written permission,
+ * please contact shibboleth@shibboleth.org
+ *
+ * Products derived from this software may not be called Shibboleth, Internet2,
+ * UCAID, or the University Corporation for Advanced Internet Development, nor
+ * may Shibboleth appear in their name, without prior written permission of the
+ * University Corporation for Advanced Internet Development.
+ *
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND WITH ALL FAULTS. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+ * PARTICULAR PURPOSE, AND NON-INFRINGEMENT ARE DISCLAIMED AND THE ENTIRE RISK
+ * OF SATISFACTORY QUALITY, PERFORMANCE, ACCURACY, AND EFFORT IS WITH LICENSEE.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER, CONTRIBUTORS OR THE UNIVERSITY
+ * CORPORATION FOR ADVANCED INTERNET DEVELOPMENT, INC. BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+/* internal.h - internally visible declarations
+
+ Scott Cantor
+ 6/29/03
+
+ $History:$
+*/
+
+#ifndef __shibtarget_internal_h__
+#define __shibtarget_internal_h__
+
+#ifdef WIN32
+# define SHIBTARGET_EXPORTS __declspec(dllexport)
+#endif
+
+// eventually we might be able to support autoconf via cygwin...
+#if defined (_MSC_VER) || defined(__BORLANDC__)
+# include "config_win32.h"
+#else
+# include "config.h"
+#endif
+
+#include "shib-target.h"
+
+#ifdef __cplusplus
+
+#include "ccache-utils.h"
+
+#include <log4cpp/Category.hh>
+
+using namespace std;
+using namespace log4cpp;
+using namespace saml;
+using namespace shibboleth;
+using namespace shibtarget;
+
+#endif
+
+#endif
* $Id$
*/
+#include "internal.h"
+
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
-
-#include "shib-target.h"
-#include "ccache-utils.h"
#include <shib/shib-threads.h>
#include <log4cpp/Category.hh>
#include <dmalloc.h>
#endif
-using namespace std;
-using namespace saml;
-using namespace shibboleth;
-using namespace shibtarget;
-
class InternalCCache;
class InternalCCacheEntry : public CCacheEntry
{
* $Id$
*/
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
+#include "internal.h"
-#include "shib-target.h"
-#include "ccache-utils.h"
#include <shib/shib-threads.h>
#include <log4cpp/PropertyConfigurator.hh>
#include <log4cpp/Category.hh>
-using namespace saml;
-using namespace shibboleth;
-using namespace shibtarget;
-using namespace std;
-using namespace log4cpp;
-
#ifndef SHIBTARGET_INIFILE
#define SHIBTARGET_INIFILE "/opt/shibboleth/etc/shibboleth/shibboleth.ini"
#endif
* $Id$
*/
-// eventually we might be able to support autoconf via cygwin...
-#if defined (_MSC_VER) || defined(__BORLANDC__)
-# include "config_win32.h"
-#else
-# include "config.h"
-#endif
-
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
+#include "internal.h"
-#include "shib-target.h"
#include <shib/shib-threads.h>
#include <sstream>
#include <sys/types.h>
#include <sys/stat.h>
-#include <log4cpp/Category.hh>
-
-using namespace std;
-using namespace shibboleth;
-using namespace shibtarget;
-
class HeaderIterator : public shibtarget::ShibINI::Iterator {
public:
HeaderIterator (ShibINIPriv* ini);
return false;
}
-ShibINI::Iterator::~Iterator() {}
* $Id$
*/
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
+#include "internal.h"
-#include "shib-target.h"
#include <sstream>
#include <ctype.h>
#include <xercesc/util/XercesDefs.hpp>
-#include <log4cpp/Category.hh>
-
-using namespace std;
-using namespace shibtarget;
-using namespace saml;
-
class shibtarget::ShibMLPPriv {
public:
ShibMLPPriv();
* $Id$
*/
+#include "internal.h"
+
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
-
-#include "shib-target.h"
-
-#include <log4cpp/Category.hh>
-
#include <stdexcept>
-using namespace std;
-using namespace shibtarget;
-using namespace saml;
-
class shibtarget::ResourcePriv
{
public:
* $Id$
*/
+#include "internal.h"
+
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
-
-#include "shib-target.h"
-#include "ccache-utils.h"
-
-#include <log4cpp/Category.hh>
-
#ifdef HAVE_LIBDMALLOCXX
#include <dmalloc.h>
#endif
-using namespace std;
-using namespace saml;
-using namespace shibtarget;
-
class shibtarget::ResourceEntryPriv
{
public:
* $Id$
*/
+#include "internal.h"
+
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
-
-#include "shib-target.h"
-
#include <xercesc/util/Base64.hpp>
#include <log4cpp/Category.hh>
#include <sstream>
#include <stdexcept>
-using namespace std;
-using namespace saml;
-using namespace shibboleth;
-using namespace shibtarget;
-
class shibtarget::RMPriv
{
public:
* $Id$
*/
+#include "internal.h"
+
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
-
-#include "shib-target.h"
-
#include <stdexcept>
#include <sstream>
#include <typeinfo>
-#include <log4cpp/Category.hh>
-
-using namespace std;
-using namespace shibtarget;
-using namespace shibboleth;
-using namespace saml;
-
namespace {
int initializing = 0;
int initialized = 0;
* $Id$
*/
+#include "internal.h"
+
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
-
-#include "shib-target.h"
#include <shib/shib-threads.h>
-#include <log4cpp/Category.hh>
-
#include <stdexcept>
-using namespace std;
-using namespace shibboleth;
-using namespace shibtarget;
-
-
class shibtarget::RPCHandleInternal
{
public:
# include <sys/socket.h>
#endif
-// eventually we might be able to support autoconf via cygwin...
-#if defined (_MSC_VER) || defined(__BORLANDC__)
-# include "config_win32.h"
-#else
-# include "config.h"
-#endif
-
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
-
-#include "shib-target.h"
+#include "internal.h"
-CLIENT *
-shibrpc_client_create (ShibSocket sock, u_long program, u_long version)
+CLIENT* shibrpc_client_create (ShibSocket sock, u_long program, u_long version)
{
struct sockaddr_in sin;
* $Id$
*/
+#include "internal.h"
+
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
-
-#include "shib-target.h"
-
-#include <log4cpp/Category.hh>
-
#include <stdexcept>
-using namespace std;
-using namespace saml;
-using namespace shibboleth;
-using namespace shibtarget;
-
class shibtarget::SHIREPriv
{
public:
* $Id$
*/
+#include "internal.h"
+
#ifndef HAVE_UNISTD_H
# include <winsock.h>
#else
#include <errno.h>
#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
-
-#include "shib-target.h"
-
-#ifdef WIN32
typedef struct sockaddr_in SHIBADDR;
* $Id$
*/
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
-
-#include "shib-target.h"
-
-#include <log4cpp/Category.hh>
-
-using namespace saml;
-using namespace shibboleth;
-using namespace shibtarget;
-using namespace std;
+#include "internal.h"
/* shib-target.cpp */
class SHIBTARGET_EXPORTS Iterator {
public:
- virtual ~Iterator() = 0;
+ virtual ~Iterator() {}
virtual const std::string* begin() = 0;
virtual const std::string* next() = 0;
};
* $Id$
*/
-#ifdef WIN32
-# define SHIBTARGET_EXPORTS __declspec(dllexport)
-#endif
+#include "internal.h"
-#include "shib-target.h"
#include "shibrpc.h"
-#include "ccache-utils.h"
-#include <log4cpp/Category.hh>
#include <sstream>
#ifdef HAVE_LIBDMALLOCXX
#include <dmalloc.h>
#endif
-using namespace std;
-using namespace saml;
-using namespace shibboleth;
-using namespace shibtarget;
-
-static std::string get_threadid (const char* proc)
+static string get_threadid (const char* proc)
{
static u_long counter = 0;
ostringstream buf;
return buf.str();
}
-static log4cpp::Category& get_category (void)
+static Category& get_category (void)
{
string ctx = "shibtarget.rpc-server";
- return log4cpp::Category::getInstance(ctx);
+ return Category::getInstance(ctx);
}
extern "C" bool_t
shibrpc_session_is_valid_ret_1 *result,
struct svc_req *rqstp)
{
- log4cpp::Category& log = get_category();
+ Category& log = get_category();
string ctx = get_threadid("session_is_valid");
saml::NDC ndc(ctx);
shibrpc_new_session_1_svc(shibrpc_new_session_args_1 *argp,
shibrpc_new_session_ret_1 *result, struct svc_req *rqstp)
{
- log4cpp::Category& log = get_category();
+ Category& log = get_category();
string ctx = get_threadid("new_session");
saml::NDC ndc(ctx);
shibrpc_get_assertions_1_svc(shibrpc_get_assertions_args_1 *argp,
shibrpc_get_assertions_ret_1 *result, struct svc_req *rqstp)
{
- log4cpp::Category& log = get_category();
+ Category& log = get_category();
string ctx = get_threadid("get_assertions");
saml::NDC ndc(ctx);
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 log4cpp.lib xerces-c_2.lib xsec_lib_02.lib wsock32.lib saml.lib /nologo /dll /machine:I386 /libpath:"../../../opensaml/c/saml/Release"
+# ADD LINK32 log4cpp.lib xerces-c_2.lib xsec_lib_02.lib wsock32.lib saml.lib /nologo /dll /machine:I386 /libpath:"../../../opensaml/c/saml/Release" /export:shibrpc_prog_1
+# SUBTRACT LINK32 /pdb:none
!ELSEIF "$(CFG)" == "shibtarget - Win32 Debug"
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 log4cppD.lib xerces-c_2D.lib xsec_lib_02D.lib wsock32.lib saml.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /libpath:"../../../opensaml/c/saml/Debug"
+# ADD LINK32 log4cppD.lib xerces-c_2D.lib xsec_lib_02D.lib wsock32.lib saml.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /libpath:"../../../opensaml/c/saml/Debug" /export:shibrpc_prog_1
+# SUBTRACT LINK32 /pdb:none
!ENDIF
# End Source File
# Begin Source File
+SOURCE=.\internal.h
+# End Source File
+# Begin Source File
+
SOURCE=".\shib-ccache.cpp"
# End Source File
# Begin Source File