busybox/mailutils
Raffaello D. Di Napoli f28b8857a9 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>
2018-07-31 17:17:40 +02:00
..
Config.src config: deindent all help texts 2017-07-21 09:50:55 +02:00
Kbuild.src reformime: do not require \r\n 2011-05-22 03:46:33 +02:00
mail.c sendmail: support AUTH PLAIN in addition to AUTH LOGIN 2018-07-31 17:17:40 +02:00
mail.h sendmail: support AUTH PLAIN in addition to AUTH LOGIN 2018-07-31 17:17:40 +02:00
makemime.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
popmaildir.c popmaildir: placate gcc8 "warning: 'strncpy' output truncated" 2018-05-14 11:14:58 +02:00
reformime.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
sendmail.c sendmail: support AUTH PLAIN in addition to AUTH LOGIN 2018-07-31 17:17:40 +02:00