s4-auth-krb: Move function into more appropriate header.
authorSimo Sorce <idra@samba.org>
Fri, 30 Mar 2012 21:17:07 +0000 (17:17 -0400)
committerAndreas Schneider <asn@samba.org>
Thu, 12 Apr 2012 10:06:41 +0000 (12:06 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
auth/credentials/credentials_krb5.h
source4/auth/kerberos/kerberos_credentials.h

index 2a66e0e39fb7ef1209125eb5f06d34b35df8ac94..fc7d0be220af01776d616d69d74d042288eb24ef 100644 (file)
@@ -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__ */
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);