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

am_agent_init()

Initializes an agent by creating the agent profile object and performing agent authentication to receive the initial agent configuration data from either OpenSSO Enterprise or the local configuration file.

Syntax

#include "am_web.h"
AM_WEB_EXPORT am_status_t
am_agent_init(boolean_t *pAgentAuthenticated);

Parameters

This function takes the following parameter:

pAgentAuthenticated

is the agent authenticated.

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 query parameter was found in the URL.

AM_*

If any other error occurred.