aboutsummaryrefslogtreecommitdiff
path: root/mailutils/mail.h
diff options
context:
space:
mode:
authorRaffaello D. Di Napoli <rafdev@dinapo.li>2018-06-26 19:17:45 -0400
committerDenys Vlasenko <vda.linux@googlemail.com>2018-07-31 17:17:40 +0200
commitf28b8857a9fa7b2b137a19ce7069077da5706d78 (patch)
treea699ba6077e00505ebb041944eb005d17bd53055 /mailutils/mail.h
parentc16ae469ef132d7250a509ef5ccf3420e2fc567f (diff)
downloadbusybox-f28b8857a9fa7b2b137a19ce7069077da5706d78.tar.gz
sendmail: support AUTH PLAIN in addition to AUTH LOGIN
Implement the -am argument to allow choosing an AUTH method. For now only PLAIN and LOGIN are supported, but others can be added easily in the future. AUTH PLAIN required adding a new variant of encode_base64() capable of handling NUL characters in the input string; the old function is now a wrapper for the newer one. function old new delta encode_n_base64 - 236 +236 sendmail_main 1199 1380 +181 packed_usage 32873 32877 +4 encode_base64 242 36 -206 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/1 up/down: 421/-206) Total: 215 bytes Signed-off-by: Raffaello D. Di Napoli <rafdev@dinapo.li> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mailutils/mail.h')
-rw-r--r--mailutils/mail.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mailutils/mail.h b/mailutils/mail.h
index fa0c5b378..4eb2bc2c0 100644
--- a/mailutils/mail.h
+++ b/mailutils/mail.h
@@ -35,3 +35,4 @@ void get_cred_or_die(int fd) FAST_FUNC;
char *send_mail_command(const char *fmt, const char *param) FAST_FUNC;
void encode_base64(char *fname, const char *text, const char *eol) FAST_FUNC;
+void encode_n_base64(char *fname, const char *text, size_t size, const char *eol) FAST_FUNC;