Threads id

This commit is contained in:
Ugo Cirmignani
2018-12-14 22:55:58 +01:00
parent 7b05993702
commit 072062f276
3 changed files with 4 additions and 2 deletions

View File

@ -571,7 +571,7 @@ void runFtpServer(void)
//Debug print errors //Debug print errors
if (ftpData.clients[processingSock].bufferIndex < 0) if (ftpData.clients[processingSock].bufferIndex < 0)
{ {
ftpData.clients[processingSock].closeTheClient = 1; //ftpData.clients[processingSock].closeTheClient = 1;
printf("\n1 Errno = %d", errno); printf("\n1 Errno = %d", errno);
perror("1 Error: "); perror("1 Error: ");
continue; continue;

View File

@ -178,7 +178,6 @@ void ShowCerts(SSL* ssl)
} }
void handle_error(const char *file, int lineno, const char *msg) void handle_error(const char *file, int lineno, const char *msg)
{ {
fprintf(stderr, "** %s:%d %s\n", file, lineno, msg); fprintf(stderr, "** %s:%d %s\n", file, lineno, msg);

View File

@ -36,6 +36,9 @@ extern "C" {
void initOpenssl(); void initOpenssl();
void cleanupOpenssl(); 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 *createServerContext();
SSL_CTX *createClientContext(); SSL_CTX *createClientContext();
void configureContext(SSL_CTX *ctx, char *certificatePath, char* privateCertificatePath); void configureContext(SSL_CTX *ctx, char *certificatePath, char* privateCertificatePath);