fixed compiler warnings; unused variables, undeclared functions.

This commit is contained in:
fpeters 2005-04-01 17:50:25 +00:00
parent 6347d8339b
commit c31201ae9e
6 changed files with 20 additions and 8 deletions

View File

@ -21,6 +21,9 @@
#include "idpc.h"
char* certificate_auth();
char* http_auth();
/**
* get_ocsp_url
* @cert

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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)
{

View File

@ -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);