Oracle Solaris Security for Developers Guide

Cleanup in the GSSAPI Server Example

Back in the main() function, the application deletes the service credential with gss_release_cred(). If an OID for the mechanism has been specified, the program deletes the OID with gss_release_oid() and exits.

     (void) gss_release_cred(&min_stat, &server_creds);