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
qssldiffiehellmanparameters.h
Go to the documentation of this file.
1// Copyright (C) 2015 Mikkel Krautz <mikkel@krautz.dk>
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 QSSLDIFFIEHELLMANPARAMETERS_H
6#define QSSLDIFFIEHELLMANPARAMETERS_H
7
8#include <QtNetwork/qssl.h>
9#include <QtCore/qnamespace.h>
10#include <QtCore/qbytearray.h>
11#include <QtCore/qshareddata.h>
12
14
15#ifndef QT_NO_SSL
16
17class QIODevice;
18class QSslContext;
20
22// qHash is a friend, but we can't use default arguments for friends (ยง8.3.6.4)
23Q_NETWORK_EXPORT size_t qHash(const QSslDiffieHellmanParameters &dhparam, size_t seed = 0) noexcept;
24
25#ifndef QT_NO_DEBUG_STREAM
26class QDebug;
27Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslDiffieHellmanParameters &dhparams);
28#endif
29
30class Q_NETWORK_EXPORT QSslDiffieHellmanParameters
31{
32public:
33 enum Error {
36 UnsafeParametersError
37 };
38
39 static QSslDiffieHellmanParameters defaultParameters();
40
45
48
50
53
54 bool isEmpty() const noexcept;
55 bool isValid() const noexcept;
56 Error error() const noexcept;
57 QString errorString() const noexcept;
58
61 friend class QSslContext;
62
63 bool isEqual(const QSslDiffieHellmanParameters &other) const noexcept;
64 friend bool operator==(const QSslDiffieHellmanParameters &lhs, const QSslDiffieHellmanParameters &rhs) noexcept
65 { return lhs.isEqual(rhs); }
66 friend bool operator!=(const QSslDiffieHellmanParameters &lhs, const QSslDiffieHellmanParameters &rhs) noexcept
67 { return !lhs.isEqual(rhs); }
68
69#ifndef QT_NO_DEBUG_STREAM
70 friend Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslDiffieHellmanParameters &dhparam);
71#endif
72 friend Q_NETWORK_EXPORT size_t qHash(const QSslDiffieHellmanParameters &dhparam, size_t seed) noexcept;
73};
74
75Q_DECLARE_SHARED(QSslDiffieHellmanParameters)
76
77#endif // QT_NO_SSL
78
80
81#endif
static bool isEqual(const aiUVTransform &a, const aiUVTransform &b)
IOBluetoothDevice * device
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
\inmodule QtCore \reentrant
Definition qiodevice.h:34
The QSslDiffieHellmanParameters class provides an interface for Diffie-Hellman parameters for servers...
void swap(QSslDiffieHellmanParameters &other) noexcept
Swaps this QSslDiffieHellmanParameters with other.
Error
Describes a QSslDiffieHellmanParameters error.
QSslDiffieHellmanParameters & operator=(QSslDiffieHellmanParameters &&other) noexcept
Move-assigns other to this QSslDiffieHellmanParameters instance.
QSslDiffieHellmanParameters(QSslDiffieHellmanParameters &&other) noexcept
Move-constructs from other.
friend bool operator!=(const QSslDiffieHellmanParameters &lhs, const QSslDiffieHellmanParameters &rhs) noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
EncodingFormat
Describes supported encoding formats for certificates and keys.
Definition qssl.h:28
@ Pem
Definition qssl.h:29
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
size_t qHash(const QFileSystemWatcherPathKey &key, size_t seed=0)
GLint GLsizei GLsizei GLenum format
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
Definition qrandom.cpp:196
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslDiffieHellmanParameters &dhparams)
Q_NETWORK_EXPORT size_t qHash(const QSslDiffieHellmanParameters &dhparam, size_t seed=0) noexcept
constexpr void qt_ptr_swap(T *&lhs, T *&rhs) noexcept
Definition qswap.h:29
QDataStream & operator<<(QDataStream &out, const MyClass &myObj)
[4]
QSharedPointer< T > other(t)
[5]
this swap(other)