diff options
author | lloyd <[email protected]> | 2010-08-04 12:50:23 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-08-04 12:50:23 +0000 |
commit | e19f1554004830e99872c13b8d5fa678b93d586a (patch) | |
tree | 51ebc37d2bda7ee4ad9d16f8e0408ac9dd844dd2 /src/cms/cms_dalg.cpp | |
parent | 5d9eecf1646facfff9b20e9932894fce0d0ff39c (diff) | |
parent | 49ebca0d092bcb6a208604f7ac8d1b798f5170fc (diff) |
propagate from branch 'net.randombit.botan' (head 717a9d103aa80e6d66c04e3a23cf173aadf56ceb)
to branch 'net.randombit.botan.c++0x' (head c9759e8ebc2f360696a11f2d00fc218d7a8bf744)
Diffstat (limited to 'src/cms/cms_dalg.cpp')
-rw-r--r-- | src/cms/cms_dalg.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cms/cms_dalg.cpp b/src/cms/cms_dalg.cpp index 50a2397e5..f727f2a3f 100644 --- a/src/cms/cms_dalg.cpp +++ b/src/cms/cms_dalg.cpp @@ -29,7 +29,7 @@ SecureVector<byte> hash_of(const SecureVector<byte>& content, Algorithm_Factory& af = global_state().algorithm_factory(); - std::auto_ptr<HashFunction> hash_fn(af.make_hash_function(hash_name)); + std::unique_ptr<HashFunction> hash_fn(af.make_hash_function(hash_name)); return hash_fn->process(content); } @@ -51,10 +51,11 @@ std::vector<X509_Certificate> get_cert(BER_Decoder& signer_info, iands.decode(issuer); iands.decode(serial); - found = store.get_certs(IandS_Match(issuer, BigInt::encode(serial))); + found = store.get_certs( + X509_Store_Search::by_issuer_and_serial(issuer, serial)); } else if(id.type_tag == 0 && id.class_tag == CONSTRUCTED) - found = store.get_certs(SKID_Match(id.value)); + found = store.get_certs(X509_Store_Search::by_skid(id.value)); else throw Decoding_Error("CMS: Unknown tag for cert identifier"); |