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
qx509_st.cpp
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
// Qt-Security score:significant reason:default
4
5
#
include
"qtlskey_st_p.h"
6
#
include
"qx509_st_p.h"
7
8
#
include
<
memory
>
9
10
QT_BEGIN_NAMESPACE
11
12
namespace
QTlsPrivate
{
13
14
TlsKey
*X509CertificateSecureTransport::
publicKey
()
const
15
{
16
auto
key = std::make_unique<TlsKeySecureTransport>(QSsl::PublicKey);
17
if
(publicKeyAlgorithm != QSsl::Opaque)
18
key->decodeDer(QSsl::PublicKey, publicKeyAlgorithm, publicKeyDerData, {},
false
);
19
20
return
key.release();
21
}
22
23
}
// namespace QTlsPrivate
24
25
QT_END_NAMESPACE
QTlsPrivate::X509CertificateSecureTransport::publicKey
TlsKey * publicKey() const override
Definition
qx509_st.cpp:14
QTlsPrivate
Namespace containing onternal types that TLS backends implement.
Definition
qocspresponse.h:41
qtbase
src
plugins
tls
securetransport
qx509_st.cpp
Generated on
for Qt by
1.14.0