diff options
author | Patrick Okraku <patrick@okraku.com> | 2023-11-01 19:12:32 +0100 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2023-11-05 07:12:01 -0600 |
commit | 9b76b557ecaece2a5fa862ea4dc75ed613e3fbf0 (patch) | |
tree | dd1955e089faeea589f475fa71bbc682e6e85fb5 /src/common/hexchat.h | |
parent | 6420fd61174e6a8218bf2740605ceb9241eaf36f (diff) |
Added support for SCRAM-SHA-1, SCRAM-SHA-256 and SCRAM-SHA-512
Diffstat (limited to 'src/common/hexchat.h')
-rw-r--r-- | src/common/hexchat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/hexchat.h b/src/common/hexchat.h index 1b86f588..5ead96d1 100644 --- a/src/common/hexchat.h +++ b/src/common/hexchat.h @@ -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; |