Make dma(8) buildable.

This commit is contained in:
Jung-uk Kim 2018-09-19 06:42:05 +00:00
parent d66820f2c8
commit b86d13984b
7 changed files with 13 additions and 1 deletions

View File

@ -40,6 +40,7 @@
#include <openssl/pem.h>
#include <openssl/rand.h>
#include <string.h>
#include <syslog.h>
#include "dma.h"
@ -93,7 +94,12 @@ smtp_init_crypto(int fd, int feature)
SSL_library_init();
SSL_load_error_strings();
meth = TLSv1_client_method();
// Allow any possible version
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
meth = TLS_client_method();
#else
meth = SSLv23_client_method();
#endif
ctx = SSL_CTX_new(meth);
if (ctx == NULL) {

View File

@ -56,6 +56,7 @@
#include <paths.h>
#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>

View File

@ -44,6 +44,7 @@
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>

View File

@ -36,6 +36,7 @@
#include <errno.h>
#include <inttypes.h>
#include <signal.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>

View File

@ -53,6 +53,7 @@
#include <netdb.h>
#include <setjmp.h>
#include <signal.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>

View File

@ -45,6 +45,7 @@
#include <fcntl.h>
#include <inttypes.h>
#include <unistd.h>
#include <string.h>
#include <syslog.h>
#include "dma.h"

View File

@ -44,6 +44,7 @@
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>