summaryrefslogtreecommitdiffstats
path: root/src/providers/data_provider.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-05-20 10:12:47 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-05-20 14:04:56 -0400
commit918c5863cf6f8e7b43c643dd623263df865cc109 (patch)
tree7cfc591ca22775a1b275d897ccf7435b5c2dc864 /src/providers/data_provider.h
parent11fde1c71b4dcae312e5fcfecd8db38b6924801c (diff)
downloadsssd-918c5863cf6f8e7b43c643dd623263df865cc109.tar.gz
sssd-918c5863cf6f8e7b43c643dd623263df865cc109.tar.xz
sssd-918c5863cf6f8e7b43c643dd623263df865cc109.zip
Copy pam data from DBus message
Instead of just using references to the pam data inside of the DBus message the data is copied. New the DBus message can be freed at any time and the pam data is part of the memory hierarchy. Additionally it is possible to overwrite the authentication tokens in the DBus message, because it is not used elsewhere.
Diffstat (limited to 'src/providers/data_provider.h')
-rw-r--r--src/providers/data_provider.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h
index 951b47ab1..e71d13000 100644
--- a/src/providers/data_provider.h
+++ b/src/providers/data_provider.h
@@ -198,8 +198,8 @@ int pam_add_response(struct pam_data *pd,
int len, const uint8_t *data);
bool dp_pack_pam_request(DBusMessage *msg, struct pam_data *pd);
-bool dp_unpack_pam_request(DBusMessage *msg, struct pam_data *pd,
- DBusError *dbus_error);
+bool dp_unpack_pam_request(DBusMessage *msg, TALLOC_CTX *mem_ctx,
+ struct pam_data **new_pd, DBusError *dbus_error);
bool dp_pack_pam_response(DBusMessage *msg, struct pam_data *pd);
bool dp_unpack_pam_response(DBusMessage *msg, struct pam_data *pd,