Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtlskey_openssl.cpp File Reference

(44b4e5746804bee1a58f1379de0d8197ded4d84c)

#include "qsslsocket_openssl_symbols_p.h"
#include "qtlsbackend_openssl_p.h"
#include "qtlskey_openssl_p.h"
#include <QtNetwork/private/qsslkey_p.h>
#include <QtNetwork/qsslsocket.h>
#include <QtCore/qscopeguard.h>
+ Include dependency graph for qtlskey_openssl.cpp:

Go to the source code of this file.

Namespaces

namespace  QTlsPrivate
 Namespace containing onternal types that TLS backends implement.
 

Macros

#define write_pubkey(alg, key)   q_PEM_write_bio_##alg##_PUBKEY(bio, key)
 
#define write_privatekey(alg, key)
 
#define get_key(key, alg)   key = q_EVP_PKEY_get1_##alg(pkey)
 
#define get_pubkey(keyName, alg)   tlsKey->keyName = q_EVP_PKEY_get1_##alg(pkey)
 

Functions

QByteArray QTlsPrivate::doCrypt (QSslKeyPrivate::Cipher cipher, const QByteArray &data, const QByteArray &key, const QByteArray &iv, bool enc)
 

Macro Definition Documentation

◆ get_key

#define get_key ( key,
alg )   key = q_EVP_PKEY_get1_##alg(pkey)

◆ get_pubkey

#define get_pubkey ( keyName,
alg )   tlsKey->keyName = q_EVP_PKEY_get1_##alg(pkey)

◆ write_privatekey

#define write_privatekey ( alg,
key )
Value:
q_PEM_write_bio_##alg##PrivateKey(bio, key, cipher, (uchar *)passPhrase.data(), \
passPhrase.size(), nullptr, nullptr)
GLuint64 key
unsigned char uchar
Definition qtypes.h:32

◆ write_pubkey

#define write_pubkey ( alg,
key )   q_PEM_write_bio_##alg##_PUBKEY(bio, key)