summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/credentials/credentials.i8
-rw-r--r--source4/auth/credentials/credentials_wrap.c2
-rw-r--r--source4/auth/session.h1
3 files changed, 6 insertions, 5 deletions
diff --git a/source4/auth/credentials/credentials.i b/source4/auth/credentials/credentials.i
index b06c4ff6da..8f09ff4b18 100644
--- a/source4/auth/credentials/credentials.i
+++ b/source4/auth/credentials/credentials.i
@@ -43,14 +43,14 @@ typedef struct cli_credentials cli_credentials;
%}
%typemap(out,noblock=1) struct samr_Password * {
- $result = PyString_FromStringAndSize($1->hash, 16);
+ $result = PyString_FromStringAndSize((char *)$1->hash, 16);
}
%talloctype(cli_credentials);
%rename(Credentials) cli_credentials;
typedef struct cli_credentials {
%extend {
- cli_credentials() {
+ cli_credentials(void) {
return cli_credentials_init(NULL);
}
/* username */
@@ -90,8 +90,8 @@ typedef struct cli_credentials {
const struct samr_Password *get_nt_hash(TALLOC_CTX *mem_ctx);
- bool authentication_requested();
+ bool authentication_requested(void);
- bool wrong_password();
+ bool wrong_password(void);
}
} cli_credentials;
diff --git a/source4/auth/credentials/credentials_wrap.c b/source4/auth/credentials/credentials_wrap.c
index 0beaf85f42..ebf7162c5b 100644
--- a/source4/auth/credentials/credentials_wrap.c
+++ b/source4/auth/credentials/credentials_wrap.c
@@ -3407,7 +3407,7 @@ SWIGINTERN PyObject *_wrap_Credentials_get_nt_hash(PyObject *SWIGUNUSEDPARM(self
arg1 = (cli_credentials *)(argp1);
}
result = (struct samr_Password *)cli_credentials_get_nt_hash(arg1,arg2);
- resultobj = PyString_FromStringAndSize(result->hash, 16);
+ resultobj = PyString_FromStringAndSize((char *)result->hash, 16);
return resultobj;
fail:
return NULL;
diff --git a/source4/auth/session.h b/source4/auth/session.h
index 233b84d39a..039c005bb0 100644
--- a/source4/auth/session.h
+++ b/source4/auth/session.h
@@ -28,6 +28,7 @@ struct auth_session_info {
struct cli_credentials *credentials;
};
+#include "librpc/gen_ndr/netlogon.h"
#include "auth/session_proto.h"
#endif /* _SAMBA_AUTH_SESSION_H */