krb5_principal_compare()--Compare Two Kerberos Principals


  Syntax
 #include <krb5.h>

 krb5_boolean krb5_principal_compare(
     krb5_context   context,
     krb5_const_principal princ1,
     krb5_const_principal princ2);    
  
  Service Program Name: QSYS/QKRBGSS

  Default Public Authority: *USE

  Threadsafe: Yes

The krb5_principal_compare() function allows an application to compare two Kerberos principals.


Authorities

No authorities are required.


Parameters

context  (Input)
The Kerberos context.

princ1  (Input)
The first principal to be compared.

princ2  (Input)
The second principal to be compared.

Return Value

TRUE The principal names are the same.
FALSE The principal names are different.


Error Messages

Message ID Error Message Text
CPE3418 E Possible APAR condition or hardware failure.



API introduced: V5R1

[ Back to top | Security APIs | UNIX-Type APIs | APIs by category ]