mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 12:03:55 +01:00
Switched build system to meson.
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
@ -6,8 +8,10 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define LOCAL_SCAN
|
||||
#define DLFUNC_IMPL
|
||||
/* Exim4 dlfunc API header */
|
||||
#include <local_scan.h>
|
||||
#include <exim4/local_scan.h>
|
||||
|
||||
/*
|
||||
* This is a set of workarounds for the different exim local_scan ABI versions, distribution patches and missing
|
||||
@ -21,26 +25,14 @@
|
||||
* 3.1 Ubuntu 20-04 (Focal)
|
||||
*/
|
||||
|
||||
// local_scan ABI version < 3
|
||||
#if LOCAL_SCAN_ABI_VERSION_MAJOR < 3
|
||||
#define LOCAL_SCAN
|
||||
#if LOCAL_SCAN_VERSION < 3
|
||||
#define store_get_untainted(size) store_get(size)
|
||||
#define store_get_tainted(size) store_get(size)
|
||||
|
||||
// local_scan ABI version == 3
|
||||
#elif LOCAL_SCAN_ABI_VERSION_MAJOR == 3
|
||||
#define DLFUNC_IMPL
|
||||
#elif LOCAL_SCAN_VERSION >= 3
|
||||
#define store_get_untainted(size) store_get(size, FALSE)
|
||||
#define store_get_tainted(size) store_get(size, TRUE)
|
||||
|
||||
# define string_copy(s) string_copy_function(s)
|
||||
extern uschar * string_copy_function(const uschar *);
|
||||
|
||||
// local_scan ABI version > 3
|
||||
#else
|
||||
#define DLFUNC_IMPL
|
||||
#define store_get_untainted(size) store_get(size, FALSE)
|
||||
#define store_get_tainted(size) store_get(size, TRUE)
|
||||
#error "exim4 local version"
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -329,4 +321,4 @@ int sodium_crypto_box_seal_open(uschar **yield, int argc, uschar *argv[]) {
|
||||
// return cleartext
|
||||
*yield = string_copy(cleartext);
|
||||
return OK;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user