Initializes the context *context for the application. Currently the context contains the encryption types, a pointer to operating specific data and the default realm. In the future, the context may be also contain thread specific data. The data in the context should be freed with krb5_free_context.
Returns system errors.
Frees the context returned by krb5_init_context. Internally calls krb5_os_free_context.
Sets the desired default encryption type etypes for the context if valid.
Returns ENOMEM, KRB5_PROG_ETYPE_NOSUPP.
Retrieves the default encryption types from the context and stores them in etypes which should be freed by the caller.
Returns ENOMEM.