Re: sasl patch for including user data in context

From: Rob Siemborski (rjs3 at andrew dot cmu dot edu)
Date: Mon Mar 15 2004 - 11:19:15 EST

  • Next message: Morten Sylvest Olsen: "Re: sasl patch for including user data in context"

    On Mon, 15 Mar 2004, Morten Sylvest Olsen wrote:

    > Using SASL from C++ can be quite cumbersome because of the necessity of
    > using static methods for the callbacks. Event-driven servers written in
    > C must have the same problem? The attached patch (unfortunately againts
    > 2.1.15) implements a new property SASL_USERDATA which can be used to set
    > and retrieve a pointer "userdata" in the sasl context to transfer
    > information between callbacks and main eventloop.

    This is precisely what the "context" pointers in the callback entry are
    for.

    > Unfortunately my patch changes the size of the sasl_conn struct
    > structure and is therefore not backwards compatible. I guess it would be
    > possible to retain backwards compatability by placing it at the end of
    > the sasl_server_conn and sasl_client_conn structures instead.

    I don't see how this is different from just using the context pointers.

    -Rob

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
    Research Systems Programmer * /usr/contributed Gatekeeper


  • Next message: Morten Sylvest Olsen: "Re: sasl patch for including user data in context"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD