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
10QT_BEGIN_NAMESPACE
11
12namespace QTlsPrivate {
13
14TlsKey *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
25QT_END_NAMESPACE
TlsKey * publicKey() const override
Definition qx509_st.cpp:14
Namespace containing onternal types that TLS backends implement.