Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsslcipher.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QSSLCIPHER_H
6#define QSSLCIPHER_H
7
8#include <QtNetwork/qtnetworkglobal.h>
9#include <QtCore/qstring.h>
10#include <QtCore/qscopedpointer.h>
11#include <QtNetwork/qssl.h>
12
13#include <memory>
14
15QT_BEGIN_NAMESPACE
16
17
18#ifndef QT_NO_SSL
19
20class QSslCipherPrivate;
21class Q_NETWORK_EXPORT QSslCipher
22{
23public:
24 QSslCipher();
25 explicit QSslCipher(const QString &name);
26 QSslCipher(const QString &name, QSsl::SslProtocol protocol);
27 QSslCipher(const QSslCipher &other);
28 QSslCipher &operator=(QSslCipher &&other) noexcept { swap(other); return *this; }
29 QSslCipher &operator=(const QSslCipher &other);
30 ~QSslCipher();
31
32 void swap(QSslCipher &other) noexcept
33 { d.swap(other.d); }
34
35 bool operator==(const QSslCipher &other) const;
36 inline bool operator!=(const QSslCipher &other) const { return !operator==(other); }
37
38 bool isNull() const;
39 QString name() const;
40 int supportedBits() const;
41 int usedBits() const;
42
43 QString keyExchangeMethod() const;
44 QString authenticationMethod() const;
45 QString encryptionMethod() const;
46 QString protocolString() const;
47 QSsl::SslProtocol protocol() const;
48
49private:
50 // ### Qt 7: make implicitly shared
51 std::unique_ptr<QSslCipherPrivate> d;
52 friend class QTlsBackend;
53};
54
56
57#ifndef QT_NO_DEBUG_STREAM
58class QDebug;
59Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslCipher &cipher);
60#endif
61
62#endif // QT_NO_SSL
63
64QT_END_NAMESPACE
65
66#endif
This class represents Online Certificate Status Protocol response.
The QSslCertificate class provides a convenient API for an X509 certificate.
The QSslCipher class represents an SSL cryptographic cipher.
Definition qsslcipher.h:22
The QSslPreSharedKeyAuthenticator class provides authentication data for pre shared keys (PSK) cipher...
The QSslSocket class provides an SSL encrypted socket for both clients and servers.
Definition qsslsocket.h:29
Combined button and popup list for selecting options.
Namespace containing onternal types that TLS backends implement.
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition qdir.cpp:2464
QT_REQUIRE_CONFIG(itemmodel)
QOcspRevocationReason