diff options
author | Sumit Bose <sbose@redhat.com> | 2010-05-20 10:12:47 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-05-20 14:09:56 -0400 |
commit | 2faf73eef14d66aeb345ffa38d0f53670fa8a9a1 (patch) | |
tree | 4357f06db2208b076c587ebabeb4edc5e61945f2 /src/providers/data_provider.h | |
parent | e091bbd28c35fe8f916a15b4b0548f1b5419aab7 (diff) | |
download | sssd-2faf73eef14d66aeb345ffa38d0f53670fa8a9a1.tar.gz sssd-2faf73eef14d66aeb345ffa38d0f53670fa8a9a1.tar.xz sssd-2faf73eef14d66aeb345ffa38d0f53670fa8a9a1.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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h index 747e6e89d..c4427d610 100644 --- a/src/providers/data_provider.h +++ b/src/providers/data_provider.h @@ -187,8 +187,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, |