X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fauths%2Fget_no64_data.c;h=a019756e5e8b217473a4a4811771e00aa8c00322;hb=6b69b71028f15c7ba3157bac955103b764326f60;hp=3d2ebfe61700783a196600cba8b4705435f4ee05;hpb=184e88237dea64ce48076cdd0184612d057cbafd;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/auths/get_no64_data.c b/src/src/auths/get_no64_data.c index 3d2ebfe61..a019756e5 100644 --- a/src/src/auths/get_no64_data.c +++ b/src/src/auths/get_no64_data.c @@ -1,10 +1,8 @@ -/* $Cambridge: exim/src/src/auths/get_no64_data.c,v 1.5 2007/01/08 10:50:19 ph10 Exp $ */ - /************************************************* * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2007 */ +/* Copyright (c) University of Cambridge 1995 - 2018 */ /* See the file NOTICE for conditions of use and distribution. */ #include "../exim.h" @@ -16,8 +14,8 @@ /* This function is used by authentication drivers to output a challenge to the SMTP client and read the response line. This version does not use base -64 encoding for the text on the 334 line. It is used by the SPA and dovecot -authenticators. +64 encoding for the text on the 334 line. It is used by the SPA, dovecot +and gsasl authenticators. Arguments: aptr set to point to the response (which is in big_buffer) @@ -33,8 +31,8 @@ auth_get_no64_data(uschar **aptr, uschar *challenge) { int c; int p = 0; -smtp_printf("334 %s\r\n", challenge); -while ((c = receive_getc()) != '\n' && c != EOF) +smtp_printf("334 %s\r\n", FALSE, challenge); +while ((c = receive_getc(GETC_BUFFER_UNLIMITED)) != '\n' && c != EOF) { if (p >= big_buffer_size - 1) return BAD64; big_buffer[p++] = c;