Sun Java System Access Manager 7 2005Q4 C API Reference

am_auth_text_output_callback_info

Text Output callback structure.

Syntax

#include "am_auth.h"
typedef struct am_auth_text_output_callback_info {
    const char *message;
    const char *message_type;
} am_auth_text_output_callback_t;

Members

This structure has the following members:

message

Message to be displayed.

Memory for the message is allocated by the C SDK in am_auth_login() and freed when the authentication context is destroyed using am_auth_destroy_auth_context().

message_type

Message type, one of INFORMATION, WARNING or ERROR.

Memory for the message type is allocated by the C SDK in am_auth_login() and freed when the authentication context is destroyed using am_auth_destroy_auth_context().

Details

See am_auth_test.c in the C SDK samples for an example of how to use the text output callback.