[Vortex] SASL authentication callback object passing

milton.yates at loule.info milton.yates at loule.info
Fri Jun 2 11:38:51 CEST 2006


Hi,

when one creates a listener, one provides callbacks for channel start / stop / frame_received events and one can provide a void* pointer which is passed as parameter to the callback.
This is quite useful, especially because I use C++ and I'm not able to use objects without a pointer.

On the other hand, I've noticed that vortex_sasl_set_*_validation() functions does NOT provide such "pointer passing" functionality, which is really a shame, as I think it would be as much useful to have this functionality for the sasl auth callbacks, as it is for the channel creation callbacks.

The situation is, I have some kind of "main" object handling connections and user informations, and I can only validate a user I can access this object and for that, I would need the "trick" of passing an object pointer to the callback you used with the channel creation callback.

Do you have any idea how to do that differently ? Could you change the API in this respect ? For now, I will probably have to create my own patch for this.

Thanks,
Milton.



More information about the Vortex mailing list