Skip to content

Commit

Permalink
quick fix for qt5 on cetting a cipher
Browse files Browse the repository at this point in the history
  • Loading branch information
dannagle committed Dec 31, 2023
1 parent 8d2a0be commit 2291675
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/association.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,15 @@ void DtlsAssociation::pskRequired(QSslPreSharedKeyAuthenticator *auth)


void DtlsAssociation::setCipher(QString chosenCipher) {

#if QT_VERSION < QT_VERSION_CHECK(6, 00, 0)
configuration.setCiphers(chosenCipher);
crypto.setDtlsConfiguration(configuration);
#else
//TODO support this with Qt5
QDEBUG() << "This is disabled for Qt5 (for now)";
#endif

}

QSsl::EncodingFormat DtlsAssociation::getCertFormat(QFile& certFile){
Expand Down

0 comments on commit 2291675

Please sign in to comment.