Changeset 0d41eb2 in confclerk_git


Ignore:
Timestamp:
01/23/17 18:58:50 (5 years ago)
Author:
gregor herrmann <gregoa@…>
Branches:
master, qt5
Children:
f94ab1d
Parents:
056bee2
git-author:
gregor herrmann <gregoa@…> (01/23/17 18:56:46)
git-committer:
gregor herrmann <gregoa@…> (01/23/17 18:58:50)
Message:

Set some SSL parameters for network request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r056bee2 r0d41eb2  
    2525#include <QNetworkAccessManager>
    2626#include <QNetworkReply>
     27#include <QSslConfiguration>
    2728
    2829#include "sqlengine.h"
     
    436437{
    437438    QNetworkRequest request;
     439    QSslConfiguration qSslConfiguration = request.sslConfiguration();
     440    qSslConfiguration.setProtocol(QSsl::AnyProtocol);
     441    qSslConfiguration.setPeerVerifyMode(QSslSocket::QueryPeer);
    438442    request.setUrl(QUrl(url));
     443    request.setSslConfiguration(qSslConfiguration);
    439444    request.setAttribute(QNetworkRequest::User, conferenceId);
    440445
Note: See TracChangeset for help on using the changeset viewer.