Article delegate-en/3530 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3529@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: ftp to ftp gateway +(optional TLS)
05 Oct 2006 17:50:41 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A3529@delegate-en.ML_> on 10/05/06(22:53:19)
you Steve Brown <ps4gabdyi-lnxhrzwdrvnr.ml@ml.delegate.org> wrote:
 |Is it possible when using Delegate to allow a plain client to connect
 |over an encrypted link to a TLS equipped remote server, to notify the
 |client of the encrypted link.
 |
 |When used like this:
 |	delegated -P21 SERVER=ftp STLS=-fsv,-fcl
 |
 |Delegate displays to a TLS equipped client the crypt method (like
 |'AES256-SHA') - can we do something similar to show the
 |delegate->remote_server session is encrypted?

I'm not so sure about your requirement but a simple notification of the
usage of SSL with the FTP server can be done in the response message as
follows:

  230--  @ @  --[SSL]--
  230  \( - )/ -- { connected to `server' }

which is as follows with non-SSL servers.

  230--  @ @
  230  \( - )/ -- { connected to `server' }

The content of the server's certificate can be displayed too if necessary.

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

diff -cr delegate9.2.5-pre11/src/ftp.c delegate9.2.5-pre12/src/ftp.c
*** delegate9.2.5-pre11/src/ftp.c	Wed Oct  4 02:38:50 2006
--- delegate9.2.5-pre12/src/ftp.c	Fri Oct  6 02:39:55 2006
***************
*** 5725,5730 ****
--- 5725,5733 ----
  /*
   fprintf(tc,"%s %s\r\n",XDC_OPENING,FS->fs_myhost);
  */
+ 			if( ServerFlags & PF_SSL_ON )
+ 			fprintf(tc,"%d--  @ @  --[SSL]--\r\n",scode);
+ 			else
  			fprintf(tc,"%d--  @ @  \r\n",scode);
  			fprintf(tc,"%d  \\( - )/ -- { %s `%s' %s}\r\n",
  				scode, "connected to",

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V