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 QTLSBACKEND_CERT_P_H
5#define QTLSBACKEND_CERT_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtNetwork/private/qtnetworkglobal_p.h>
19
20#include <QtNetwork/private/qtlsbackend_p.h>
21
22#include <QtCore/qglobal.h>
23
24QT_BEGIN_NAMESPACE
25
26class QTlsBackendCertOnly final : public QTlsBackend
27{
28 Q_OBJECT
29 Q_PLUGIN_METADATA(IID QTlsBackend_iid)
30 Q_INTERFACES(QTlsBackend)
31private:
32 QString backendName() const override;
33
34 QList<QSsl::SslProtocol> supportedProtocols() const override;
35 QList<QSsl::SupportedFeature> supportedFeatures() const override;
36 QList<QSsl::ImplementedClass> implementedClasses() const override;
37
38 QTlsPrivate::X509Certificate *createCertificate() const override;
39 QTlsPrivate::X509PemReaderPtr X509PemReader() const override;
40 QTlsPrivate::X509DerReaderPtr X509DerReader() const override;
41};
42
43QT_END_NAMESPACE
44
45#endif // QTLSBACKEND_CERT_P_H
46

source code of qtbase/src/plugins/tls/certonly/qtlsbackend_cert_p.h