.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "gss_userok" 3 "1.0.4" "gss" "gss" .SH NAME gss_userok \- API function .SH SYNOPSIS .B #include .sp .BI "int gss_userok(const gss_name_t " name ", const char * " username ");" .SH ARGUMENTS .IP "const gss_name_t name" 12 (gss_name_t, read) Name to be compared. .IP "const char * username" 12 Zero terminated string with username. .SH "DESCRIPTION" Compare the username against the output from \fBgss_export_name()\fP invoked on \fIname\fP, after removing the leading OID. This answers the question whether the particular mechanism would authenticate them as the same principal .SH "WARNING" This function is a GNU GSS specific extension, and is not part of the official GSS API. .SH "RETURN VALUE" Returns 0 if the names match, non\-0 otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Generic Security Service home page: http://www.gnu.org/software/gss/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2003-2022 Simon Josefsson. .br 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. .SH "SEE ALSO" The full documentation for .B gss is maintained as a Texinfo manual. If the .B info and .B gss programs are properly installed at your site, the command .IP .B info gss .PP should give you access to the complete manual.