Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Fix client not able to connect to ssl host #675

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

pasnox
Copy link
Contributor

@pasnox pasnox commented Jan 22, 2025

Constructing a QSslConfiguration() result in a null/empty configuration. The fact that it worked with Qt 5 is pure luck, ie Qt bug. The bug eventually get fixed in Qt 6 but not backported which lead to this needed fix. We need to init from the default configuration else we have no certificates filled.

PR check list:

  • Document your code
  • Add \since QXmpp 1.X, QXMPP_EXPORT
  • Update doc/doap.xml
  • Add unit tests
  • Format the code: Run clang-format -i src/<edited-file(s)> tests/<edited-file(s)>

@pasnox pasnox force-pushed the fix/qt6-ssl branch 2 times, most recently from 1eb2b00 to f59bce8 Compare January 22, 2025 15:35
Constructing a `QSslConfiguration()` result in a null/empty
configuration. The fact that it worked with Qt 5 is pure luck, ie Qt bug.
The bug eventually get fixed in Qt 6 but not backported which lead to
this needed fix. We need to init from the default configuration else we
have no certificates filled.
@lnjX lnjX changed the base branch from master to 1.5 January 23, 2025 15:25
@lnjX lnjX merged commit e961331 into qxmpp-project:1.5 Jan 23, 2025
4 of 15 checks passed
@pasnox pasnox deleted the fix/qt6-ssl branch January 28, 2025 11:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants