X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/986abcee996d486db0b9c753974f3cb0eac2e9b2..a9f9e3d5387e31c404fd24ee71b2a72b005b85eb:/mts/smtp/smtp.c diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index f22e738b..d5ce434f 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -5,12 +5,15 @@ * complete copyright information. */ -#include +#include "h/mh.h" +#include "sbr/r1bindex.h" +#include "sbr/client.h" +#include "sbr/error.h" #include "smtp.h" -#include -#include -#include -#include +#include "h/mts.h" +#include "h/signals.h" +#include "h/utils.h" +#include "h/netsec.h" #include #include "sbr/base64.h" @@ -154,7 +157,7 @@ smtp_init (char *client, char *server, char *port, int watch, int verbose, */ if (tls & S_INITTLS) { - if (netsec_negotiate_tls(nsc, &errstr) != OK) { + if (netsec_negotiate_tls(nsc, &errstr) != OK) { sm_end(NOTOK); return sm_nerror(errstr); } @@ -383,7 +386,7 @@ sendmail_init (char *client, int watch, int verbose, int debug, int sasl, */ if (sasl) { - char *server_mechs; + char *server_mechs; if (! (server_mechs = EHLOset("AUTH"))) { sm_end(NOTOK); return sm_ierror("SMTP server does not support SASL"); @@ -810,7 +813,7 @@ again: ; rc = sizeof(sm_reply.text) - 1; for (more = false; (buffer = netsec_readline(nsc, &buflen, - &errstr)) != NULL ; ) { + &errstr)) != NULL ; ) { if (doingEHLO && has_prefix(buffer, "250") @@ -1045,7 +1048,7 @@ sm_sasl_callback(enum sasl_message_type mtype, unsigned const char *indata, *outdata = NULL; *outdatalen = 0; } else { - rc = decodeBase64(line + 4, outdata, &len, 0, NULL); + rc = decodeBase64(line + 4, outdata, &len, 0); if (rc != OK) { netsec_err(errstr, "Unable to decode base64 response"); return NOTOK;