remove CRL::signature, for consistency with other objects

svn path=/trunk/kdesupport/qca/; revision=670496
This commit is contained in:
Justin Karneges 2007-06-01 18:47:50 +00:00
parent 1bb4e28b5d
commit 7ddc70de0a
3 changed files with 4 additions and 12 deletions

1
TODO
View File

@ -5,7 +5,6 @@
deinit method for providers, to occur for all before destruction?
securemessage bytesWritten?
Provider::version -> qcaVersion, make version() provider's own version?
remove CRL::signature? (we don't have this for cert/csr)
ensure non-default ctors/dtors/copy/op=, and dpointers as needed:
basic,publickey,cert,keystore,securelayer,securemessage
QCA_EXPORT check:

View File

@ -1287,11 +1287,6 @@ namespace QCA
*/
QList<CRLEntry> revoked() const;
/**
The signature on this CRL
*/
SecureArray signature() const;
/**
The signature algorithm used for the signature on this CRL
*/

View File

@ -1627,11 +1627,6 @@ QList<CRLEntry> CRL::revoked() const
return static_cast<const CRLContext *>(context())->props()->revoked;
}
SecureArray CRL::signature() const
{
return static_cast<const CRLContext *>(context())->props()->sig;
}
SignatureAlgorithm CRL::signatureAlgorithm() const
{
return static_cast<const CRLContext *>(context())->props()->sigalgo;
@ -1664,6 +1659,9 @@ bool CRL::operator==(const CRL &otherCrl) const
return false;
}
const CRLContextProps *a = static_cast<const CRLContext *>(context())->props();
const CRLContextProps *b = static_cast<const CRLContext *>(otherCrl.context())->props();
if ( number() != otherCrl.number() )
return false;
@ -1673,7 +1671,7 @@ bool CRL::operator==(const CRL &otherCrl) const
if ( nextUpdate() != otherCrl.nextUpdate() )
return false;
if ( signature() != otherCrl.signature() )
if ( a->sig != b->sig )
return false;
if ( signatureAlgorithm() != otherCrl.signatureAlgorithm() )