summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/py_auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/ndr/py_auth.c')
-rw-r--r--source4/librpc/ndr/py_auth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/librpc/ndr/py_auth.c b/source4/librpc/ndr/py_auth.c
index 40164e0981..8c9c16fa21 100644
--- a/source4/librpc/ndr/py_auth.c
+++ b/source4/librpc/ndr/py_auth.c
@@ -1,6 +1,7 @@
/*
Unix SMB/CIFS implementation.
- Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007-2008
+
+ Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007-2011
Copyright (C) Andrew Bartlett <abartlet@samba.org> 2011
This program is free software; you can redistribute it and/or modify
@@ -46,7 +47,7 @@ static void PyType_AddGetSet(PyTypeObject *type, PyGetSetDef *getset)
static PyObject *py_auth_session_get_credentials(PyObject *self, void *closure)
{
- struct auth_session_info *session = py_talloc_get_type(self, struct auth_session_info);
+ struct auth_session_info *session = pytalloc_get_type(self, struct auth_session_info);
PyObject *py_credentials;
/* This is evil, as the credentials are not IDL structures */
py_credentials = py_return_ndr_struct("samba.credentials", "Credentials", session->credentials, session->credentials);
@@ -55,7 +56,7 @@ static PyObject *py_auth_session_get_credentials(PyObject *self, void *closure)
static int py_auth_session_set_credentials(PyObject *self, PyObject *value, void *closure)
{
- struct auth_session_info *session = py_talloc_get_type(self, struct auth_session_info);
+ struct auth_session_info *session = pytalloc_get_type(self, struct auth_session_info);
session->credentials = talloc_reference(session, PyCredentials_AsCliCredentials(value));
return 0;
}