s4-auth-krb: Move function into more appropriate header.
[samba.git] / source4 / auth / kerberos / kerberos_credentials.h
index e94b88e005a07a887c0ebe9ed00aa1e36690a842..362edf7d6aa409fd216fb62f71460708ae4b00d7 100644 (file)
@@ -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);