Document krb5_unparse_name{_fixed,}_flags.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18536 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -59,7 +59,9 @@
|
|||||||
.Nm krb5_sname_to_principal ,
|
.Nm krb5_sname_to_principal ,
|
||||||
.Nm krb5_sock_to_principal ,
|
.Nm krb5_sock_to_principal ,
|
||||||
.Nm krb5_unparse_name ,
|
.Nm krb5_unparse_name ,
|
||||||
|
.Nm krb5_unparse_name_flags ,
|
||||||
.Nm krb5_unparse_name_fixed ,
|
.Nm krb5_unparse_name_fixed ,
|
||||||
|
.Nm krb5_unparse_name_fixed_flags ,
|
||||||
.Nm krb5_unparse_name_fixed_short ,
|
.Nm krb5_unparse_name_fixed_short ,
|
||||||
.Nm krb5_unparse_name_short
|
.Nm krb5_unparse_name_short
|
||||||
.Nd Kerberos 5 principal handling functions
|
.Nd Kerberos 5 principal handling functions
|
||||||
@@ -78,8 +80,12 @@ Kerberos 5 Library (libkrb5, -lkrb5)
|
|||||||
.Ft krb5_error_code
|
.Ft krb5_error_code
|
||||||
.Fn "krb5_unparse_name" "krb5_context context" "krb5_const_principal principal" "char **name"
|
.Fn "krb5_unparse_name" "krb5_context context" "krb5_const_principal principal" "char **name"
|
||||||
.Ft krb5_error_code
|
.Ft krb5_error_code
|
||||||
|
.Fn "krb5_unparse_name_flags" "krb5_context context" "krb5_const_principal principal" "int flags" "char **name"
|
||||||
|
.Ft krb5_error_code
|
||||||
.Fn krb5_unparse_name_fixed "krb5_context context" "krb5_const_principal principal" "char *name" "size_t len"
|
.Fn krb5_unparse_name_fixed "krb5_context context" "krb5_const_principal principal" "char *name" "size_t len"
|
||||||
.Ft krb5_error_code
|
.Ft krb5_error_code
|
||||||
|
.Fn krb5_unparse_name_fixed_flags "krb5_context context" "krb5_const_principal principal" "int flags" "char *name" "size_t len"
|
||||||
|
.Ft krb5_error_code
|
||||||
.Fn "krb5_unparse_name_short" "krb5_context context" "krb5_const_principal principal" "char **name"
|
.Fn "krb5_unparse_name_short" "krb5_context context" "krb5_const_principal principal" "char **name"
|
||||||
.Ft krb5_error_code
|
.Ft krb5_error_code
|
||||||
.Fn krb5_unparse_name_fixed_short "krb5_context context" "krb5_const_principal principal" "char *name" "size_t len"
|
.Fn krb5_unparse_name_fixed_short "krb5_context context" "krb5_const_principal principal" "char *name" "size_t len"
|
||||||
@@ -158,6 +164,8 @@ requries the input string to with a realm.
|
|||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
.Fn krb5_unparse_name
|
.Fn krb5_unparse_name
|
||||||
|
and
|
||||||
|
.Fn krb5_unparse_name_flags
|
||||||
prints the principal
|
prints the principal
|
||||||
.Fa princ
|
.Fa princ
|
||||||
to the string
|
to the string
|
||||||
@@ -165,11 +173,22 @@ to the string
|
|||||||
.Fa name
|
.Fa name
|
||||||
should be freed with
|
should be freed with
|
||||||
.Xr free 3 .
|
.Xr free 3 .
|
||||||
|
To the
|
||||||
|
.Fa flags
|
||||||
|
argument the following flags can be passed in
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It Dv KRB5_PRINCIPAL_UNPARSE_SHORT
|
||||||
|
no realm if the realm is one of the local realms.
|
||||||
|
.It Dv KRB5_PRINCIPAL_UNPARSE_NO_REALM
|
||||||
|
never include any realm in the principal name.
|
||||||
|
.El
|
||||||
On failure
|
On failure
|
||||||
.Fa name
|
.Fa name
|
||||||
is set to
|
is set to
|
||||||
.Dv NULL .
|
.Dv NULL .
|
||||||
.Fn krb5_unparse_name_fixed
|
.Fn krb5_unparse_name_fixed
|
||||||
|
and
|
||||||
|
.Fn krb5_unparse_name_fixed_flags
|
||||||
behaves just like
|
behaves just like
|
||||||
.Fn krb5_unparse ,
|
.Fn krb5_unparse ,
|
||||||
but instead unparses the principal into a fixed size buffer.
|
but instead unparses the principal into a fixed size buffer.
|
||||||
|
Reference in New Issue
Block a user