Terminates and frees the environment that was created by a call to ASC_INIT() or ASC_INIT_EXT(). After the environment is terminated, no more calls to the core driver can be made without first issuing another ASC_INIT() or ASC_INIT_EXT() call.
#include <ascauth.h>
void ASC_TERM(ASCENV *asce);
No value is returned from this function.
#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; }