Comments (2)
I would like to fix it, but the problem is that just switching to SSL_VERIFY_PEER is not enough. I need some way to access hostname from tls_new().
I have the following snippet I coded for fdm:
char *hostname = ???;
X509_VERIFY_PARAM *param = SSL_get0_param(tls->ssl);
/*
* Allow only complete wildcards. RFC 6125 discourages wildcard usage
* completely, and lists internationalized domain names as a reason
* against partial wildcards.
* See https://tools.ietf.org/html/rfc6125#section-7.2 for more information.
*/
X509_VERIFY_PARAM_set_hostflags(param, X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS);
X509_VERIFY_PARAM_set1_host(param, hostname, 0);
from libstrophe.
@labdsf, libstrophe doesn't export tls API, therefore, you can change it. Just make sure your changes are reflected in all tls implementations (src/tls_xxx.c). Also keep interface tidy.
from libstrophe.
Related Issues (20)
- 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
- I used xmpp_handler_add() for "Connection Request" from ACS. It is handling properly for the first time. Second time client is crashing. I don't see logs in my handler method. 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.