kdeconnect-kde/core/sslhelper.h

22 lines
472 B
C
Raw Normal View History

/**
* SPDX-FileCopyrightText: 2023 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef SSLHELPER_H
#define SSLHELPER_H
2023-07-12 18:27:05 +01:00
#include <QSslCertificate>
#include <QSslKey>
#include <QString>
namespace SslHelper
{
QSslKey generateEcPrivateKey();
2023-07-12 18:27:05 +01:00
QSslKey generateRsaPrivateKey();
QSslCertificate generateSelfSignedCertificate(const QSslKey &privateKey, const QString &commonName);
}
2023-07-12 18:27:05 +01:00
#endif