krb5_boolean krb5_principal_compare( krb5_context context, krb5_const_principal princ1, krb5_const_principal princ2 );
The context structure.
First principal name.
Second principal name.
This routine compares two principal names.
This routine returns one of the following KRB5 status codes:
TRUE
FALSE
Principals are different.