> > If so, you need to change ftpfs/hget to pushtls after
> > connecting:
> >     TLSconn conn;
> >     fd = dial(etc.);
> >     memset(&conn, 0, sizeof conn);
> >     fd = tlsClient(fd, &conn);
> > instead of just calling dial.
>
> Shouldn't this be done by enhancing dial to understand a TLS
> qualifier?  How difficult would that be?  I'm a lot better at trivial
> changes, maybe I can figure my way around it if it makes sense.

changing dial? no.  writing a tlsdial?
maybe, but it doesn't happen very often.
what's more common is that you connect,
talk plaintext for a little while, and then decide
to start tls.  i don't think there are enough
instances yet to know what the common case is.

russ

Reply via email to