mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-28 20:44:31 +00:00
non-default ctor/etc and dptr
svn path=/trunk/kdesupport/qca/; revision=670554
This commit is contained in:
parent
27f327bd7a
commit
ddcfd78c74
@ -1176,6 +1176,10 @@ namespace QCA
|
||||
*/
|
||||
CRLEntry(const BigInteger serial, const QDateTime &time, Reason r = Unspecified);
|
||||
|
||||
CRLEntry(const CRLEntry &from);
|
||||
~CRLEntry();
|
||||
CRLEntry & operator=(const CRLEntry &from);
|
||||
|
||||
/**
|
||||
The serial number of the certificate that is the subject of this CRL entry
|
||||
*/
|
||||
@ -1225,6 +1229,9 @@ namespace QCA
|
||||
BigInteger _serial;
|
||||
QDateTime _time;
|
||||
Reason _reason;
|
||||
|
||||
class Private;
|
||||
Private *d;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -1557,6 +1564,10 @@ namespace QCA
|
||||
*/
|
||||
CertificateAuthority(const Certificate &cert, const PrivateKey &key, const QString &provider);
|
||||
|
||||
CertificateAuthority(const CertificateAuthority &from);
|
||||
~CertificateAuthority();
|
||||
CertificateAuthority & operator=(const CertificateAuthority &from);
|
||||
|
||||
/**
|
||||
The Certificate belonging to the %CertificateAuthority
|
||||
|
||||
@ -1599,6 +1610,10 @@ namespace QCA
|
||||
\return the update CRL
|
||||
*/
|
||||
CRL updateCRL(const CRL &crl, const QList<CRLEntry> &entries, const QDateTime &nextUpdate) const;
|
||||
|
||||
private:
|
||||
class Private;
|
||||
Private *d;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -1970,6 +1985,10 @@ namespace QCA
|
||||
\param provider the provider to use, if a particular provider is required
|
||||
*/
|
||||
static PGPKey fromFile(const QString &fileName, ConvertResult *result = 0, const QString &provider = QString());
|
||||
|
||||
private:
|
||||
class Private;
|
||||
Private *d;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -1481,11 +1481,6 @@ CRLEntry::CRLEntry()
|
||||
_reason = Unspecified;
|
||||
}
|
||||
|
||||
bool CRLEntry::isNull() const
|
||||
{
|
||||
return (_time.isNull());
|
||||
}
|
||||
|
||||
CRLEntry::CRLEntry(const Certificate &c, Reason r)
|
||||
{
|
||||
_serial = c.serialNumber();
|
||||
@ -1500,6 +1495,28 @@ CRLEntry::CRLEntry(const BigInteger serial, const QDateTime &time, Reason r)
|
||||
_reason = r;
|
||||
}
|
||||
|
||||
CRLEntry::CRLEntry(const CRLEntry &from)
|
||||
:_serial(from._serial), _time(from._time), _reason(from._reason)
|
||||
{
|
||||
}
|
||||
|
||||
CRLEntry::~CRLEntry()
|
||||
{
|
||||
}
|
||||
|
||||
CRLEntry & CRLEntry::operator=(const CRLEntry &from)
|
||||
{
|
||||
_serial = from._serial;
|
||||
_time = from._time;
|
||||
_reason = from._reason;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool CRLEntry::isNull() const
|
||||
{
|
||||
return (_time.isNull());
|
||||
}
|
||||
|
||||
BigInteger CRLEntry::serialNumber() const
|
||||
{
|
||||
return _serial;
|
||||
@ -1981,6 +1998,21 @@ CertificateAuthority::CertificateAuthority(const Certificate &cert, const Privat
|
||||
static_cast<CAContext *>(context())->setup(*(static_cast<const CertContext *>(cert.context())), *(static_cast<const PKeyContext *>(key.context())));
|
||||
}
|
||||
|
||||
CertificateAuthority::CertificateAuthority(const CertificateAuthority &from)
|
||||
:Algorithm(from)
|
||||
{
|
||||
}
|
||||
|
||||
CertificateAuthority::~CertificateAuthority()
|
||||
{
|
||||
}
|
||||
|
||||
CertificateAuthority & CertificateAuthority::operator=(const CertificateAuthority &from)
|
||||
{
|
||||
Algorithm::operator=(from);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Certificate CertificateAuthority::certificate() const
|
||||
{
|
||||
Certificate c;
|
||||
|
Loading…
x
Reference in New Issue
Block a user