[horde] [PATCH] SSL support in lib/VFS/ftp.php

Jan Schneider jan at horde.org
Wed Sep 3 14:00:44 PDT 2003


Zitat von Etienne Goyer <etienne.goyer at linuxquebec.com>:

> Hi,
>
> Here is a trivial patch that add SSL support (aka FTPS) to the VFS ftp
> driver.  This can be used, for example, with Proftpd + mod_tls.  I will
> post a patch to the Gollem mailing list that add the required param with
> explanation in gollem/config/backends.php if this one is accepted.
>
> This patch is to be applied to lib/VFS/ftp.php.  To make use of it, pass
> an 'ssl' parameter along with 'hostspec' and 'port' to the VFS
> constructor.

This is a nice addition, but you should also add an entry for that paramater
in the comment header of the file and check if ftp_ssl_connect exists. This
method is only availabe if openssl support is in php, you should return a
PEAR_Error if the method doesn't exist.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft



More information about the horde mailing list