mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-11 16:20:20 +00:00
Added support for SCRAM-SHA-1, SCRAM-SHA-256 and SCRAM-SHA-512
This commit is contained in:
committed by
Patrick Griffis
parent
6420fd6117
commit
9b76b557ec
@@ -41,6 +41,7 @@
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
#include <openssl/ssl.h> /* SSL_() */
|
||||
#include "scram.h"
|
||||
#endif
|
||||
|
||||
#ifdef __EMX__ /* for o/s 2 */
|
||||
@@ -430,6 +431,9 @@ typedef struct session
|
||||
/* SASL Mechanisms */
|
||||
#define MECH_PLAIN 0
|
||||
#define MECH_EXTERNAL 1
|
||||
#define MECH_SCRAM_SHA_1 2
|
||||
#define MECH_SCRAM_SHA_256 3
|
||||
#define MECH_SCRAM_SHA_512 4
|
||||
|
||||
typedef struct server
|
||||
{
|
||||
@@ -585,6 +589,7 @@ typedef struct server
|
||||
#ifdef USE_OPENSSL
|
||||
unsigned int use_ssl:1; /* is server SSL capable? */
|
||||
unsigned int accept_invalid_cert:1;/* ignore result of server's cert. verify */
|
||||
scram_session *scram_session; /* session for SASL SCRAM authentication */
|
||||
#endif
|
||||
} server;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user