Reads the platform configuration file and initializes the environment so that calls can be made to a core driver. This function or ASC_INIT_EXT() must be called before any other API function.
#include <ascauth.h>
ASCENV *ASC_INIT(char *filename);
Returns a pointer to the API environment item created upon success. If an error has occurred, NULL is returned.
#include <stdio.h> #include <stdlib.h> #include <ascauth.h> main() { ASCENV *asce; /* initialize the authentication environment */ asce = ASC_INIT(NULL); if (asce == NULL) { fprintf(stderr, "Error: cannot initialize authentication environment\n"); exit(EXIT_FAILURE); } /* now you can make additional authentication calls here */ /* now terminate the authentication environment */ ASC_TERM(asce); return 0; }