mirror of
https://github.com/kingk85/uFTP.git
synced 2025-07-25 13:16:12 +03:00
Threads id
This commit is contained in:
@ -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;
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user