summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2012-03-30 16:51:58 -0400
committerAndreas Schneider <asn@samba.org>2012-04-12 12:06:41 +0200
commitb574e7cd815347193ab33f18019112f28f402319 (patch)
treefeb2debdfc4ac213e333a4b5d9b273cf6e6fa395
parent93aa4511b9843fb0b96c5d568888778bc5a8367c (diff)
downloadsamba-b574e7cd815347193ab33f18019112f28f402319.tar.gz
samba-b574e7cd815347193ab33f18019112f28f402319.tar.bz2
samba-b574e7cd815347193ab33f18019112f28f402319.zip
s4-auth-krb: Make impersonate_principal_from_credentials static.
It's not used anywhere else. Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r--auth/credentials/credentials_krb5.h6
-rw-r--r--source4/auth/kerberos/kerberos_util.c1
2 files changed, 1 insertions, 6 deletions
diff --git a/auth/credentials/credentials_krb5.h b/auth/credentials/credentials_krb5.h
index 36bf03d5eb..234df1c29c 100644
--- a/auth/credentials/credentials_krb5.h
+++ b/auth/credentials/credentials_krb5.h
@@ -45,12 +45,6 @@ krb5_error_code principal_from_credentials(TALLOC_CTX *parent_ctx,
krb5_principal *princ,
enum credentials_obtained *obtained,
const char **error_string);
-krb5_error_code impersonate_principal_from_credentials(TALLOC_CTX *parent_ctx,
- struct cli_credentials *credentials,
- struct smb_krb5_context *smb_krb5_context,
- krb5_principal *princ,
- const char **error_string);
-
void cli_credentials_invalidate_client_gss_creds(struct cli_credentials *cred,
enum credentials_obtained obtained);
diff --git a/source4/auth/kerberos/kerberos_util.c b/source4/auth/kerberos/kerberos_util.c
index 0a42c3078d..cbbe2d1335 100644
--- a/source4/auth/kerberos/kerberos_util.c
+++ b/source4/auth/kerberos/kerberos_util.c
@@ -316,6 +316,7 @@ krb5_error_code principal_from_credentials(TALLOC_CTX *parent_ctx,
* the library routines. The returned princ is placed in the talloc
* system by means of a destructor (do *not* free). */
+static
krb5_error_code impersonate_principal_from_credentials(TALLOC_CTX *parent_ctx,
struct cli_credentials *credentials,
struct smb_krb5_context *smb_krb5_context,