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
qocsp_p.h
Go to the documentation of this file.
1
// Copyright (C) 2019 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
#
ifndef
QOCSP_P_H
6
#
define
QOCSP_P_H
7
8
#
include
<
QtNetwork
/
private
/
qtnetworkglobal_p
.
h
>
9
10
//
11
// W A R N I N G
12
// -------------
13
//
14
// This file is not part of the Qt API. It exists purely as an
15
// implementation detail. This header file may change from version to
16
// version without notice, or even be removed.
17
//
18
// We mean it.
19
//
20
21
// Note, this file is a workaround: on 64-bit Windows one of OpenSSL
22
// includes combined with openssl/ocsp.h results in macros from
23
// wincrypt.h exposed. OpenSSL's own very "unique" and "inventive"
24
// names like OCSP_RESPONSE or X509_NAME were asking to clash with
25
// other entities (presumably macros) with the same names. Normally,
26
// ossl_typ.h un-defines them, but due to a bug in OpenSSL, fails
27
// to do this on Win 64. Thus we have to do it here. We only undef
28
// 3 names, ossl_typ.h has more, but apparently we don't need them
29
// (no name clash so far).
30
31
QT_REQUIRE_CONFIG
(
ocsp
);
32
33
#
ifdef
Q_OS_WIN
34
#
undef
X509_NAME
35
#
undef
OCSP_REQUEST
36
#
undef
OCSP_RESPONSE
37
#
endif
// Q_OS_WIN
38
39
#
include
<
openssl
/
ocsp
.
h
>
40
41
#
endif
// QOCSP_P_H
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(ocsp)
qtbase
src
network
ssl
qocsp_p.h
Generated on
for Qt by
1.14.0