Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwindowscarootfetcher_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWSCAROOTFETCHER_P_H
5#define QWINDOWSCAROOTFETCHER_P_H
6
7#include <QtNetwork/private/qtnetworkglobal_p.h>
8
9#include <QtNetwork/qsslcertificate.h>
10#include <QtNetwork/qsslsocket.h>
11
12#include <QtCore/QtGlobal>
13#include <QtCore/QObject>
14
16
17//
18// W A R N I N G
19// -------------
20//
21// This file is not part of the Qt API. It exists purely as an
22// implementation detail. This header file may change from version to
23// version without notice, or even be removed.
24//
25// We mean it.
26//
27
29
31{
33public:
35 const QList<QSslCertificate> &caCertificates = {},
36 const QString &hostName = {});
38public slots:
39 void start();
41 void finished(QSslCertificate brokenChain, QSslCertificate caroot);
42private:
43 QHCertStorePointer createAdditionalStore() const;
44
45 QSslCertificate cert;
47 // In case the application set CA certificates in the configuration,
48 // in the past we did not load missing certs. But this disables
49 // recoverable case when a certificate has Authority Information Access
50 // extension. So we try to fetch in this scenario also, but in case
51 // explicitly trusted root was not in a system store, we'll do
52 // additional checks, thus we need 'peerVerifyName':
53 QList<QSslCertificate> explicitlyTrustedCAs;
54 QString peerVerifyName;
55};
56
58
59#endif // QWINDOWSCAROOTFETCHER_P_H
\inmodule QtCore
Definition qobject.h:103
The QSslCertificate class provides a convenient API for an X509 certificate.
SslMode
Describes the connection modes available for QSslSocket.
Definition qsslsocket.h:33
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
void finished(QSslCertificate brokenChain, QSslCertificate caroot)
QWindowsCaRootFetcher(const QSslCertificate &certificate, QSslSocket::SslMode sslMode, const QList< QSslCertificate > &caCertificates={}, const QString &hostName={})
Combined button and popup list for selecting options.
GLenum mode
#define Q_OBJECT
#define slots
#define signals
std::unique_ptr< void, QHCertStoreDeleter > QHCertStorePointer
Definition qwincrypt_p.h:41