Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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)
 
#define write_privatekey(alg, key)
 
#define get_key(key, alg)
 
#define get_pubkey(keyName, alg)
 

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 )
Value:
key = q_EVP_PKEY_get1_##alg(pkey)
GLuint64 key

◆ get_pubkey

#define get_pubkey ( keyName,
alg )
Value:
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)
unsigned char uchar
Definition qtypes.h:37

◆ write_pubkey

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