/* Number of elements of an array */
#define nelem(arr) (sizeof(arr) / sizeof(*arr))
+/* Maximum of two items */
+#ifndef MAX
+# define MAX(a,b) ((a) > (b) ? (a) : (b))
+#endif
+
/* When running in the test harness, the load average is fudged. */
return *smtp_inptr++;
}
-#ifndef DISABLE_DKIM
void
smtp_get_cache(void)
{
+#ifndef DISABLE_DKIM
int n = smtp_inend - smtp_inptr;
if (n > 0)
dkim_exim_verify_feed(smtp_inptr, n);
-}
#endif
+}
/* Get a byte from the smtp input, in CHUNKING mode. Handle ack of the
return state->xfer_buffer[state->xfer_buffer_lwm++];
}
-#ifndef DISABLE_DKIM
void
tls_get_cache()
{
+#ifndef DISABLE_DKIM
exim_gnutls_state_st * state = &state_server;
int n = state->xfer_buffer_hwm - state->xfer_buffer_lwm;
if (n > 0)
dkim_exim_verify_feed(state->xfer_buffer+state->xfer_buffer_lwm, n);
-}
#endif
+}
return ssl_xfer_buffer[ssl_xfer_buffer_lwm++];
}
-#ifndef DISABLE_DKIM
void
tls_get_cache()
{
+#ifndef DISABLE_DKIM
int n = ssl_xfer_buffer_hwm - ssl_xfer_buffer_lwm;
if (n > 0)
dkim_exim_verify_feed(ssl_xfer_buffer+ssl_xfer_buffer_lwm, n);
-}
#endif
+}
# Exim test configuration 0900
SERVER=
-X=
Y=
OPT=
ALLOW=
command_timeout = 2s
final_timeout = 2s
+.ifdef X
dkim_domain = test.ex
dkim_selector = sel
dkim_private_key = DIR/aux-fixed/dkim/dkim.private
.ifndef HEADERS_MAXSIZE
dkim_sign_headers = OPT
.endif
+.endif
# ----- Retry -----