MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / FtpSSLWrapper

Class FtpSSLWrapper

src/FTPClientWrapper.h:36–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34enum AuthenticationMethods {Method_Password=0x01, Method_Key=0x02, Method_Interactive=0x04, Method_All=0x07};
35
36class FtpSSLWrapper : public CUT_FTPClient {
37public:
38 FtpSSLWrapper();
39 virtual ~FtpSSLWrapper();
40
41 virtual int Send(LPCSTR data, int len);
42
43 virtual int SetProgressMonitor(ProgressMonitor * progmon);
44 virtual int SetAborted(BOOL aborted);
45 virtual int SetCurrentTotal(long total);
46
47 virtual int SetCertificates(vX509 * x509Vect);
48
49 virtual BOOL IsConnected();
50protected:
51 virtual int GetResponseCode(CUT_WSClient *ws,LPSTR string = NULL,int maxlen = 0);
52
53 virtual BOOL ReceiveFileStatus(long bytesReceived);
54
55 // Monitor progress and/or cancel the send
56 virtual BOOL SendFileStatus(long bytesSent);
57
58 virtual BOOL IsAborted();
59
60 virtual int OnLoadCertificates(SSL_CTX * ctx);
61 virtual int OnSSLCertificate(const SSL * ssl, const X509* certificate, int verifyResult);
62
63 BOOL m_isAborted;
64 ProgressMonitor* m_progmon;
65 long m_currentTotal; //kinda hacky
66 vX509* m_certificates;
67};
68
69class FTPClientWrapper {
70public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected