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