Sun OpenSSO Enterprise 8.0 C API Reference for Application and Web Policy Agent Developers

am_web_init() for Agents 3.0

Initializes the 3.0 web agent by loading the bootstrap properties file.

Syntax

#include "am_web.h"
AM_WEB_EXPORT am_status_t
am_web_init(const char *agent_bootstrap_file
            const char *agent_config_file);

Parameters

This function takes the following parameter:

agent_bootstrap_file

Pointer to the agent bootstrap file which resides on the machine local to the agent.

agent_config_file

Pointer to the agent configuration file which resides on the same machine as OpenSSO Enterprise.

Returns

This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):

AM_SUCCESS

If the call was successful.

AM_*

If any error occurs, the type of error indicated by the status value.