int gss_userok(const gss_name_t name, const char * username);
- const gss_name_t name
- (gss_name_t, read) Name to be compared.
- const char * username
- Zero terminated string with username.
DESCRIPTIONCompare the username against the output from gss_export_name() invoked on name, after removing the leading OID. This answers the question whether the particular mechanism would authenticate them as the same principal
WARNINGThis function is a GNU GSS specific extension, and is not part of the official GSS API.
RETURN VALUEReturns 0 if the names match, non-0 otherwise.
REPORTING BUGSReport bugs to <[email protected]>. GNU Generic Security Service home page: http://www.gnu.org/software/gss/ General help using GNU software: http://www.gnu.org/gethelp/
COPYRIGHTCopyright © 2003-2013 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.