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:
Kenny Root 2016-06-28 18:26:02 -07:00
commit 7c37b2a4d6
14 changed files with 286 additions and 96 deletions

View file

@ -8,7 +8,7 @@ char *address;
int port;
char *password;
int sasl_mechanism;
char *sasl_mechanism;
char *sasl_password;
char *ssl_cert;