Function qpid_proton_sys::pn_connection_set_user[][src]

pub unsafe extern "C" fn pn_connection_set_user(
    connection: *mut pn_connection_t,
    user: *const c_char
)
Expand description

Set the authentication username for a client connection. It is necessary to set the username and password before binding the connection to a transport and it isn’t allowed to change them after the binding. If not set then no authentication will be negotiated unless the client sasl layer is explicitly created (this would be for something like Kerberos where the credentials are implicit in the environment, or to explicitly use the ANONYMOUS SASL mechanism)