summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2012-03-30 17:17:07 -0400
committerAndreas Schneider <asn@samba.org>2012-04-12 12:06:41 +0200
commit670dbde65ea608c407bd49b181ece7f1dac9f670 (patch)
treebb5b72e6681872044fd6d34b4dc2d4a1a713421f
parent70f1cd6724a489cf3507fa196ff59fa8477cfbe1 (diff)
downloadsamba-670dbde65ea608c407bd49b181ece7f1dac9f670.tar.gz
samba-670dbde65ea608c407bd49b181ece7f1dac9f670.tar.bz2
samba-670dbde65ea608c407bd49b181ece7f1dac9f670.zip
s4-auth-krb: Move function into more appropriate header.
Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r--auth/credentials/credentials_krb5.h8
-rw-r--r--source4/auth/kerberos/kerberos_credentials.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/auth/credentials/credentials_krb5.h b/auth/credentials/credentials_krb5.h
index 2a66e0e39f..fc7d0be220 100644
--- a/auth/credentials/credentials_krb5.h
+++ b/auth/credentials/credentials_krb5.h
@@ -38,12 +38,4 @@ int cli_credentials_set_client_gss_creds(struct cli_credentials *cred,
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);
-
#endif /* __CREDENTIALS_KRB5_H__ */
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);