Some string.h warnings
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
#include <string.h>
|
||||||
#include "job.h"
|
#include "job.h"
|
||||||
#include "../protocol.h"
|
#include "../protocol.h"
|
||||||
#include "agent_ssl.h"
|
#include "agent_ssl.h"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <string.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include "agent_ssl.h"
|
#include "agent_ssl.h"
|
||||||
|
|
||||||
@@ -45,7 +46,7 @@ SSL_CTX* init_ctx(void)
|
|||||||
//OpenSSL_add_all_ciphers(); /* Load cryptos, et.al. */
|
//OpenSSL_add_all_ciphers(); /* Load cryptos, et.al. */
|
||||||
SSL_load_error_strings(); /* Bring in and register error messages */
|
SSL_load_error_strings(); /* Bring in and register error messages */
|
||||||
SSL_library_init();
|
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;
|
ciphers[0] = 0;
|
||||||
SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER|SSL_VERIFY_FAIL_IF_NO_PEER_CERT, verify_callback);
|
SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER|SSL_VERIFY_FAIL_IF_NO_PEER_CERT, verify_callback);
|
||||||
strcat(ciphers, "-ALL");
|
strcat(ciphers, "-ALL");
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <string.h>
|
||||||
#include "job.h"
|
#include "job.h"
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <sys/sysinfo.h>
|
#include <sys/sysinfo.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user