Sun Java System Access Manager 7 2005Q4 C API Reference

am_policy_destroy()

Frees an initialized policy evaluator.

Syntax

#include "am_policy.h"
AM_EXPORT am_status_t
am_policy_destroy(am_policy_t policy);

Parameters

This function takes the following parameters:

policy

Opaque handle to the policy service to destroy.

Returns

This function returns am_status_t with one of the following values:

AM_SUCCESS

If the call was successful.

AM_*

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

Details

This function destroys a policy service instance. Memory Concerns: Caller must call make sure the same service instance not be destroyed more than once.