add krb5_principal_get_num_comp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23901 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -122,6 +122,22 @@ krb5_principal_get_comp_string(krb5_context context,
|
|||||||
return princ_ncomp(principal, component);
|
return princ_ncomp(principal, component);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get number of component is principal.
|
||||||
|
*
|
||||||
|
* @param context Kerberos 5 context
|
||||||
|
* @param principal principal to query
|
||||||
|
* @return number of components in string
|
||||||
|
* @ingroup krb5
|
||||||
|
*/
|
||||||
|
|
||||||
|
unsigned int KRB5_LIB_FUNCTION
|
||||||
|
krb5_principal_get_num_comp(krb5_context context,
|
||||||
|
krb5_const_principal principal)
|
||||||
|
{
|
||||||
|
return princ_num_comp(principal);
|
||||||
|
}
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_parse_name_flags(krb5_context context,
|
krb5_parse_name_flags(krb5_context context,
|
||||||
const char *name,
|
const char *name,
|
||||||
|
Reference in New Issue
Block a user