2 #define PROTON_SASL_H 1
26 #include <sys/types.h>
negotiation not completed
Definition: sasl.h:53
PN_EXTERN void pn_sasl_client(pn_sasl_t *sasl)
Configure the SASL layer to act as a SASL client.
PN_EXTERN void pn_sasl_allow_skip(pn_sasl_t *sasl, bool allow)
Configure a SASL server layer to permit the client to skip the SASL exchange.
Pending SASL Init.
Definition: sasl.h:65
#define PN_EXTERN
Definition: import_export.h:53
failed due to bad credentials
Definition: sasl.h:55
failed due to a system error
Definition: sasl.h:56
PN_EXTERN pn_sasl_t * pn_sasl(pn_transport_t *transport)
Construct an Authentication and Security Layer object.
failed due to unrecoverable error
Definition: sasl.h:57
PN_EXTERN void pn_sasl_server(pn_sasl_t *sasl)
Configure the SASL layer to act as a server.
PN_EXTERN pn_sasl_state_t pn_sasl_state(pn_sasl_t *sasl)
Access the current state of the layer.
PN_EXTERN size_t pn_sasl_pending(pn_sasl_t *sasl)
Determine the size of the bytes available via pn_sasl_recv().
failed due to transient error
Definition: sasl.h:58
struct pn_sasl_t pn_sasl_t
Definition: sasl.h:48
PN_EXTERN ssize_t pn_sasl_send(pn_sasl_t *sasl, const char *bytes, size_t size)
Send challenge or response data to the peer.
PN_EXTERN void pn_sasl_plain(pn_sasl_t *sasl, const char *username, const char *password)
Configure the SASL layer to use the "PLAIN" mechanism.
pn_sasl_state_t
The state of the SASL negotiation process.
Definition: sasl.h:62
PN_EXTERN const char * pn_sasl_remote_mechanisms(pn_sasl_t *sasl)
Retrieve the list of SASL mechanisms provided by the remote.
negotiation completed successfully
Definition: sasl.h:67
PN_EXTERN ssize_t pn_sasl_recv(pn_sasl_t *sasl, char *bytes, size_t size)
Read challenge/response data sent from the peer.
authentication succeeded
Definition: sasl.h:54
Pending configuration by application.
Definition: sasl.h:64
pn_sasl_outcome_t
The result of the SASL negotiation.
Definition: sasl.h:51
negotiation in progress
Definition: sasl.h:66
PN_EXTERN void pn_sasl_done(pn_sasl_t *sasl, pn_sasl_outcome_t outcome)
Set the outcome of SASL negotiation.
PN_EXTERN void pn_sasl_mechanisms(pn_sasl_t *sasl, const char *mechanisms)
Set the acceptable SASL mechanisms for the layer.
struct pn_transport_t pn_transport_t
An AMQP Transport object.
Definition: types.h:255
PN_EXTERN pn_sasl_outcome_t pn_sasl_outcome(pn_sasl_t *sasl)
Retrieve the outcome of SASL negotiation.