40 #ifndef QTLSKEY_OPENSSL_H
41 #define QTLSKEY_OPENSSL_H
54 #include <QtNetwork/private/qtnetworkglobal_p.h>
56 #include "../shared/qtlskey_base_p.h"
58 #include <QtNetwork/private/qtlsbackend_p.h>
59 #include <QtNetwork/private/qsslkey_p.h>
61 #include <QtNetwork/qssl.h>
63 #include <QtCore/qbytearray.h>
64 #include <QtCore/qglobal.h>
66 #include <openssl/rsa.h>
67 #include <openssl/dsa.h>
68 #include <openssl/dh.h>
70 #ifdef OPENSSL_NO_DEPRECATED_3_0
71 typedef struct evp_pkey_st EVP_PKEY;
72 typedef struct dsa_st DSA;
73 typedef struct rsa_st RSA;
74 typedef struct dh_st DH;
75 typedef struct ec_key_st EC_KEY;
98 const QByteArray &passPhrase,
bool deepClear)
override;
100 const QByteArray &passPhrase,
bool deepClear)
override;
107 void clear(
bool deep)
override;
109 int length()
const override;
123 #ifndef OPENSSL_NO_EC
The QByteArray class provides an array of bytes.
KeyAlgorithm algorithm() const override
QSsl::KeyAlgorithm KeyAlgorithm
void decodePem(KeyType type, KeyAlgorithm algorithm, const QByteArray &pem, const QByteArray &passPhrase, bool deepClear) override
void fromHandle(Qt::HANDLE opaque, KeyType expectedType) override
void clear(bool deep) override
bool fromEVP_PKEY(EVP_PKEY *pkey)
QByteArray derFromPem(const QByteArray &pem, QMap< QByteArray, QByteArray > *headers) const override
void decodeDer(KeyType type, KeyAlgorithm algorithm, const QByteArray &der, const QByteArray &passPhrase, bool deepClear) override
QByteArray decrypt(Cipher cipher, const QByteArray &data, const QByteArray &key, const QByteArray &iv) const override
QByteArray toPem(const QByteArray &passPhrase) const override
int length() const override
Qt::HANDLE handle() const override
QByteArray encrypt(Cipher cipher, const QByteArray &data, const QByteArray &key, const QByteArray &iv) const override
static TlsKeyOpenSSL * publicKeyFromX509(X509 *x)
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QT_BEGIN_NAMESPACE QT_REQUIRE_CONFIG(ssl)