+Thu Sep 29 15:07:30 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * func_proto.h (krb5_realm_compare): Added prototype for functin
+ donated by OpenVision. (Compares two realms).
+
Wed Sep 21 18:10:55 1994 Theodore Y. Ts'o (tytso@dcl)
* func_proto.h (krb5_check_transited_list): Added prototype for
int krb5_address_order
PROTOTYPE((const krb5_address *,
const krb5_address *));
+krb5_boolean krb5_realm_compare
+ PROTOTYPE((krb5_const_principal,
+ krb5_const_principal));
krb5_boolean krb5_principal_compare
PROTOTYPE((krb5_const_principal,
krb5_const_principal));
+Thu Sep 29 15:10:42 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * princ_comp.c (krb5_realm_compare): Added new function from
+ OpenVision.
+
Wed Sep 21 17:57:35 1994 Theodore Y. Ts'o (tytso@dcl)
* rd_req_dec.c (krb5_rd_req_decoded): Added Changes from Cybersafe
#include <krb5/krb5.h>
#include <krb5/ext-proto.h>
+krb5_boolean
+krb5_realm_compare(princ1, princ2)
+krb5_const_principal princ1;
+krb5_const_principal princ2;
+{
+ if (krb5_princ_realm(princ1)->length != krb5_princ_realm(princ2)->length ||
+ memcmp (krb5_princ_realm(princ1)->data, krb5_princ_realm(princ2)->data,
+ krb5_princ_realm(princ2)->length))
+ return FALSE;
+
+ return TRUE;
+}
+
krb5_boolean
krb5_principal_compare(princ1, princ2)
krb5_const_principal princ1;
if (nelem != krb5_princ_size(princ2))
return FALSE;
- if (krb5_princ_realm(princ1)->length != krb5_princ_realm(princ2)->length ||
- memcmp (krb5_princ_realm(princ1)->data, krb5_princ_realm(princ2)->data,
- krb5_princ_realm(princ2)->length))
+ if (! krb5_realm_compare(princ1, princ2))
return FALSE;
for (i = 0; i < nelem; i++) {