diff options
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index bf74aaf7c..1d27d2626 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -111,6 +111,10 @@ #include <polarssl/ssl.h> #endif +#ifdef USE_CYASSL +#include <openssl/ssl.h> +#endif + #ifdef USE_NSS #include <nspr.h> #include <pk11pub.h> @@ -266,6 +270,11 @@ struct ssl_connect_data { x509_crl crl; rsa_context rsa; #endif /* USE_POLARSSL */ +#ifdef USE_CYASSL + SSL_CTX* ctx; + SSL* handle; + ssl_connect_state connecting_state; +#endif /* USE_CYASSL */ #ifdef USE_NSS PRFileDesc *handle; char *client_nickname; @@ -762,7 +771,8 @@ struct connectdata { #define PROT_SSL (1<<29) /* protocol requires SSL */ /* these ones need action before socket close */ -#define PROT_CLOSEACTION (PROT_FTP | PROT_IMAP | PROT_POP3) +#define PROT_CLOSEACTION (PROT_FTP | PROT_IMAP | PROT_POP3 | \ + PROT_SFTP | PROT_SCP) #define PROT_DUALCHANNEL PROT_FTP /* these protocols use two connections */ /* 'dns_entry' is the particular host we use. This points to an entry in the |