c2s per session user data authreg auth API extension

2014-08-14 Thread Shawn Debnath
Hi there guys, I am building a XMPP service around jabberd2 and I am very impressed with the current architecture. However, as I am getting further into our implementation, a couple of problems have become apparent. Problems: - We need to maintain per user session data in c2s. For example:

Re: c2s per session user data authreg auth API extension

2014-08-14 Thread Tomasz Sterna
Dnia 2014-08-14, czw o godzinie 04:27 +, Shawn Debnath pisze: - Build a hash table of relevant data and store it in the authreg_t private data member. Agreed, that needed internal bookkeeping makes it not feasible. - Retrofit existing interfaces with the necessary data. a. Introduce

Re: c2s per session user data authreg auth API extension

2014-08-14 Thread Shawn Debnath
Great! Yes I was a bit iffy on the ³custom² approach myself given it really didn¹t align with any authentication method. But if API breakage is okay, this is definitely the cleanest way. - Retrofit existing interfaces with the necessary data. a. Introduce void *sess_private in sess_t. It's

Re: c2s per session user data authreg auth API extension

2014-08-14 Thread Tomasz Sterna
Dnia 2014-08-14, czw o godzinie 16:20 +, Shawn Debnath pisze: I would change all the APIs and to pass in a pointer to the sess_t as I also need it in check_passsword. I would advise to include sess_t* in authreg_private then. It's OK for authreg to dig around session data, but the API

Re: c2s per session user data authreg auth API extension

2014-08-14 Thread Tomasz Sterna
Dnia 2014-08-14, czw o godzinie 23:45 +, Shawn Debnath pisze: I have modified the APIs to pass sess_t and then the implementation can choose to pack it in their private authreg_private data if they so choose. WFM :-) -- Tomasz Sterna :(){ :|:};: Instant

Custom SSL path

2014-08-14 Thread Gunter Grodotzki
Hi everyone! How can I compile jabberd2 with a custom SSL path? I tried overriding the defaults with configure arguments and by setting env flags, but it stops as soon as it finds the openssl in the standard path (/usr) which is unfortunately outdated. Usually with other software you can specify

Re: c2s per session user data authreg auth API extension

2014-08-14 Thread Shawn Debnath
I have modified the APIs to pass sess_t and then the implementation can choose to pack it in their private authreg_private data if they so choose. WFM :-) Changes almost ready to go, will submit a pull request within the hour.

Re: c2s per session user data authreg auth API extension

2014-08-14 Thread Shawn Debnath
Changes almost ready to go, will submit a pull request within the hour. Pull request submitted: https://github.com/jabberd2/jabberd2/pull/72 Issue create to track (perhaps excessive): https://github.com/jabberd2/jabberd2/issues/71 Looking forward to comments and feedback! Thanks, Shawn