easyssl 0.51.8d8e9a5
EasySSL is base back end library for your c++ Qt projects.
EasySSL::EasySSLUtils Class Reference

The EasySSLUtils class These are basic utils for work with the opwnssl library. More...

#include <easysslutils.h>

Static Public Member Functions

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.
 

Detailed Description

The EasySSLUtils class These are basic utils for work with the opwnssl library.

Definition at line 16 of file easysslutils.h.

Collaboration diagram for EasySSL::EasySSLUtils:
Collaboration graph

Member Function Documentation

◆ bignumFromArray()

BIGNUM * EasySSL::EasySSLUtils::bignumFromArray ( const QByteArray &  array)
static

bignumFromArray This method converts the Qt bytes array into the opensll big num.

Parameters
arrayThis 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.

Here is the call graph for this function:

◆ bignumToArray()

QByteArray EasySSL::EasySSLUtils::bignumToArray ( const BIGNUM *  num)
static

bignumToArray This method converts openssl BIGNUM into byteArray

Parameters
numThis 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
bioinput arrary.
Returns
Qt Array

Definition at line 42 of file easysslutils.cpp.

Here is the caller graph for this function:

◆ byteArrayToBio()

BIO * EasySSL::EasySSLUtils::byteArrayToBio ( const QByteArray &  byteArray)
static

byteArrayToBio This method creates the BIO struct from the Qt QByteArray object.

Parameters
byteArrayThis 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.

Here is the caller graph for this function:

◆ extractPrivateKey()

QByteArray EasySSL::EasySSLUtils::extractPrivateKey ( EVP_PKEY *  ssl_keys)
static

extractPrivateKey This method extracts the private key from the ssl (pem) structure.

Parameters
ssl_keysThese are objects of the ssl keys.
Returns
bytes array of the extracted key.

Definition at line 75 of file easysslutils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ extractPublcKey()

QByteArray EasySSL::EasySSLUtils::extractPublcKey ( EVP_PKEY *  ssl_keys)
static

extractPublcKey This method extracts the public key from the ssl (pem) structure.

Parameters
ssl_keysThese are objects of the ssl keys.
Returns
bytes array of the extracted key.

Definition at line 59 of file easysslutils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printlastOpenSSlError()

void EasySSL::EasySSLUtils::printlastOpenSSlError ( )
static

printlastOpenSSlError This method prints the latest ssl error message.

Definition at line 18 of file easysslutils.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: