fixed compiler warnings; unused variables, undeclared functions.
This commit is contained in:
parent
6347d8339b
commit
c31201ae9e
|
@ -21,6 +21,9 @@
|
||||||
|
|
||||||
#include "idpc.h"
|
#include "idpc.h"
|
||||||
|
|
||||||
|
char* certificate_auth();
|
||||||
|
char* http_auth();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get_ocsp_url
|
* get_ocsp_url
|
||||||
* @cert
|
* @cert
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
#include "idpc.h"
|
#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:
|
/* the Federation Termination service URL handles several profiles:
|
||||||
* 1a. initiated by IdP, HTTP-Redirect (fig10, page40)
|
* 1a. initiated by IdP, HTTP-Redirect (fig10, page40)
|
||||||
* 1b. initiated by IdP, SOAP (fig11, page43)
|
* 1b. initiated by IdP, SOAP (fig11, page43)
|
||||||
|
@ -32,7 +36,6 @@ int defederation_http(LassoDefederation *termination)
|
||||||
{
|
{
|
||||||
/* SP-initiated; HTTP-Redirect-Based Profile */
|
/* SP-initiated; HTTP-Redirect-Based Profile */
|
||||||
int rc;
|
int rc;
|
||||||
LassoIdentity *identity;
|
|
||||||
|
|
||||||
rc = lasso_defederation_process_notification_msg(
|
rc = lasso_defederation_process_notification_msg(
|
||||||
termination, getenv("QUERY_STRING"));
|
termination, getenv("QUERY_STRING"));
|
||||||
|
@ -66,7 +69,6 @@ int defederation_init(LassoDefederation *termination, char* serviceProviderId)
|
||||||
{
|
{
|
||||||
/* IdP-initiated */
|
/* IdP-initiated */
|
||||||
int rc;
|
int rc;
|
||||||
LassoIdentity *identity;
|
|
||||||
struct authentication *auth;
|
struct authentication *auth;
|
||||||
char *user_id;
|
char *user_id;
|
||||||
char *identity_dump, *session_dump;
|
char *identity_dump, *session_dump;
|
||||||
|
|
|
@ -21,6 +21,11 @@
|
||||||
|
|
||||||
#include "idpc.h"
|
#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:
|
/* the Single Log-Out service URL handles several cases:
|
||||||
* 1a. initiated by IdP, HTTP-Redirect (fig12, page47)
|
* 1a. initiated by IdP, HTTP-Redirect (fig12, page47)
|
||||||
* 1b. initiated by IdP, HTTP-GET (fig13, page50)
|
* 1b. initiated by IdP, HTTP-GET (fig13, page50)
|
||||||
|
@ -115,7 +120,6 @@ int logout_http(LassoLogout *logout)
|
||||||
{
|
{
|
||||||
/* SP-initiated; HTTP-Redirect-Based Profile */
|
/* SP-initiated; HTTP-Redirect-Based Profile */
|
||||||
int rc;
|
int rc;
|
||||||
LassoIdentity *identity;
|
|
||||||
|
|
||||||
rc = set_profile_auto(LASSO_PROFILE(logout));
|
rc = set_profile_auto(LASSO_PROFILE(logout));
|
||||||
if (rc) {
|
if (rc) {
|
||||||
|
@ -131,7 +135,6 @@ int logout_init(LassoLogout *logout)
|
||||||
{
|
{
|
||||||
/* IdP-initiated */
|
/* IdP-initiated */
|
||||||
int rc;
|
int rc;
|
||||||
LassoIdentity *identity;
|
|
||||||
struct authentication *auth;
|
struct authentication *auth;
|
||||||
char *user_id;
|
char *user_id;
|
||||||
char *identity_dump, *session_dump;
|
char *identity_dump, *session_dump;
|
||||||
|
@ -168,9 +171,6 @@ int logout_init(LassoLogout *logout)
|
||||||
|
|
||||||
int logout_req()
|
int logout_req()
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
char **params;
|
|
||||||
char *spId = NULL;
|
|
||||||
LassoLogout *logout;
|
LassoLogout *logout;
|
||||||
LassoServer *server;
|
LassoServer *server;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
|
@ -27,6 +27,10 @@
|
||||||
* 3. Liberty-Enabled Client and Proxy (fig5, page30) (SOAP request)
|
* 3. Liberty-Enabled Client and Proxy (fig5, page30) (SOAP request)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
int lecp_profile(LassoServer *server);
|
||||||
|
int single_sign_on();
|
||||||
|
|
||||||
|
|
||||||
int lecp_profile(LassoServer *server)
|
int lecp_profile(LassoServer *server)
|
||||||
{
|
{
|
||||||
char *soap_msg;
|
char *soap_msg;
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#include <neon/ne_request.h>
|
#include <neon/ne_request.h>
|
||||||
#include <neon/ne_socket.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. */
|
/* takes response body chunks and appends them to a buffer. */
|
||||||
static void collector(void *ud, const char *data, size_t len)
|
static void collector(void *ud, const char *data, size_t len)
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,6 +32,8 @@ char* req_defederation(LassoServer *server, char *soap_msg);
|
||||||
char* req_register_name_identifier(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);
|
char* req_name_identifier_mapping(LassoServer *server, char *soap_msg);
|
||||||
|
|
||||||
|
int soap_end_point();
|
||||||
|
|
||||||
struct req requests[] = {
|
struct req requests[] = {
|
||||||
{LASSO_REQUEST_TYPE_LOGIN, req_login},
|
{LASSO_REQUEST_TYPE_LOGIN, req_login},
|
||||||
{LASSO_REQUEST_TYPE_LOGOUT, req_logout},
|
{LASSO_REQUEST_TYPE_LOGOUT, req_logout},
|
||||||
|
@ -198,7 +200,6 @@ cleanup:
|
||||||
char* req_defederation(LassoServer *server, char *soap_msg)
|
char* req_defederation(LassoServer *server, char *soap_msg)
|
||||||
{
|
{
|
||||||
LassoDefederation *termination = NULL;
|
LassoDefederation *termination = NULL;
|
||||||
LassoIdentity *identity;
|
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
termination = lasso_defederation_new(server);
|
termination = lasso_defederation_new(server);
|
||||||
|
|
Reference in New Issue