source4/auth: Fix prototypes for all functions.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 18 Mar 2011 23:44:56 +0000 (00:44 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 19 Mar 2011 02:20:05 +0000 (03:20 +0100)
source4/auth/credentials/credentials.c
source4/auth/credentials/credentials_secrets.c
source4/auth/credentials/pycredentials.c
source4/auth/kerberos/kerberos.h
source4/auth/kerberos/krb5_init_context.h
source4/auth/pyauth.c

index 21ee98785276ddc5f87db5d3429489c50e2b9887..015c549693174c9505e04c6fbc9661eeb1a47e7a 100644 (file)
@@ -24,6 +24,7 @@
 #include "includes.h"
 #include "librpc/gen_ndr/samr.h" /* for struct samrPassword */
 #include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_proto.h"
 #include "libcli/auth/libcli_auth.h"
 #include "lib/events/events.h"
 #include "param/param.h"
index 0be4680e344177a0055440a8361dd5b1addcfd6a..86e31f4c8b2a858c27239b69d2ed0eff8de6f608 100644 (file)
@@ -28,6 +28,7 @@
 #include "param/secrets.h"
 #include "system/filesys.h"
 #include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_proto.h"
 #include "auth/credentials/credentials_krb5.h"
 #include "auth/kerberos/kerberos_util.h"
 #include "param/param.h"
index c51e5e1f45564d8a8c254bc47549b2abcde8b8b5..909d89786f89002d00ae1afb3d219d5b6d7a1218 100644 (file)
@@ -26,6 +26,8 @@
 #include "param/pyparam.h"
 #include <tevent.h>
 
+void initcredentials(void);
+
 static PyObject *PyString_FromStringOrNULL(const char *str)
 {
        if (str == NULL)
@@ -267,7 +269,7 @@ static PyObject *py_creds_set_machine_account(py_talloc_Object *self, PyObject *
        Py_RETURN_NONE;
 }
 
-PyObject *PyCredentialCacheContainer_from_ccache_container(struct ccache_container *ccc)
+static PyObject *PyCredentialCacheContainer_from_ccache_container(struct ccache_container *ccc)
 {
        PyCredentialCacheContainerObject *py_ret;
 
index 501a4653d73de744b6fb76d9a3ffeda54dcb2a4d..3f021ad70acc8063f9fd81b86058d5b1794c0c3a 100644 (file)
@@ -18,6 +18,9 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#ifndef _AUTH_KERBEROS_H_
+#define _AUTH_KERBEROS_H_
+
 #if defined(HAVE_KRB5)
 
 #include "auth/kerberos/krb5_init_context.h"
@@ -157,3 +160,5 @@ krb5_error_code smb_krb5_update_keytab(TALLOC_CTX *parent_ctx,
 #include "auth/kerberos/proto.h"
 
 #endif /* HAVE_KRB5 */
+
+#endif /* _AUTH_KERBEROS_H_ */
index 047772c8f75954256a3a78a3e16c0b5d363be5e4..835438cc5b1c4bf8ed24e1d976d04df221aa3486 100644 (file)
@@ -17,6 +17,9 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#ifndef _KRB5_INIT_CONTEXT_H_
+#define _KRB5_INIT_CONTEXT_H_
+
 struct smb_krb5_context {
        krb5_context krb5_context;
        krb5_log_facility *logf;
@@ -41,3 +44,5 @@ krb5_error_code smb_krb5_send_and_recv_func(krb5_context context,
                                            time_t timeout,
                                            const krb5_data *send_buf,
                                            krb5_data *recv_buf);
+
+#endif /* _KRB5_INIT_CONTEXT_H_ */
index 2b310bfa1b89418420b908addb66f2eed72965ad..9cb770b798140fcbd4a50ffda28466aa69a2df58 100644 (file)
@@ -31,6 +31,8 @@
 #include <tevent.h>
 #include "librpc/rpc/pyrpc_util.h"
 
+void initauth(void);
+
 staticforward PyTypeObject PyAuthContext;
 
 /* There's no Py_ssize_t in 2.4, apparently */