Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
32
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:
41using QHCertStorePointer = std::unique_ptr<void, QHCertStoreDeleter>;
42
44 void operator()(PCCERT_CONTEXT context) const
45 {
46 CertFreeCertificateContext(context);
47 }
48};
49
50// A simple RAII type used by Schannel code
51using QPCCertContextPointer = std::unique_ptr<const CERT_CONTEXT, QPCCertContextDeleter>;
52
54
55#endif // QWINCRYPT_P_H
Combined button and popup list for selecting options.
static void * context
std::unique_ptr< const CERT_CONTEXT, QPCCertContextDeleter > QPCCertContextPointer
Definition qwincrypt_p.h:51
std::unique_ptr< void, QHCertStoreDeleter > QHCertStorePointer
Definition qwincrypt_p.h:41
void operator()(HCERTSTORE store)
Definition qwincrypt_p.h:34
void operator()(PCCERT_CONTEXT context) const
Definition qwincrypt_p.h:44