Support SMB encryption



Hi all,

I'm not sure if this was already discussed, at least I couldn't find anything related.

Are there any attempts to support encryption with the SMB backend? Browsing a bit around in the source I'd 
assume something around

diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index 9040a9cb..6ffdddb9 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -417,6 +417,8 @@ do_mount (GVfsBackend *backend,
                                        op_backend->user != NULL);
   smbc_setOptionNoAutoAnonymousLogin (smb_context, TRUE);
 
+  smbc_setOptionSmbEncryptionLevel(smb_context, SMBC_ENCRYPTLEVEL_REQUEST);
+
   if (!smbc_init_context (smb_context))
     {
       g_vfs_job_failed (G_VFS_JOB (job),


should do the trick. It'd be great if somebody could look into this since now everything is transported 
unencrypted over the wire even if the server supports encryption.

Best,
Peter



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]