sendmail/sendmail-8.17.1-cyrus-sasl-2.1.28-fix.patch
Jaroslav Škarvada 766a0cfb46 Fixed SASL auth with cyrus-sasl-2.1.28
Resolves: rhbz#2140596
2022-11-13 21:51:11 +01:00

24 lines
945 B
Diff

diff --git a/sendmail/sendmail.h b/sendmail/sendmail.h
index 9e34dd9..e020d6e 100644
--- a/sendmail/sendmail.h
+++ b/sendmail/sendmail.h
@@ -756,7 +756,7 @@ extern bool filesys_free __P((long));
# define SASL_IS_AUTH 2 /* authenticated */
/* SASL options */
-# define SASL_AUTH_AUTH 0x1000 /* use auth= only if authenticated */
+# define SASL_AUTH_AUTH 0x10000 /* use auth= only if authenticated */
# if SASL >= 20101
# define SASL_SEC_MASK SASL_SEC_MAXIMUM /* mask for SASL_SEC_* values: sasl.h */
# else /* SASL >= 20101 */
@@ -771,6 +771,9 @@ extern bool filesys_free __P((long));
# endif /* SASL_SEC_NOPLAINTEXT & SASL_SEC_MASK) == 0 ... */
# endif /* SASL >= 20101 */
# define MAXOUTLEN 8192 /* length of output buffer, should be 2^n */
+# if (SASL_AUTH_AUTH & SASL_SEC_MASK) != 0
+# ERROR "change SASL_AUTH_AUTH notify sendmail.org!"
+# endif
/* functions */
extern char *intersect __P((char *, char *, SM_RPOOL_T *));