25#include <proton/import_export.h>
26#include <proton/type_compat.h>
void pn_sasl_done(pn_sasl_t *sasl, pn_sasl_outcome_t outcome)
Deprecated - Do not use.
pn_sasl_outcome_t pn_sasl_outcome(pn_sasl_t *sasl)
Retrieve the outcome of SASL negotiation.
pn_sasl_t * pn_sasl(pn_transport_t *transport)
Construct an Authentication and Security Layer object.
const char * pn_sasl_get_mech(pn_sasl_t *sasl)
Return the selected SASL mechanism.
bool pn_sasl_extended(void)
Do we support extended SASL negotiation.
const char * pn_sasl_get_authorization(pn_sasl_t *sasl)
Retrieve the authorization id.
struct pn_sasl_t pn_sasl_t
The SASL layer is responsible for establishing an authenticated and/or encrypted tunnel over which AM...
Definition: sasl.h:49
void pn_sasl_allowed_mechs(pn_sasl_t *sasl, const char *mechs)
SASL mechanisms that are to be considered for authentication.
const char * pn_sasl_get_user(pn_sasl_t *sasl)
Retrieve the authenticated user.
void pn_sasl_config_path(pn_sasl_t *sasl, const char *path)
Set the sasl configuration path.
bool pn_sasl_get_allow_insecure_mechs(pn_sasl_t *sasl)
Return the current value for allow_insecure_mechs.
void pn_sasl_config_name(pn_sasl_t *sasl, const char *name)
Set the sasl configuration name.
pn_sasl_outcome_t
The result of the SASL negotiation.
Definition: sasl.h:54
void pn_sasl_set_allow_insecure_mechs(pn_sasl_t *sasl, bool insecure)
Boolean to allow use of clear text authentication mechanisms.
@ PN_SASL_OK
negotiation not completed
Definition: sasl.h:56
@ PN_SASL_PERM
failed due to a system error
Definition: sasl.h:59
@ PN_SASL_AUTH
authentication succeeded
Definition: sasl.h:57
@ PN_SASL_SYS
failed due to bad credentials
Definition: sasl.h:58
@ PN_SASL_TEMP
failed due to unrecoverable error
Definition: sasl.h:60
struct pn_transport_t pn_transport_t
A network channel supporting an AMQP connection.
Definition: types.h:435