This commit is contained in:
Heiko Reese
2021-08-06 23:28:26 +02:00
commit b84ff67420
5 changed files with 41 additions and 0 deletions

5
src/Makefile.am Normal file
View File

@ -0,0 +1,5 @@
lib_LTLIBRARIES = libexim4encrypt.la
libexim4encrypt_la_SOURCES = exim4encrypt.c exim4encrypt.h
libexim4encrypt_la_CPPFLAGS = -I/usr/include/exim4
libexim4encrypt_la_LDFLAGS = -shared
include_HEADERS = sodium.h local_scan.h

8
src/exim4encrypt.c Normal file
View File

@ -0,0 +1,8 @@
#include "exim4encrypt.h"
__attribute__((constructor)) static void init() {
sodium_init();
}
int dlfunction(uschar **yield, int argc, uschar *argv[]) {
}

9
src/exim4encrypt.h Normal file
View File

@ -0,0 +1,9 @@
#include <sodium.h>
#include <local_scan.h>
#ifndef EXIM_ENCRYPT_LIBRARY_H
#define EXIM_ENCRYPT_LIBRARY_H
#endif //EXIM_ENCRYPT_LIBRARY_H