From 670dbde65ea608c407bd49b181ece7f1dac9f670 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 30 Mar 2012 17:17:07 -0400 Subject: s4-auth-krb: Move function into more appropriate header. Signed-off-by: Andreas Schneider --- source4/auth/kerberos/kerberos_credentials.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/auth') diff --git a/source4/auth/kerberos/kerberos_credentials.h b/source4/auth/kerberos/kerberos_credentials.h index e94b88e005..362edf7d6a 100644 --- a/source4/auth/kerberos/kerberos_credentials.h +++ b/source4/auth/kerberos/kerberos_credentials.h @@ -27,3 +27,11 @@ krb5_error_code kinit_to_ccache(TALLOC_CTX *parent_ctx, krb5_ccache ccache, enum credentials_obtained *obtained, const char **error_string); + +/* Manually prototyped here to avoid needing krb5 headers in most callers */ +krb5_error_code principal_from_credentials(TALLOC_CTX *parent_ctx, + struct cli_credentials *credentials, + struct smb_krb5_context *smb_krb5_context, + krb5_principal *princ, + enum credentials_obtained *obtained, + const char **error_string); -- cgit