public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: "Johannes Niederloehner" <johannes.niederloehner@gmail.com>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] in 3.36 registering security interface without adapter?
Date: Thu, 21 Aug 2008 01:24:57 +0200	[thread overview]
Message-ID: <a8a143bd0808201624u5b5b5fc0p2f35cccfbfd8e63@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1579 bytes --]

Having some trouble after updating vom 3.31 to 3.36 with registering a
passkeyagent.
Taking a look at the sources I'm wondering couple of things.

in 3.31:

after adding a new adapter...hcid_dbus_register_device calls
dbus_connection_create_object_path and this function of dbus-hci.c adds in
data->user_data the adapter name/path (e.g /org/bluez/hci0)

When a new passkeyagent registers calling the method register_passkey_agent
from the method table security_methods (via the generic_table from
dbus-helper.c)
 the following doesn't fail, since data isnt null:

if (!data) {
        error("register_passkey_agent called without any adapter info!");
        return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
    }



In contrary in 3.36 dbus-helper.c is removed and you are more using GLib
stuff.

the mentioned function hcid_dbus_register_device of dbus-hci.c calls
security_init without passing the adapter name. security_init finally calls
g_dbus_register_interface without providing adapter name.

finally if register_passkey_agent gets called,   the following,  _does
fails_ :

if (!data) {
        error("register_passkey_agent called without any adapter info!");
        return NULL;
    }

since the user_data was never filled.

Everything seems also to be related with the usage of GLib or I mean because
I disabled the usage of that Lib and your own implementation is used instead

Is this a problem, isn't it?
Sorry if I have demonstrated the problem not clearly. In that case just drop
me a line I'll try again tomorrow after having some more sleep.


Thanks,
Johannes N.

[-- Attachment #1.2: Type: text/html, Size: 2049 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

             reply	other threads:[~2008-08-20 23:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 23:24 Johannes Niederloehner [this message]
2008-08-22 11:15 ` [Bluez-users] in 3.36 registering security interface without adapter? jayjwa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a8a143bd0808201624u5b5b5fc0p2f35cccfbfd8e63@mail.gmail.com \
    --to=johannes.niederloehner@gmail.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox