C++ API - AKA Authentication Callback

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

In the C API it is nessecary to set the AKA Callback to

cred.ext.aka.cb = &pjsip_auth_create_aka_response

as described in
http://www.pjsip.org/pjsip/docs/html/group__PJSIP__AUTH__AKA__API.htm


With the new C++ API I created an AuthCredInfo and assigned the password
to akaK. However it is not possible to set the callback. I then assumed
there would be a class method I could override, but I couldn't find one.

Here's the code:

pj::AuthCredInfo authCredInfo("Digest", "*", username,
PJSIP_CRED_DATA_PLAIN_PASSWD | PJSIP_CRED_DATA_EXT_AKA, password);
authCredInfo.akaK = password;

The resulting Error is:

../src/pjsip/sip_auth_client.c:568: pjsip_auth_clt_set_credentials:
Assertion `c[i].ext.aka.cb != ((void *)0)' failed.


This means that there is no callback assigned. How am I supposed to set
the callback to "pjsip_auth_create_aka_response" with the C++ API?

Regards,
Stefan


- -- 
Gesch?ftsf?hrer


CubeWorks UG (haftungsbeschr?nkt)
Panoramaweg 14
74245 L?wenstein

Telefon: +49 (0) 170 / 733 64 63
E-mail: stefan.schick at cubeworksug.de
Web: http://www.cubeworksug.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJURQjIAAoJEHiY6oGZ0lpol/YH/3aZgz+Fs6NpBFWYmytWKbPk
C9RH6GZ7qvBsZdpVRIwNa3lJU1BvfsUe9T4eZKq2YyoshlfnuXeVYnNqe+3czj54
BZhplkQkKVjCmNOjdoFaXgN6G95sIFFBHD8nFlwup9y2270rmi/E7+RvsPDeIlQf
3j7swd5JhR8JUFrevFOp//iQmPi0k33Y3PB2hdKspvwpkoyUMjr+lWtMsiWM6wUo
KBLXQfyW0vK6uKud1WuvqyicFtEv9Q1c77qFDk0gEi778+Z/4th3L2pxUDZJC5YS
JZhncD0tmwkisU4OKO4yJvfq1+7vBddoBkdzFVmhF47/IKebr2aiHakG4AhvwW4=
=lOye
-----END PGP SIGNATURE-----



[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