![]() |
Qt 4.8
|
#include <qsslkey_p.h>
Public Functions | |
| void | clear (bool deep=true) |
| void | decodePem (const QByteArray &pem, const QByteArray &passPhrase, bool deepClear=true) |
| Allocates a new rsa or dsa struct and decodes pem into it according to the current algorithm and type. More... | |
| QByteArray | derFromPem (const QByteArray &pem) const |
| Returns a PEM key formatted as DER. More... | |
| QByteArray | pemFooter () const |
| QByteArray | pemFromDer (const QByteArray &der) const |
| Returns a DER key formatted as PEM. More... | |
| QByteArray | pemHeader () const |
| QSslKeyPrivate () | |
| ~QSslKeyPrivate () | |
Public Variables | |
| QSsl::KeyAlgorithm | algorithm |
| DSA * | dsa |
| bool | isNull |
| QAtomicInt | ref |
| RSA * | rsa |
| QSsl::KeyType | type |
Definition at line 64 of file qsslkey_p.h.
|
inline |
Definition at line 67 of file qsslkey_p.h.
|
inline |
Definition at line 74 of file qsslkey_p.h.
| void QSslKeyPrivate::clear | ( | bool | deep = true | ) |
Definition at line 80 of file qsslkey.cpp.
Referenced by decodePem(), QSslKeyPrivate(), and ~QSslKeyPrivate().
| void QSslKeyPrivate::decodePem | ( | const QByteArray & | pem, |
| const QByteArray & | passPhrase, | ||
| bool | deepClear = true |
||
| ) |
Allocates a new rsa or dsa struct and decodes pem into it according to the current algorithm and type.
If deepClear is true, the rsa/dsa struct is freed if it is was already allocated, otherwise we "leak" memory (which is exactly what we want for copy construction).
If passPhrase is non-empty, it will be used for decrypting pem.
Definition at line 113 of file qsslkey.cpp.
Referenced by QSslKey::QSslKey(), and ~QSslKeyPrivate().
| QByteArray QSslKeyPrivate::derFromPem | ( | const QByteArray & | pem | ) | const |
Returns a PEM key formatted as DER.
Definition at line 219 of file qsslkey.cpp.
Referenced by QSslKey::toDer(), and ~QSslKeyPrivate().
| QByteArray QSslKeyPrivate::pemFooter | ( | ) | const |
Definition at line 173 of file qsslkey.cpp.
Referenced by ~QSslKeyPrivate().
| QByteArray QSslKeyPrivate::pemFromDer | ( | const QByteArray & | der | ) | const |
Returns a DER key formatted as PEM.
Definition at line 191 of file qsslkey.cpp.
Referenced by QSslKey::QSslKey(), and ~QSslKeyPrivate().
| QByteArray QSslKeyPrivate::pemHeader | ( | ) | const |
Definition at line 160 of file qsslkey.cpp.
Referenced by ~QSslKeyPrivate().
| QSsl::KeyAlgorithm QSslKeyPrivate::algorithm |
Definition at line 88 of file qsslkey_p.h.
Referenced by QSslKey::algorithm(), decodePem(), QSslKey::handle(), QSslKey::length(), QSslCertificate::publicKey(), QSslKey::QSslKey(), and QSslKey::toPem().
| DSA* QSslKeyPrivate::dsa |
Definition at line 90 of file qsslkey_p.h.
Referenced by clear(), decodePem(), QSslKey::handle(), QSslKey::length(), QSslCertificate::publicKey(), and QSslKey::toPem().
| bool QSslKeyPrivate::isNull |
Definition at line 86 of file qsslkey_p.h.
Referenced by clear(), decodePem(), QSslKey::isNull(), QSslKey::length(), QSslCertificate::publicKey(), QSslKey::toDer(), and QSslKey::toPem().
| QAtomicInt QSslKeyPrivate::ref |
Definition at line 92 of file qsslkey_p.h.
| RSA* QSslKeyPrivate::rsa |
Definition at line 89 of file qsslkey_p.h.
Referenced by clear(), decodePem(), QSslKey::handle(), QSslKey::length(), QSslCertificate::publicKey(), and QSslKey::toPem().
| QSsl::KeyType QSslKeyPrivate::type |
Definition at line 87 of file qsslkey_p.h.
Referenced by decodePem(), QSslCertificate::publicKey(), QSslKey::QSslKey(), QSslKey::toPem(), and QSslKey::type().