| 34 | enum AuthenticationMethods {Method_Password=0x01, Method_Key=0x02, Method_Interactive=0x04, Method_All=0x07}; |
| 35 | |
| 36 | class FtpSSLWrapper : public CUT_FTPClient { |
| 37 | public: |
| 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(); |
| 50 | protected: |
| 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 | |
| 69 | class FTPClientWrapper { |
| 70 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected