Comments (4)
SEC_E_INCOMPLETE_MESSAGE
is not critical error and ideally should be handled in the code (according to [1] and [2]).
But the actual problem is in sock_read(). select() returns 1 indicating that there is a descriptor ready to read. But reading with recv() returns 0 which means the connection is shutdown from server side.
Update: connection is closed after the 1st sock_write() to the socket:
Line 271 in 111659c
from libstrophe.
Root cause of the problem is in the SupportedAlgs. Seems, my server doesn't like RC4. As these fields are optional I left cSupportedAlgs/palgSupportedAlgs zeroed to use default system configuration and tls_start() returned without errors. But 1st tls_read() (after a tls_write()) returns SEC_E_UNSUPPORTED_FUNCTION
.
There is question on stackoverflow, but without solution: http://stackoverflow.com/questions/24204082/decryptmessage-returning-sec-e-unsupported-function
from libstrophe.
I backported a patch from a libstrophe fork which is related to the incomplete message issue: 886f455 .
from libstrophe.
With the patch from the previous comment, schannel implementation works on VS2017/Win10. However, I needed to fix few compilation errors and LoadLibrary() didn't load any dll for unknown reason.
I couldn't make it work in VS6/WinXP though. InitializeSecurityContext() returned 0x80090318 repeatedly.
Closing this issue.
from libstrophe.
Related Issues (20)
- Is it possible to build libstrophe for iOS? HOT 2
- cannot connect when vpn active HOT 2
- memory leak at xmpp_alloc HOT 2
- library API's exported but missing from header HOT 2
- SO versioning not done correctly HOT 3
- How to use in visual studio? HOT 7
- Sending a message to a user HOT 21
- Feature Request - expose _escape_xml to public (via fmt) HOT 1
- XEP 0178 PEM password prompt despite no password on the p12 encrypted certificate
- Continuous Bosh Request HOT 2
- Resending of old messages on reconnect HOT 7
- Not working with multiple FQDNs in DNS response HOT 6
- specify the network interface from which the xmpp traffic will be sent HOT 1
- Issue with Stream Management resumption HOT 3
- tls-server-end-point support
- STARTTLS with client and server authentication HOT 2
- CI for BSDs
- Error logging in to remote selfhosted server HOT 8
- SCRAM-SHA-512 not -PLUS supported fails on login HOT 3
- Build conflict with openssl 3.2 tls_free HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libstrophe.