guelfey / go.dbus

Native Go bindings for D-Bus
BSD 2-Clause "Simplified" License
124 stars 42 forks source link

Handle empty SASL handshake to fix "dbus: authentication failed" #69

Open ringerc opened 3 years ago

ringerc commented 3 years ago

See issue #68 for details.

This pull request incorporates the proposed fix for #68 as seen in the commit message for 9c4d13f, as well as an option to trace the protocol exchange during authentication and a small README change.

Note that this changes the public interface dbus.Auth to allow mechanism implementations to accept and respond with DATA payloads of zero or more elements, instead of the fixed single-element payloads the interface baked in previously.

This is a breaking API change for external implementations of dbus.Auth but doesn't change any other public API.