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