Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qwincrypt_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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 QWINCRYPT_P_H
5
#define QWINCRYPT_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
#include <QtNetwork/private/qtnetworkglobal_p.h>
19
20
#include <QtCore/qt_windows.h>
21
22
#include <QtCore/qglobal.h>
23
24
#include <wincrypt.h>
25
#ifndef HCRYPTPROV_LEGACY
26
#define HCRYPTPROV_LEGACY HCRYPTPROV
27
#endif
// !HCRYPTPROV_LEGACY
28
29
#include <memory>
30
31
QT_BEGIN_NAMESPACE
32
33
struct
QHCertStoreDeleter
{
34
void
operator()
(HCERTSTORE store)
35
{
36
CertCloseStore(store, 0);
37
}
38
};
39
40
// A simple RAII type used by Schannel code and Window CA fetcher class:
41
using
QHCertStorePointer
= std::unique_ptr<void, QHCertStoreDeleter>;
42
43
struct
QPCCertContextDeleter
{
44
void
operator()
(PCCERT_CONTEXT
context
)
const
45
{
46
CertFreeCertificateContext(
context
);
47
}
48
};
49
50
// A simple RAII type used by Schannel code
51
using
QPCCertContextPointer
= std::unique_ptr<const CERT_CONTEXT, QPCCertContextDeleter>;
52
53
QT_END_NAMESPACE
54
55
#endif
// QWINCRYPT_P_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
context
static void * context
Definition
qandroidaudiosource.cpp:42
QPCCertContextPointer
std::unique_ptr< const CERT_CONTEXT, QPCCertContextDeleter > QPCCertContextPointer
Definition
qwincrypt_p.h:51
QHCertStorePointer
std::unique_ptr< void, QHCertStoreDeleter > QHCertStorePointer
Definition
qwincrypt_p.h:41
QHCertStoreDeleter
Definition
qwincrypt_p.h:33
QHCertStoreDeleter::operator()
void operator()(HCERTSTORE store)
Definition
qwincrypt_p.h:34
QPCCertContextDeleter
Definition
qwincrypt_p.h:43
QPCCertContextDeleter::operator()
void operator()(PCCERT_CONTEXT context) const
Definition
qwincrypt_p.h:44
qtbase
src
plugins
tls
shared
qwincrypt_p.h
Generated by
1.9.7