summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfpeters <>2005-04-01 17:50:25 (GMT)
committerfpeters <>2005-04-01 17:50:25 (GMT)
commitc31201ae9e7b53723d5c59e917e419aa91e2f4e8 (patch)
tree3e878345ae08134c36dfba8d6daf897a1292073d
parent6347d8339b8b27067f43cea81e0e0377219337cb (diff)
downloadidpc-master.zip
idpc-master.tar.gz
idpc-master.tar.bz2
fixed compiler warnings; unused variables, undeclared functions.HEADmaster
-rw-r--r--src/auth.c3
-rw-r--r--src/federation_termination.c6
-rw-r--r--src/single_logout.c10
-rw-r--r--src/single_sign_on.c4
-rw-r--r--src/soap.c2
-rw-r--r--src/soap_end_point.c3
6 files changed, 20 insertions, 8 deletions
diff --git a/src/auth.c b/src/auth.c
index f7ad502..dd2426c 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -21,6 +21,9 @@
#include "idpc.h"
+char* certificate_auth();
+char* http_auth();
+
/**
* get_ocsp_url
* @cert
diff --git a/src/federation_termination.c b/src/federation_termination.c
index 908ef22..3a7242c 100644
--- a/src/federation_termination.c
+++ b/src/federation_termination.c
@@ -21,6 +21,10 @@
#include "idpc.h"
+int defederation_http(LassoDefederation *termination);
+int defederation_init(LassoDefederation *termination, char* serviceProviderId);
+int defederation();
+
/* the Federation Termination service URL handles several profiles:
* 1a. initiated by IdP, HTTP-Redirect (fig10, page40)
* 1b. initiated by IdP, SOAP (fig11, page43)
@@ -32,7 +36,6 @@ int defederation_http(LassoDefederation *termination)
{
/* SP-initiated; HTTP-Redirect-Based Profile */
int rc;
- LassoIdentity *identity;
rc = lasso_defederation_process_notification_msg(
termination, getenv("QUERY_STRING"));
@@ -66,7 +69,6 @@ int defederation_init(LassoDefederation *termination, char* serviceProviderId)
{
/* IdP-initiated */
int rc;
- LassoIdentity *identity;
struct authentication *auth;
char *user_id;
char *identity_dump, *session_dump;
diff --git a/src/single_logout.c b/src/single_logout.c
index 2f585bb..813ad1c 100644
--- a/src/single_logout.c
+++ b/src/single_logout.c
@@ -21,6 +21,11 @@
#include "idpc.h"
+int soap_loop(LassoLogout *logout);
+int logout_http(LassoLogout *logout);
+int logout_init(LassoLogout *logout);
+int logout_req();
+
/* the Single Log-Out service URL handles several cases:
* 1a. initiated by IdP, HTTP-Redirect (fig12, page47)
* 1b. initiated by IdP, HTTP-GET (fig13, page50)
@@ -115,7 +120,6 @@ int logout_http(LassoLogout *logout)
{
/* SP-initiated; HTTP-Redirect-Based Profile */
int rc;
- LassoIdentity *identity;
rc = set_profile_auto(LASSO_PROFILE(logout));
if (rc) {
@@ -131,7 +135,6 @@ int logout_init(LassoLogout *logout)
{
/* IdP-initiated */
int rc;
- LassoIdentity *identity;
struct authentication *auth;
char *user_id;
char *identity_dump, *session_dump;
@@ -168,9 +171,6 @@ int logout_init(LassoLogout *logout)
int logout_req()
{
- int i;
- char **params;
- char *spId = NULL;
LassoLogout *logout;
LassoServer *server;
int rc;
diff --git a/src/single_sign_on.c b/src/single_sign_on.c
index 3a51579..49f0e36 100644
--- a/src/single_sign_on.c
+++ b/src/single_sign_on.c
@@ -27,6 +27,10 @@
* 3. Liberty-Enabled Client and Proxy (fig5, page30) (SOAP request)
*/
+int lecp_profile(LassoServer *server);
+int single_sign_on();
+
+
int lecp_profile(LassoServer *server)
{
char *soap_msg;
diff --git a/src/soap.c b/src/soap.c
index b92782b..365ced8 100644
--- a/src/soap.c
+++ b/src/soap.c
@@ -23,6 +23,8 @@
#include <neon/ne_request.h>
#include <neon/ne_socket.h>
+int ssl_verify_fn(void *userdata, int failures, const ne_ssl_certificate *cert);
+
/* takes response body chunks and appends them to a buffer. */
static void collector(void *ud, const char *data, size_t len)
{
diff --git a/src/soap_end_point.c b/src/soap_end_point.c
index 86078f9..c2405d1 100644
--- a/src/soap_end_point.c
+++ b/src/soap_end_point.c
@@ -32,6 +32,8 @@ char* req_defederation(LassoServer *server, char *soap_msg);
char* req_register_name_identifier(LassoServer *server, char *soap_msg);
char* req_name_identifier_mapping(LassoServer *server, char *soap_msg);
+int soap_end_point();
+
struct req requests[] = {
{LASSO_REQUEST_TYPE_LOGIN, req_login},
{LASSO_REQUEST_TYPE_LOGOUT, req_logout},
@@ -198,7 +200,6 @@ cleanup:
char* req_defederation(LassoServer *server, char *soap_msg)
{
LassoDefederation *termination = NULL;
- LassoIdentity *identity;
int rc;
termination = lasso_defederation_new(server);