summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-12-07 15:03:14 +0100
committerBenjamin Otte <otte@redhat.com>2010-12-08 12:37:24 +0100
commit4a654e0c6c0b5ca7383bd9b833b82d76c3a93302 (patch)
treeae5b65234352f0e1213a818eba7ce6e328bcdd0a
parent00f441ca8a8786eb755c07b73076e3d5c9bd60c6 (diff)
downloadgvfs-4a654e0c6c0b5ca7383bd9b833b82d76c3a93302.tar.gz
ftp: Detect TLS and SSL support
-rw-r--r--daemon/gvfsbackendftp.c2
-rw-r--r--daemon/gvfsbackendftp.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/daemon/gvfsbackendftp.c b/daemon/gvfsbackendftp.c
index b4e1b2d0..a257d75f 100644
--- a/daemon/gvfsbackendftp.c
+++ b/daemon/gvfsbackendftp.c
@@ -102,6 +102,8 @@ gvfs_backend_ftp_determine_features (GVfsFtpTask *task)
{ "EPRT", G_VFS_FTP_FEATURE_EPRT },
{ "EPSV", G_VFS_FTP_FEATURE_EPSV },
{ "UTF8", G_VFS_FTP_FEATURE_UTF8 },
+ { "AUTH TLS", G_VFS_FTP_FEATURE_AUTH_TLS },
+ { "AUTH SSL", G_VFS_FTP_FEATURE_AUTH_SSL },
};
guint i, j;
char **reply;
diff --git a/daemon/gvfsbackendftp.h b/daemon/gvfsbackendftp.h
index 5923d17e..71b7af43 100644
--- a/daemon/gvfsbackendftp.h
+++ b/daemon/gvfsbackendftp.h
@@ -36,7 +36,9 @@ typedef enum {
G_VFS_FTP_FEATURE_TVFS,
G_VFS_FTP_FEATURE_EPRT,
G_VFS_FTP_FEATURE_EPSV,
- G_VFS_FTP_FEATURE_UTF8
+ G_VFS_FTP_FEATURE_UTF8,
+ G_VFS_FTP_FEATURE_AUTH_TLS,
+ G_VFS_FTP_FEATURE_AUTH_SSL
} GVfsFtpFeature;
#define G_VFS_FTP_FEATURES_DEFAULT (0)