Commit Graph

125 Commits

Author SHA1 Message Date
aa8f4c5e02 Small README fixes 2021-09-05 14:32:24 +02:00
565aa43fb2 Removed meson from apt-get install because we use the pip version. 2021-09-05 14:13:50 +02:00
8c0340df0e Merge branch 'debian-packaging' into 'master'
Lower Build-Depends on debhelper-compat to version 12 (which should have

See merge request mail/exim-encrypt-dlfunc!3
2021-09-05 13:57:54 +02:00
b944a41f7c Lower Build-Depends on debhelper-compat to version 12 (which should have 2021-09-05 13:57:54 +02:00
3c2857cfeb Convert exim variable name to uppercase. 0.2.0 2021-08-22 16:14:21 +02:00
3cd6bb69f5 README.md: Remove mentions of KIT. Fix exim variable assignment (C code is still defective). 2021-08-22 13:36:43 +02:00
89b2f7ba93 README.md: Updated build instructions 2021-08-22 12:09:45 +02:00
fe87a7d8f5 CI: install meson and ninja via pip to ensure every platform has the same version with the same feature set. 2021-08-22 11:59:26 +02:00
834714f4c8 meson cleanup 2021-08-22 02:17:11 +02:00
d225bddcb3 fix: corrected artifact path for generate_encryption_keys (former genkey) 2021-08-22 01:41:46 +02:00
e89e5d453d Aligned definition of LOCAL_SCAN and DLFUNC_IMPL with exim local_scan API version 2021-08-22 01:37:20 +02:00
f4b89286b7 Fixed compiler warnings and rewrote documentation for meson. 2021-08-22 01:24:49 +02:00
f73d2129e9 meson: remove config.h.in 2021-08-21 23:53:55 +02:00
bcd6a80211 Merge branch 'meson' 2021-08-21 23:34:30 +02:00
256042512d cpp: more careful macro expansion 2021-08-21 23:33:58 +02:00
b85641ac0e Update .gitlab-ci.yml file: install openssl 2021-08-21 23:28:34 +02:00
da6bff859e Update meson.build 2021-08-21 23:25:05 +02:00
eb9123b3f6 Fix apt interactivity in Ubuntu 2021-08-21 23:10:05 +02:00
abba591c01 CI: Support ancient meson versions 2021-08-21 23:04:57 +02:00
3e73cc6ee1 CI: Support ancient meson versions 2021-08-21 23:04:47 +02:00
26a591bedd CI: Install pkg-config 2021-08-21 23:00:13 +02:00
f8f2a06abc Update .gitlab-ci.yml file 2021-08-21 22:58:16 +02:00
276ddf35aa Switched build system to meson. 2021-08-21 22:57:01 +02:00
70bdb895a5 2021-08-21 19:19:53 +02:00
0530681a39 Added more version workarounds for compilation, late binding and type casting. 2021-08-21 19:11:08 +02:00
6a352fb855 Fix #5 by shortening the cmdline parameters 2021-08-21 18:53:11 +02:00
7eed55a274 Added missing definitions for local_scan ABI version 3 (used in Ubuntu Focal) 2021-08-21 03:56:34 +02:00
ef1afd5be2 Merge branch 'real_tests' into 'master'
Return error code on test failure

See merge request mail/exim-encrypt-dlfunc!2
2021-08-21 03:15:34 +02:00
02d679ddcd Return error code on test failure 2021-08-21 03:14:09 +02:00
d544a00e02 Merge branch 'ci2' 2021-08-21 02:46:23 +02:00
359710e1fd Merge branch 'master' into 'ci2'
# Conflicts:
#   src/Makefile
2021-08-21 00:44:11 +00:00
3053df107a Removed all optimization flags from Makefile. 2021-08-21 02:32:11 +02:00
4c6091c227 Update .gitlab-ci.yml file 2021-08-21 02:28:02 +02:00
9925009fcc Update .gitlab-ci.yml file 2021-08-21 02:18:00 +02:00
09ad1ea5a0 Update .gitlab-ci.yml file 2021-08-21 02:10:54 +02:00
d868072802 Update Makefile 2021-08-21 00:11:09 +02:00
98d2e6ee53 Update Makefile 2021-08-21 00:10:37 +02:00
1942bd8f5b Update .gitlab-ci.yml file 2021-08-21 00:07:29 +02:00
d630289f91 Added target "all" to Makefile 2021-08-21 00:04:06 +02:00
3a437a5bf0 Changed unsigned int to size_t where appropriate (see #4) 2021-08-20 23:10:15 +02:00
05d5a5080d Added debian default compiler and linker options (from dpkg-buildflags --get CFLAGS) 2021-08-20 23:09:40 +02:00
508b985b0e Handle exim local_scan API version changes 2021-08-20 12:00:22 +02:00
6b8e0d948d README.md: typo 2021-08-20 10:39:25 +02:00
ad6b2799d8 Deleted unused header file 2021-08-20 03:05:28 +02:00
c3696498ef fix: typo 2021-08-20 03:02:33 +02:00
44bb873b04 Added first incomplete example to README.md 2021-08-20 02:48:08 +02:00
464e94f402 Added README.md 2021-08-20 02:14:12 +02:00
4969b9277f Removed debug symbols from final library. 2021-08-20 01:49:41 +02:00
a4fd2f5483 Add LICENSE 2021-08-20 01:25:15 +02:00
cd70628822
diff --git a/src/debug_helpers.c b/src/debug_helpers.c
index a461043..329fd64 100644
--- a/src/debug_helpers.c
+++ b/src/debug_helpers.c
@@ -4,12 +4,12 @@
  * Use like this:
  * log_write(0, LOG_MAIN, "DEBUG: %s", string2hex(var, var_len));
 */
-char * string2hex(unsigned char * input, size_t length) {
+char *string2hex(unsigned char *input, size_t length) {
     const int growth = 3;
-    char * outstring = store_get(growth*length+1);
-    memset(outstring, 0, 3*length+1);
-    for (int i =0; i<length; i++) {
-        sprintf(outstring+i*growth, "%02x ", input[i]);
+    char *outstring = store_get(growth * length + 1);
+    memset(outstring, 0, 3 * length + 1);
+    for (int i = 0; i < length; i++) {
+        sprintf(outstring + i * growth, "%02x ", input[i]);
     }
     return outstring;
 }
2021-08-20 01:13:21 +02:00