KHealthCertificate

x509loader.cpp
1/*
2 SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#include "x509loader_p.h"
7
8#include <QByteArray>
9
10openssl::x509_ptr X509Loader::readFromDER(const QByteArray &data)
11{
12 const uint8_t *certData = reinterpret_cast<const uint8_t*>(data.constData());
13 return openssl::x509_ptr(d2i_X509(nullptr, &certData, data.size()));
14}
const char * constData() const const
qsizetype size() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:47:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.