blob: 3f797a689146272059203e55e59960614cc4247a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qtlskey_st_p.h"
#include "qx509_st_p.h"
#include <memory>
QT_BEGIN_NAMESPACE
namespace QTlsPrivate {
TlsKey *X509CertificateSecureTransport::publicKey() const
{
auto key = std::make_unique<TlsKeySecureTransport>(QSsl::PublicKey);
if (publicKeyAlgorithm != QSsl::Opaque)
key->decodeDer(QSsl::PublicKey, publicKeyAlgorithm, publicKeyDerData, {}, false);
return key.release();
}
} // namespace QTlsPrivate
QT_END_NAMESPACE
|