The EasySSLUtils class These are basic utils for work with the opwnssl library.
More...
#include <easysslutils.h>
|
static void | printlastOpenSSlError () |
| printlastOpenSSlError This method prints the latest ssl error message.
|
|
static QByteArray | bignumToArray (const BIGNUM *num) |
| bignumToArray This method converts openssl BIGNUM into byteArray
|
|
static BIGNUM * | bignumFromArray (const QByteArray &array) |
| bignumFromArray This method converts the Qt bytes array into the opensll big num.
|
|
static QByteArray | bioToByteArray (BIO *bio) |
| bioToByteArray This method converts the openssl BIO to the QByteArry
|
|
static BIO * | byteArrayToBio (const QByteArray &byteArray) |
| byteArrayToBio This method creates the BIO struct from the Qt QByteArray object.
|
|
static QByteArray | extractPublcKey (EVP_PKEY *ssl_keys) |
| extractPublcKey This method extracts the public key from the ssl (pem) structure.
|
|
static QByteArray | extractPrivateKey (EVP_PKEY *ssl_keys) |
| extractPrivateKey This method extracts the private key from the ssl (pem) structure.
|
|
The EasySSLUtils class These are basic utils for work with the opwnssl library.
Definition at line 16 of file easysslutils.h.
◆ bignumFromArray()
BIGNUM * EasySSL::EasySSLUtils::bignumFromArray |
( |
const QByteArray & |
array | ) |
|
|
static |
bignumFromArray This method converts the Qt bytes array into the opensll big num.
- Parameters
-
array | This is an input array. |
- Returns
- big num pointer.
- Note
- This result pointer will not be free automatically. Please free the returned pointer after use.
Definition at line 31 of file easysslutils.cpp.
◆ bignumToArray()
QByteArray EasySSL::EasySSLUtils::bignumToArray |
( |
const BIGNUM * |
num | ) |
|
|
static |
bignumToArray This method converts openssl BIGNUM into byteArray
- Parameters
-
num | This is a big num of the openssl library |
- Returns
- bytes array.
Definition at line 22 of file easysslutils.cpp.
◆ bioToByteArray()
QByteArray EasySSL::EasySSLUtils::bioToByteArray |
( |
BIO * |
bio | ) |
|
|
static |
bioToByteArray This method converts the openssl BIO to the QByteArry
- Parameters
-
- Returns
- Qt Array
Definition at line 42 of file easysslutils.cpp.
◆ byteArrayToBio()
BIO * EasySSL::EasySSLUtils::byteArrayToBio |
( |
const QByteArray & |
byteArray | ) |
|
|
static |
byteArrayToBio This method creates the BIO struct from the Qt QByteArray object.
- Parameters
-
byteArray | This is an input Qt byte array. |
- Returns
- pointer to the BIO struct of OpenSLL library.
- Note
- Don't forget to free the result pointer.
Definition at line 54 of file easysslutils.cpp.
◆ extractPrivateKey()
QByteArray EasySSL::EasySSLUtils::extractPrivateKey |
( |
EVP_PKEY * |
ssl_keys | ) |
|
|
static |
extractPrivateKey This method extracts the private key from the ssl (pem) structure.
- Parameters
-
ssl_keys | These are objects of the ssl keys. |
- Returns
- bytes array of the extracted key.
Definition at line 75 of file easysslutils.cpp.
◆ extractPublcKey()
QByteArray EasySSL::EasySSLUtils::extractPublcKey |
( |
EVP_PKEY * |
ssl_keys | ) |
|
|
static |
extractPublcKey This method extracts the public key from the ssl (pem) structure.
- Parameters
-
ssl_keys | These are objects of the ssl keys. |
- Returns
- bytes array of the extracted key.
Definition at line 59 of file easysslutils.cpp.
◆ printlastOpenSSlError()
void EasySSL::EasySSLUtils::printlastOpenSSlError |
( |
| ) |
|
|
static |
printlastOpenSSlError This method prints the latest ssl error message.
Definition at line 18 of file easysslutils.cpp.
The documentation for this class was generated from the following files: