Add ftp fixes
This commit is contained in:
parent
0917cbbb82
commit
5a35205402
|
@ -69,7 +69,7 @@ typedef uint16_t port_t;
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int VERBOSE_MODE_ENABLED;
|
extern int VERBOSE_MODE_ENABLED;
|
||||||
|
|
||||||
typedef ip_t (*ftpFindExternalFTPServerIpType)(ip_t clientIp);
|
typedef ip_t (*ftpFindExternalFTPServerIpType)(ip_t clientIp);
|
||||||
typedef void (*ftpAddUPNPPortForwardType)(int internalPort, int externalPort);
|
typedef void (*ftpAddUPNPPortForwardType)(int internalPort, int externalPort);
|
||||||
|
@ -77,11 +77,11 @@ typedef void (*ftpRemoveUPNPPortForwardType)(int internalPort, int externalPort)
|
||||||
typedef int (*ftpIsValidClientType)(ip_t clientIp);
|
typedef int (*ftpIsValidClientType)(ip_t clientIp);
|
||||||
typedef int (*ftpIsClientAllowedToGetFileType)(ip_t clientIp, const char *username, const char *filename);
|
typedef int (*ftpIsClientAllowedToGetFileType)(ip_t clientIp, const char *username, const char *filename);
|
||||||
|
|
||||||
ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
|
extern ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
|
||||||
ftpAddUPNPPortForwardType ftpAddUPNPPortForward;
|
extern ftpAddUPNPPortForwardType ftpAddUPNPPortForward;
|
||||||
ftpRemoveUPNPPortForwardType ftpRemoveUPNPPortForward;
|
extern ftpRemoveUPNPPortForwardType ftpRemoveUPNPPortForward;
|
||||||
ftpIsValidClientType ftpIsValidClient;
|
extern ftpIsValidClientType ftpIsValidClient;
|
||||||
ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
|
extern ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,13 @@
|
||||||
#include "ftp.h"
|
#include "ftp.h"
|
||||||
#include "ftpMessages.h"
|
#include "ftpMessages.h"
|
||||||
|
|
||||||
|
int VERBOSE_MODE_ENABLED;
|
||||||
|
|
||||||
|
ftpFindExternalFTPServerIpType ftpFindExternalFTPServerIp;
|
||||||
|
ftpAddUPNPPortForwardType ftpAddUPNPPortForward;
|
||||||
|
ftpRemoveUPNPPortForwardType ftpRemoveUPNPPortForward;
|
||||||
|
ftpIsValidClientType ftpIsValidClient;
|
||||||
|
ftpIsClientAllowedToGetFileType ftpIsClientAllowedToGetFile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief server-sockets that listens for incoming connections
|
* @brief server-sockets that listens for incoming connections
|
||||||
|
|
Loading…
Reference in New Issue
Block a user