mirror of
https://github.com/irssi/irssi.git
synced 2026-08-23 18:42:53 +02:00
Add support for SASL mechanisms handled by scripts
This implements the suggested API from #323 with a caveat: currently the SASL mechanisms are tied to IRC and needs a bit of extra work to make them generic enough to move to the regular src/core instead of solely in src/irc/core. This greatly simplifies scripts for each mechanism since this handles the splitting and reassembly of the 400 byte fragments going to and coming from the server. The ECDSA-NIST256P-CHALLENGE mechanism has been reimplemented using this new API and found to work.
This commit is contained in:
parent
b8f7eaad40
commit
7c37b2a4d6
14 changed files with 286 additions and 96 deletions
|
|
@ -137,6 +137,9 @@ irc-cap.c
|
|||
"server cap end", SERVER_REC
|
||||
|
||||
sasl.c
|
||||
"server sasl init "<mechanism>, SERVER_REC
|
||||
"server sasl step "<mechanism>, SERVER_REC, GBytes *
|
||||
"server sasl abort "<mechanism>, SERVER_REC
|
||||
"server sasl failure", SERVER_REC, char *reason
|
||||
"server sasl success", SERVER_REC
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue