summaryrefslogtreecommitdiff
path: root/lib/krb5_wrap
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-08-29 12:10:48 +0200
committerAndrew Bartlett <abartlet@samba.org>2016-08-31 20:59:16 +0200
commit003358e868fa2751db153b78685242c931e54a49 (patch)
tree6fa7bf50b56bffb5a89df906a6ead3806c9e47c9 /lib/krb5_wrap
parentaef6cb2b816e8fe4b1c4e6899cb6790b21cb93e2 (diff)
downloadsamba-003358e868fa2751db153b78685242c931e54a49.tar.gz
krb5_wrap: Document smb_krb5_make_principal()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/krb5_wrap')
-rw-r--r--lib/krb5_wrap/krb5_samba.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c
index fcb5bca28e2..5c8d796068d 100644
--- a/lib/krb5_wrap/krb5_samba.c
+++ b/lib/krb5_wrap/krb5_samba.c
@@ -2300,6 +2300,22 @@ krb5_error_code smb_krb5_kinit_s4u2_ccache(krb5_context ctx,
#endif
#if !defined(HAVE_KRB5_MAKE_PRINCIPAL) && defined(HAVE_KRB5_BUILD_PRINCIPAL_ALLOC_VA)
+/**
+ * @brief Create a principal name using a variable argument list.
+ *
+ * @param[in] context The library context.
+ *
+ * @param[inout] principal A pointer to the principal structure.
+ *
+ * @param[in] _realm The realm to use. If NULL then the function will
+ * get the default realm name.
+ *
+ * @param[in] ... A list of 'char *' components, ending with NULL.
+ *
+ * Use krb5_free_principal() to free the principal when it is no longer needed.
+ *
+ * @return 0 on success, a Kerberos error code otherwise.
+ */
krb5_error_code smb_krb5_make_principal(krb5_context context,
krb5_principal *principal,
const char *_realm, ...)