From a76fd9ff0d40cae8e926320c51f06e8d1bc374da Mon Sep 17 00:00:00 2001 From: Bogomil Vasilev Date: Wed, 17 May 2017 18:56:15 +0300 Subject: [PATCH] Some string.h warnings --- agent/agent.c | 1 + agent/agent_ssl.c | 3 ++- agent/job.c | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/agent/agent.c b/agent/agent.c index 9b0c420..e7e16b9 100644 --- a/agent/agent.c +++ b/agent/agent.c @@ -1,6 +1,7 @@ #include #include #include +#include #include "job.h" #include "../protocol.h" #include "agent_ssl.h" diff --git a/agent/agent_ssl.c b/agent/agent_ssl.c index abd4e34..b224f6e 100644 --- a/agent/agent_ssl.c +++ b/agent/agent_ssl.c @@ -1,5 +1,6 @@ #include #include +#include #include #include "agent_ssl.h" @@ -45,7 +46,7 @@ SSL_CTX* init_ctx(void) //OpenSSL_add_all_ciphers(); /* Load cryptos, et.al. */ SSL_load_error_strings(); /* Bring in and register error messages */ SSL_library_init(); - ctx = SSL_CTX_new(TLSv1_2_method()); /* Create new context */ + ctx = SSL_CTX_new(TLS_method()); /* Create new context */ ciphers[0] = 0; SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER|SSL_VERIFY_FAIL_IF_NO_PEER_CERT, verify_callback); strcat(ciphers, "-ALL"); diff --git a/agent/job.c b/agent/job.c index 8a02633..9740a67 100644 --- a/agent/job.c +++ b/agent/job.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "job.h" #include #include