libstrophe

DecryptMessage returning SEC_E_UNSUPPORTED_FUNCTION

六眼飞鱼酱① 提交于 2019-12-12 03:01:07
问题 I have compiled libstrophe as a DLL for Windows. During authorisation with the Jabber server DecryptMessage() is called three times as stanzas are passed back and forth. On the first two calls it returns 0 (SEC_E_OK) , but on the third call it returns 0x80090302 (SEC_E_UNSUPPORTED_FUNCTION) . The problem is, according to the documentation SEC_E_UNSUPPORTED_FUNCTION is not a valid return value. This happens both on Windows 7 and Windows XP. I tried replacing the incoming encrypted string with

How to build a jabber client using libstrophe

限于喜欢 提交于 2019-12-11 11:46:43
问题 I'm trying to make a simple Jabber client using the libstrophe library. It's going fairly well so far, except for one thing for which I need some clarification. Namely, how am I supposed to (continuously) know the status (i.e., Online/Offline) of contacts, so that I can display it to the user of my program? Similarly, how am I supposed to request the roster of the user? I've looked at the roster.c example provided by libstrophe, but that only prints out the roster once. In a real application,