Policy evaluation results from the policy interface in the C SDK.
Memory for am_policy_result is allocated by am_policy_evaluate() in the C SDK and should be freed by calling am_policy_result_destroy() .
#include "am_policy.h"
typedef struct am_policy_result {
const char *remote_user;
const char *remote_IP;
am_map_t advice_map;
am_map_t attr_response_map;
} am_policy_result_t;
This structure has the following members:
The remote user.
The remote IP.
Any policy advices.
Any user attributes.
See am_policy_test.c in the C SDK samples for an example of how to use am_policy_result_t in the policy interfaces.