From 072062f2768d15d1145e573f9f7273bf64d9063a Mon Sep 17 00:00:00 2001 From: Ugo Cirmignani Date: Fri, 14 Dec 2018 22:55:58 +0100 Subject: [PATCH] Threads id --- ftpServer.c | 2 +- library/openSsl.c | 1 - library/openSsl.h | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ftpServer.c b/ftpServer.c index b065008..d6ec03b 100644 --- a/ftpServer.c +++ b/ftpServer.c @@ -571,7 +571,7 @@ void runFtpServer(void) //Debug print errors if (ftpData.clients[processingSock].bufferIndex < 0) { - ftpData.clients[processingSock].closeTheClient = 1; + //ftpData.clients[processingSock].closeTheClient = 1; printf("\n1 Errno = %d", errno); perror("1 Error: "); continue; diff --git a/library/openSsl.c b/library/openSsl.c index 7cea289..b68f08c 100644 --- a/library/openSsl.c +++ b/library/openSsl.c @@ -178,7 +178,6 @@ void ShowCerts(SSL* ssl) } - void handle_error(const char *file, int lineno, const char *msg) { fprintf(stderr, "** %s:%d %s\n", file, lineno, msg); diff --git a/library/openSsl.h b/library/openSsl.h index 04b2407..8c13924 100644 --- a/library/openSsl.h +++ b/library/openSsl.h @@ -36,6 +36,9 @@ extern "C" { void initOpenssl(); void cleanupOpenssl(); +int thread_cleanup(void); +int thread_setup(void); +void handle_error(const char *file, int lineno, const char *msg); SSL_CTX *createServerContext(); SSL_CTX *createClientContext(); void configureContext(SSL_CTX *ctx, char *certificatePath, char* privateCertificatePath);