]> git.ipfire.org Git - people/ms/dma.git/commitdiff
Merge pull request #34 from mtremer/better-authentication master
authorSimon Schubert <2@0x2c.org>
Mon, 12 Feb 2018 17:49:29 +0000 (18:49 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Feb 2018 17:49:29 +0000 (18:49 +0100)
Parse EHLO response and use for authentication

1  2 
crypto.c
dma.h
net.c

diff --cc crypto.c
Simple merge
diff --cc dma.h
index 593417617d3d84dbf64333679523759b161ba004,ee749d8b7ee975d7f35f410c8b0bd3e7181bc3ae..ed0d0fc8cbd09ebb321a321691eacc237874bc10
--- 1/dma.h
--- 2/dma.h
+++ b/dma.h
@@@ -49,8 -49,9 +49,9 @@@
  #define VERSION       "DragonFly Mail Agent " DMA_VERSION
  
  #define BUF_SIZE      2048
 -#define ERRMSG_SIZE   200
 +#define ERRMSG_SIZE   1024
  #define USERNAME_SIZE 50
+ #define EHLO_RESPONSE_SIZE BUF_SIZE
  #define MIN_RETRY     300             /* 5 minutes */
  #define MAX_RETRY     (3*60*60)       /* retry at least every 3 hours */
  #define MAX_TIMEOUT   (5*24*60*60)    /* give up after 5 days */
diff --cc net.c
Simple merge