#include <QtCrypto>
Public Member Functions | |
virtual ConvertResult | fromPKCS12 (const QByteArray &in, const SecureArray &passphrase, QString *name, QList< CertContext * > *chain, PKeyContext **priv) const =0 |
PKCS12Context (Provider *p) | |
virtual QByteArray | toPKCS12 (const QString &name, const QList< const CertContext * > &chain, const PKeyContext &priv, const SecureArray &passphrase) const =0 |
QCA::PKCS12Context::PKCS12Context | ( | Provider * | p | ) | [inline] |
virtual ConvertResult QCA::PKCS12Context::fromPKCS12 | ( | const QByteArray & | in, | |
const SecureArray & | passphrase, | |||
QString * | name, | |||
QList< CertContext * > * | chain, | |||
PKeyContext ** | priv | |||
) | const [pure virtual] |
Read PKCS#12 DER input and convert it into a set of output items.
The caller is responsible for deleting the returned items.
Returns QCA::ConvertGood if successful, otherwise some error value.
in | the input data | |
passphrase | the passphrase needed to decrypt the input data | |
name | the destination string for the friendly name | |
chain | the destination list for the certificate chain | |
priv | address of a pointer to accept the private key |
virtual QByteArray QCA::PKCS12Context::toPKCS12 | ( | const QString & | name, | |
const QList< const CertContext * > & | chain, | |||
const PKeyContext & | priv, | |||
const SecureArray & | passphrase | |||
) | const [pure virtual] |
Create PKCS#12 DER output based on a set of input items.
Returns an empty array on error.
name | the friendly name of the data | |
chain | the certificate chain to store | |
priv | the private key to store | |
passphrase | the passphrase to encrypt the PKCS#12 data with |