2 * Copyright 2001-2005 Internet2
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * shar-utils.h -- header file for the SHAR utilities.
20 * Created by: Derek Atkins <derek@ihtfp.com>
28 #include <saml/saml.h>
29 #include <shib-target/shibrpc.h>
30 #include <shib-target/shib-target.h>
32 #if defined(HAVE_LOG4SHIB)
33 # include <log4shib/Category.hh>
35 namespace logging = log4shib;
37 #elif defined(HAVE_LOG4CPP)
38 # include <log4cpp/Category.hh>
40 namespace logging = log4cpp;
43 # error "Supported logging library not available."
47 typedef void (*dispatch_fn)(struct svc_req* rqstp, register SVCXPRT* transp);
50 struct ShibRPCProtocols
59 SharChild(shibtarget::IListener::ShibSocket& s, const saml::Iterator<ShibRPCProtocols>& protos);
65 shibtarget::IListener::ShibSocket sock;
66 std::vector<ShibRPCProtocols> v_protos;
67 shibboleth::Thread* child;
74 static void log_error();
77 #endif /* SHAR_UTILS_H */