Skip to content

Commit bef18e3

Browse files
Add SASL SCRAM option
Patch by: michaelortmann This PR implements SASL_MECHANISM_SCRAM_SHA_256 and SASL_MECHANISM_SCRAM_SHA_512, and handles 908 messages.
1 parent 341477a commit bef18e3

File tree

6 files changed

+772
-390
lines changed

6 files changed

+772
-390
lines changed

eggdrop.conf

+7-1
Original file line numberDiff line numberDiff line change
@@ -1113,12 +1113,18 @@ server add ssl.example.net +7000
11131113
# 1 = ECDSA-NIST256P-CHALLENGE (Uses a certificate; usually requires a
11141114
# public key to be registered with NickServ
11151115
# or other similar service. Set certificate
1116-
# to use in sasl-ecdsa-key setting below)
1116+
# to use in sasl-ecdsa-key setting below.
1117+
# Beware: NIST curve could be backdoored,
1118+
# so please use EXTERNAL or SCRAM instead.)
11171119
#
11181120
# 2 = EXTERNAL (Some other method you set up. Certificates
11191121
# used are defined in ssl-certificate and
11201122
# ssl-privatekey settings in SSL section)
11211123
#
1124+
# 3 = SCRAM-SHA-256
1125+
#
1126+
# 4 = SCRAM-SHA-512
1127+
#
11221128
#set sasl-mechanism 0
11231129

11241130
# Set username to authenticate to IRC NickServ with

src/mod/server.mod/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ distclean: clean
4040
.././server.mod/server.h .././server.mod/isupport.c \
4141
.././server.mod/tclisupport.c .././server.mod/servmsg.c \
4242
.././server.mod/../irc.mod/irc.h \
43-
.././server.mod/../channels.mod/channels.h .././server.mod/cmdsserv.c \
44-
.././server.mod/tclserv.c
43+
.././server.mod/../channels.mod/channels.h .././server.mod/sasl.c \
44+
.././server.mod/cmdsserv.c .././server.mod/tclserv.c

0 commit comments

Comments
 (0)