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
qx509_generic_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#ifndef QX509_GENERIC_P_H
4#define QX509_GENERIC_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QtNetwork/private/qtnetworkglobal_p.h>
18
19#include <QtNetwork/private/qtlsbackend_p.h>
20
21#include "qx509_base_p.h"
22
23#include <QtCore/qbytearray.h>
24#include <QtCore/qglobal.h>
25
27
28namespace QTlsPrivate {
29
30// A part of SecureTransport and Schannel plugin.
32{
33public:
34 bool isEqual(const X509Certificate &rhs) const override;
35 bool isSelfSigned() const override;
36
37 QMultiMap<QSsl::AlternativeNameEntryType, QString> subjectAlternativeNames() const override;
38 QByteArray toPem() const override;
39 QByteArray toDer() const override;
40 QString toText() const override;
41 Qt::HANDLE handle() const override;
42
43 size_t hash(size_t seed) const noexcept override;
44
45 static QList<QSslCertificate> certificatesFromPem(const QByteArray &pem, int count);
46 static QList<QSslCertificate> certificatesFromDer(const QByteArray &der, int count);
47
48protected:
49
53
54 QMultiMap<QSsl::AlternativeNameEntryType, QString> saNames;
56
57 bool parse(const QByteArray &data);
59};
60
61} // namespace QTlsPrivate
62
64
65#endif // QX509_GENERIC_P_H
\inmodule QtCore
Definition qbytearray.h:57
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QMultiMap< QSsl::AlternativeNameEntryType, QString > subjectAlternativeNames() const override
QByteArray toDer() const override
static QList< QSslCertificate > certificatesFromDer(const QByteArray &der, int count)
QMultiMap< QSsl::AlternativeNameEntryType, QString > saNames
bool parseExtension(const QByteArray &data, X509CertificateExtension &extension)
bool isEqual(const X509Certificate &rhs) const override
QString toText() const override
Qt::HANDLE handle() const override
bool parse(const QByteArray &data)
QByteArray toPem() const override
static QList< QSslCertificate > certificatesFromPem(const QByteArray &pem, int count)
X509Certificate is an abstract class that allows a TLS backend to provide an implementation of the QS...
void extension()
[6]
Definition dialogs.cpp:230
QHash< int, QWidget * > hash
[35multi]
KeyAlgorithm
Describes the different key algorithms supported by QSslKey.
Definition qssl.h:34
@ Rsa
Definition qssl.h:36
Combined button and popup list for selecting options.
Namespace containing onternal types that TLS backends implement.
void * HANDLE
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
Definition qrandom.cpp:196