
btstack - issue #458
l2cap_require_security_level_2_for_outgoing_sdp() doesn't work as it should
I want to request authentication when SDP channel is opened. I tried l2cap_require_security_level_2_for_outgoing_sdp() but it doesn't actually change the security level.
I changed the security level in 'sdp_init()' and it works. However, I still wonder if it is the correct way to achieve this. BTW, SSP is not used in my case.
Comment #1
Posted on Jun 1, 2015 by Swift OxHi
sorry for not answering earlier. Why do you need security level 2 for sdp? I think Bluetooth mandates level 2 for devices that support SSP and all services but SDP.
Looking at the code, l2cap_require_security_level_2_for_outgoing_sdp() sets a flag that is used by l2cap_security_level_0_allowed_for_PSM(psm), which in turn is only called for outgoing connections. The initiating side is in general responsible for asserting the correct security level, but I see you point that you'd also like to require a minimum level also for incoming - as you did by modifying sdp_init().
Status: New
Labels:
Type-Defect
Priority-Medium