[PATCH 2/2] Request secure pincode from agent when necessary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/agent.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/agent.c b/src/agent.c
index 7bba849..d1494de 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -428,11 +428,9 @@ static int pincode_request_new(struct agent_request *req, const char *device_pat
 {
 	struct agent *agent = req->agent;
 
-	/* TODO: Add a new method or a new param to Agent interface to request
-		secure pin. */
-
 	req->msg = dbus_message_new_method_call(agent->name, agent->path,
-					"org.bluez.Agent", "RequestPinCode");
+				"org.bluez.Agent", secure ?
+				"RequestSecurePinCode" : "RequestPinCode");
 	if (req->msg == NULL) {
 		error("Couldn't allocate D-Bus message");
 		return -ENOMEM;
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux