Client-Library uses the negotiation callback to handle both trusted-user security handshakes and challenge/response security handshakes.
See the “Security features”.