1// Copyright (C) 2017 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// Qt-Security score:significant reason:default
4
5/****************************************************************************
6**
7** In addition, as a special exception, the copyright holders listed above give
8** permission to link the code of its release of Qt with the OpenSSL project's
9** "OpenSSL" library (or modified versions of the "OpenSSL" library that use the
10** same license as the original version), and distribute the linked executables.
11**
12** You must comply with the GNU General Public License version 2 in all
13** respects for all of the code used other than the "OpenSSL" code. If you
14** modify this file, you may extend this exception to your version of the file,
15** but you are not obligated to do so. If you do not wish to do so, delete
16** this exception statement from your version of this file.
17**
18****************************************************************************/
19
20#ifndef QSSLSOCKET_OPENSSL_P_H
21#define QSSLSOCKET_OPENSSL_P_H
22
23//
24// W A R N I N G
25// -------------
26//
27// This file is not part of the Qt API. It exists purely as an
28// implementation detail. This header file may change from version to
29// version without notice, or even be removed.
30//
31// We mean it.
32//
33
34#include <QtNetwork/private/qtnetworkglobal_p.h>
35
36#include <QtNetwork/private/qsslsocket_p.h>
37
38#include <QtNetwork/qsslcipher.h>
39
40#ifdef Q_OS_WIN
41#include <qt_windows.h>
42#if defined(OCSP_RESPONSE)
43#undef OCSP_RESPONSE
44#endif
45#if defined(X509_NAME)
46#undef X509_NAME
47#endif
48#endif // Q_OS_WIN
49
50// This file is included in several *.cpp files and provides different
51// openssl declarations where they are needed.
52#include <openssl/asn1.h>
53#include <openssl/bio.h>
54#include <openssl/bn.h>
55#include <openssl/err.h>
56#include <openssl/evp.h>
57#include <openssl/pem.h>
58#include <openssl/pkcs12.h>
59#include <openssl/pkcs7.h>
60#include <openssl/rand.h>
61#include <openssl/ssl.h>
62#include <openssl/stack.h>
63#include <openssl/x509.h>
64#include <openssl/x509v3.h>
65#include <openssl/x509_vfy.h>
66#include <openssl/dsa.h>
67#include <openssl/rsa.h>
68#include <openssl/crypto.h>
69#include <openssl/tls1.h>
70#include <openssl/dh.h>
71
72QT_BEGIN_NAMESPACE
73
74struct QSslErrorEntry {
75 int code = 0;
76 int depth = 0;
77};
78
79Q_DECLARE_TYPEINFO(QSslErrorEntry, Q_PRIMITIVE_TYPE);
80
81QT_END_NAMESPACE
82
83#endif
84

source code of qtbase/src/plugins/tls/openssl/qopenssl_p.h