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_read_password  Read a password from the keyboard krb5_read_password Read a password from the keyboard
go to next page: krb5_recvauth  Receive authenticated messagekrb5_recvauth Receive authenticated message
end of book navigation links

krb5_realm_compare -- Compare the realms of two principals 



C Prototype 

krb5_boolean krb5_realm_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 

Compares two realms. If the realms of the two principals are the same, return TRUE, else return FALSE.

Return Values 

This routine returns one of the following KRB5 status codes:

True.
The realms are the same.
False.
The realms are the different.


go to previous page: krb5_read_password  Read a password from the keyboard krb5_read_password Read a password from the keyboard
go to next page: krb5_recvauth  Receive authenticated messagekrb5_recvauth Receive authenticated message