curl-library
Re: SV: 1. FTP cmd channel and data channel validation, 2. Cert chain for data channel
Date: Wed, 15 Sep 2010 00:50:24 -0700
On Wed, Sep 15, 2010 at 09:30:45AM +0200, Mehmet Bozkurt wrote:
> 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
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-15