Questions about your code

19 views
Skip to first unread message

john.b...@googlemail.com

unread,
Dec 8, 2016, 4:35:33 PM12/8/16
to TZPUSH
Hi Mark,

I am going through your code trying to understand what is going on. Some parts are not clear to me. If you have 5 minutes, I would be glad to get some feedback from you.

The Polkey() function in tzsync.js is initiating a series of callbacks which will in total requests 3 different policy keys. Why? Why is the first one not enough?

Furthermore, in Polkey() you do this:

if (this.tzprefs.getCharPref("asversion") !== "2.5") {
wbxml = wbxml.replace("MS-WAP-Provisioning-XML", "MS-EAS-Provisioning-WBXML")
}

I think this should also be done inside the callback functions, or not?

Thanks for your time,
John

Mark Nethersole

unread,
Dec 10, 2016, 10:37:51 AM12/10/16
to TZPUSH
To get a new policy key.
1.First you send 0 as key.
The server will reply with a temp key.
2.You send temp key and receive real policy key.
3.Then you send real key, if it comes back the same you are in.

I will have to look back into the code to answer your second point.

Mark

Mark Nethersole

unread,
Dec 10, 2016, 10:45:29 AM12/10/16
to TZPUSH
Can we merge this thread with the dev support thread. 
Reply all
Reply to author
Forward
0 new messages