Agents can now return PIN codes longer than 16 characters. The pin parser automatically truncates all PINs to 16 characters, but allows hexadecimal PINs to be longer than 16 characters because each two hexdecimal encoded bytes are parsed into one output byte. --- src/agent.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/agent.c b/src/agent.c index f87f253..40495bf 100644 --- a/src/agent.c +++ b/src/agent.c @@ -403,7 +403,7 @@ static void pincode_reply(DBusPendingCall *call, void *user_data) len = strlen(pin); dbus_error_init(&err); - if (len > 16 || len < 1) { + if (len < 1) { error("Invalid PIN length (%zu) from agent", len); dbus_set_error_const(&err, "org.bluez.Error.InvalidArgs", "Invalid passkey length"); -- 1.7.4.4 -- 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