pjsip_regc_set_credentials

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, so I found an example in the sip_auth_client which shows that you just
... well fill out the struct. However, one problem I'm running into is that
the challenge I get from the server has a realm like "blah.net". Everything
that pjsip does with the data I passed in via the pjsip_cred_info object is
correct except I need to be able to reply to the challenge with a new realm
like "foo.blah.net".

Is this possible? It looks like I can set a pjsip_cred_cb callback
function, but then the framework won't actually do all of the calculations
with respect to the digest/nonce/other things I don't really understand. Is
there a way to get a callback after the framework is done so that I can
just modify the realm? Or some other way to do this without having to
implement the entirety of the authentication algorithm myself?

On Fri, Oct 23, 2015 at 3:27 PM, Mike Roberts <mike at switch.co> wrote:

> I'm looking through the pjsua source and I can't figure out how the
> pjsip_cred_info object(s) being passed into pjsip_regc_set_credentials are
> being initialized. Where is an example of how this is done in the source?
>
> Thanks,
> Mike
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20151026/5d8aec93/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux