aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/x509ca/x509_ca.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-17 14:24:56 +0000
committerlloyd <[email protected]>2010-09-17 14:24:56 +0000
commit25149a9b4cd3ca29eb1ef45871430a6044e6a346 (patch)
tree7ba8f738212c7fbb59647b6a2fc75b95cb25ee9a /src/cert/x509ca/x509_ca.cpp
parent4ef234d711e1dd40f1cd7ec328e9933fb19dc5ee (diff)
Remove dependencies on X509_Store
Diffstat (limited to 'src/cert/x509ca/x509_ca.cpp')
-rw-r--r--src/cert/x509ca/x509_ca.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cert/x509ca/x509_ca.cpp b/src/cert/x509ca/x509_ca.cpp
index ea7f3a405..be7849ec4 100644
--- a/src/cert/x509ca/x509_ca.cpp
+++ b/src/cert/x509ca/x509_ca.cpp
@@ -6,7 +6,6 @@
*/
#include <botan/x509_ca.h>
-#include <botan/x509stor.h>
#include <botan/pubkey.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
@@ -155,9 +154,7 @@ X509_CRL X509_CA::update_crl(const X509_CRL& crl,
std::vector<CRL_Entry> already_revoked = crl.get_revoked();
std::vector<CRL_Entry> all_revoked;
- X509_Store store;
- store.add_cert(cert, true);
- if(store.add_crl(crl) != VERIFIED)
+ if(!crl.check_signature(cert.subject_public_key()))
throw Invalid_Argument("X509_CA::update_crl: Invalid CRL provided");
std::set<SecureVector<byte> > removed_from_crl;