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-27 14:44:12 -0400
commita772f2e29661dda4c69124a4c794183798418ae4 (patch)
tree373c10aa66f529107eb590f357d866090f35cad9 /src/providers/data_provider.h
parent7b368c6322c10b0b650df2bf427aa9a3599ef472 (diff)
downloadsssd-a772f2e29661dda4c69124a4c794183798418ae4.tar.gz
sssd-a772f2e29661dda4c69124a4c794183798418ae4.tar.xz
sssd-a772f2e29661dda4c69124a4c794183798418ae4.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 4bea03179..7f424b4e0 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,