summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/providers/data_provider.h1
-rw-r--r--src/providers/dp_auth_util.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h
index 951b47ab..4bea0317 100644
--- a/src/providers/data_provider.h
+++ b/src/providers/data_provider.h
@@ -207,6 +207,7 @@ bool dp_unpack_pam_response(DBusMessage *msg, struct pam_data *pd,
int dp_common_send_id(struct sbus_connection *conn, uint16_t version,
const char *name);
+void dp_id_callback(DBusPendingCall *pending, void *ptr);
/* from dp_sbus.c */
int dp_get_sbus_address(TALLOC_CTX *mem_ctx,
diff --git a/src/providers/dp_auth_util.c b/src/providers/dp_auth_util.c
index e09a6924..97690057 100644
--- a/src/providers/dp_auth_util.c
+++ b/src/providers/dp_auth_util.c
@@ -236,7 +236,7 @@ bool dp_unpack_pam_response(DBusMessage *msg, struct pam_data *pd, DBusError *db
return true;
}
-static void id_callback(DBusPendingCall *pending, void *ptr)
+void dp_id_callback(DBusPendingCall *pending, void *ptr)
{
DBusMessage *reply;
DBusError dbus_error;
@@ -327,7 +327,7 @@ int dp_common_send_id(struct sbus_connection *conn, uint16_t version,
return EIO;
}
- retval = sbus_conn_send(conn, msg, 30000, id_callback, NULL, NULL);
+ retval = sbus_conn_send(conn, msg, 30000, dp_id_callback, NULL, NULL);
dbus_message_unref(msg);
return retval;