From a772f2e29661dda4c69124a4c794183798418ae4 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 20 May 2010 10:12:47 +0200 Subject: 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. --- src/providers/data_provider.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/providers/data_provider.h') diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h index 4bea0317..7f424b4e 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, -- cgit