mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-26 19:44:32 +00:00
minor changes: default args and renamed enum items
svn path=/trunk/kdesupport/qca/; revision=647654
This commit is contained in:
parent
73d2a85ff7
commit
3a3fa3c3af
@ -1517,7 +1517,7 @@ namespace QCA
|
||||
\sa fromFile for a more flexible version of the
|
||||
same capability.
|
||||
*/
|
||||
KeyBundle(const QString &fileName, const QSecureArray &passphrase);
|
||||
KeyBundle(const QString &fileName, const QSecureArray &passphrase = QSecureArray());
|
||||
|
||||
/**
|
||||
Standard copy constructor
|
||||
@ -1647,7 +1647,7 @@ namespace QCA
|
||||
\param result pointer to the result of the import process
|
||||
\param provider the provider to use, if a specific provider is required
|
||||
*/
|
||||
static KeyBundle fromArray(const QByteArray &a, const QSecureArray &passphrase, ConvertResult *result = 0, const QString &provider = QString());
|
||||
static KeyBundle fromArray(const QByteArray &a, const QSecureArray &passphrase = QSecureArray(), ConvertResult *result = 0, const QString &provider = QString());
|
||||
|
||||
/**
|
||||
Import the key bundle from a file in PKCS12 (.p12) format
|
||||
@ -1670,7 +1670,7 @@ namespace QCA
|
||||
\param result pointer to the result of the import process
|
||||
\param provider the provider to use, if a specific provider is required
|
||||
*/
|
||||
static KeyBundle fromFile(const QString &fileName, const QSecureArray &passphrase, ConvertResult *result = 0, const QString &provider = QString());
|
||||
static KeyBundle fromFile(const QString &fileName, const QSecureArray &passphrase = QSecureArray(), ConvertResult *result = 0, const QString &provider = QString());
|
||||
|
||||
private:
|
||||
class Private;
|
||||
|
@ -257,12 +257,12 @@ namespace QCA
|
||||
*/
|
||||
enum Error
|
||||
{
|
||||
ErrorSignerExpired, ///< local certificate is expired
|
||||
ErrorSignerInvalid, ///< local certificate is invalid in some way
|
||||
ErrorKeyMismatch, ///< certificate and private key don't match
|
||||
ErrorInit, ///< problem starting up %TLS
|
||||
ErrorHandshake, ///< problem during the negotiation
|
||||
ErrorCrypt ///< problem at anytime after
|
||||
ErrorSignerExpired, ///< local certificate is expired
|
||||
ErrorSignerInvalid, ///< local certificate is invalid in some way
|
||||
ErrorCertKeyMismatch, ///< certificate and private key don't match
|
||||
ErrorInit, ///< problem starting up %TLS
|
||||
ErrorHandshake, ///< problem during the negotiation
|
||||
ErrorCrypt ///< problem at anytime after
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -335,7 +335,7 @@ else
|
||||
ErrorEncryptUntrusted, ///< encrypting key is untrusted
|
||||
ErrorEncryptInvalid, ///< encrypting key is invalid in some way
|
||||
ErrorNeedCard, ///< pgp card is missing
|
||||
ErrorKeyMismatch, ///< certificate and private key don't match
|
||||
ErrorCertKeyMismatch, ///< certificate and private key don't match
|
||||
ErrorUnknown ///< other error
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user