skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_parse_name  Convert string principal name to protocol format krb5_parse_name Convert string principal name to protocol format
go to next page: krb5_prompter_posix  Prompt the user for the Kerberos passwordkrb5_prompter_posix Prompt the user for the Kerberos password
end of book navigation links

krb5_principal_compare -- Compare two principals 



C Prototype 

krb5_boolean krb5_principal_compare(
         krb5_context              context,
         krb5_const_principal      princ1,
         krb5_const_principal      princ2 );

Arguments 

context
(input/output)
 The context structure.
princ1 (input) First principal name.
princ2 (input) Second principal name.

Description 

This routine compares two principal names.

Return Values 

This routine returns one of the following KRB5 status codes:

TRUE
Principals are the same.
FALSE
Principals are different.


go to previous page: krb5_parse_name  Convert string principal name to protocol format krb5_parse_name Convert string principal name to protocol format
go to next page: krb5_prompter_posix  Prompt the user for the Kerberos passwordkrb5_prompter_posix Prompt the user for the Kerberos password