cURL / Mailing Lists / curl-library / Single Mail

curl-library

SV: SV: 1. FTP cmd channel and data channel validation, 2. Cert chain for data channel

From: Mehmet Bozkurt <mehmet.bozkurt_at_xware.se>
Date: Wed, 15 Sep 2010 10:18:30 +0200

> > For this particular problem I am thinking of adding a client callback
> in
> > AllowServerConnect, to allow a client app to retrieve the peer ip-
> address.
> > And if any error is returned the connection is prevented.
>
> The CURLOPT_OPENSOCKETFUNCTION seems like a natural fit for this. It's
> even documented as:
>
> currently only one value is supported: CURLSOCKTYPE_IPCXN
> for
> the primary connection (meaning the control connection in
> the
> FTP case). Future versions of libcurl may support more
> purposes.
>
> >>> Dan

Yeah, was also thinking in along those lines.
No need to define a new callback type but a new member for the enum
curlsocktype,
how about CURLSOCKTYPE_FTPDATACXN?

/Mehmet

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-15