1 krb5_unparse_name_flags - Convert krb5_principal structure to a string with flags.
2 ====================================================================================
6 .. c:function:: krb5_error_code krb5_unparse_name_flags(krb5_context context, krb5_const_principal principal, int flags, char ** name)
13 **[in]** **context** - Library context
15 **[in]** **principal** - Principal
17 **[in]** **flags** - Flags
19 **[out]** **name** - String representation of principal name
30 - Kerberos error codes. On failure name is set to NULL
40 Similar to :c:func:`krb5_unparse_name()` , this function converts a krb5_principal structure to a string representation.
44 The following flags are valid:
46 - :data:`KRB5_PRINCIPAL_UNPARSE_SHORT` - omit realm if it is the local realm
49 - :data:`KRB5_PRINCIPAL_UNPARSE_NO_REALM` - omit realm
52 - :data:`KRB5_PRINCIPAL_UNPARSE_DISPLAY` - do not quote special characters
54 Use :c:func:`krb5_free_unparsed_name()` to free *name* when it is no longer needed.