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
5#ifndef QSSLCERTIFICATE_P_H
6#define QSSLCERTIFICATE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtNetwork/private/qtnetworkglobal_p.h>
20
21#include "qsslcertificateextension.h"
22#include "qsslcertificate.h"
23#include "qtlsbackend_p.h"
24
25#include <qlist.h>
26
27#include <memory>
28
29QT_BEGIN_NAMESPACE
30
31class QSslCertificatePrivate
32{
33public:
34 QSslCertificatePrivate();
35 ~QSslCertificatePrivate();
36
37 QList<QSslCertificateExtension> extensions() const;
38 Q_NETWORK_PRIVATE_EXPORT static bool isBlacklisted(const QSslCertificate &certificate);
39 Q_NETWORK_PRIVATE_EXPORT static QByteArray subjectInfoToString(QSslCertificate::SubjectInfo info);
40
41 QAtomicInt ref;
42 std::unique_ptr<QTlsPrivate::X509Certificate> backend;
43};
44
45QT_END_NAMESPACE
46
47#endif // QSSLCERTIFICATE_P_H
48

source code of qtbase/src/network/ssl/qsslcertificate_p.h