auth: disable legacy auth by default
Legacy authentication can expose password in plaintext. Since this is not widely used mechanism, disable it by default. It can be enabled back with connection option XMPP_CONN_FLAG_LEGACY_AUTH.
This commit is contained in:
@@ -169,6 +169,10 @@ typedef struct _xmpp_stanza_t xmpp_stanza_t;
|
||||
* Trust server's certificate even if it is invalid.
|
||||
*/
|
||||
#define XMPP_CONN_FLAG_TRUST_TLS (1UL << 3)
|
||||
/** @def XMPP_CONN_FLAG_LEGACY_AUTH
|
||||
* Enable legacy authentication support.
|
||||
*/
|
||||
#define XMPP_CONN_FLAG_LEGACY_AUTH (1UL << 4)
|
||||
|
||||
/* connect callback */
|
||||
typedef enum {
|
||||
|
||||
Reference in New Issue
Block a user