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 garbage to see what was the return value, and it was 0x80090318 (SEC_E_INCOMPLETE_MESSAGE), so I know it's not simply a case of "garbage in - garbage out". I've also checked the JID is correct by logging in with the same JID using Pidgin.

Can anyone offer any enlightenment please?

来源:https://stackoverflow.com/questions/24204082/decryptmessage-returning-sec-e-unsupported-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!