Some string.h warnings

This commit is contained in:
2017-05-17 18:56:15 +03:00
parent 477b48eac0
commit a76fd9ff0d
3 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>
#include "job.h"
#include "../protocol.h"
#include "agent_ssl.h"

View File

@@ -1,5 +1,6 @@
#include <unistd.h>
#include <sys/socket.h>
#include <string.h>
#include <netdb.h>
#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");

View File

@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include "job.h"
#include <sys/utsname.h>
#include <sys/sysinfo.h>