diff options
author | lloyd <[email protected]> | 2010-07-09 20:28:29 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-07-09 20:28:29 +0000 |
commit | 91137b44613c7ed5a12a1c64a6fd3e119828c43c (patch) | |
tree | 60d3728bc11356dc60b37859ac34f1d61138e82d /src/cms/cms_ealg.cpp | |
parent | a2775c5bd9f6979da3e1981cdb1dec250e274fea (diff) | |
parent | 54bac11c5d4e051f996951feb6a037b1de001329 (diff) |
propagate from branch 'net.randombit.botan' (head 161b5c0300b72baa746f101fda1e2b4a7c71818c)
to branch 'net.randombit.botan.c++0x' (head 1fc3875bb8daf4ad0e90ba66db72642203cb9984)
Diffstat (limited to 'src/cms/cms_ealg.cpp')
-rw-r--r-- | src/cms/cms_ealg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cms/cms_ealg.cpp b/src/cms/cms_ealg.cpp index 3ddf8a39e..b910b89d2 100644 --- a/src/cms/cms_ealg.cpp +++ b/src/cms/cms_ealg.cpp @@ -58,7 +58,7 @@ SecureVector<byte> hash_of(const SecureVector<byte>& content, const std::string& hash_name) { 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); } @@ -97,7 +97,7 @@ void CMS_Encoder::encrypt(RandomNumberGenerator& rng, { const std::string cipher = choose_algo(user_cipher, "TripleDES"); - std::auto_ptr<Public_Key> key(to.subject_public_key()); + std::unique_ptr<Public_Key> key(to.subject_public_key()); const std::string algo = key->algo_name(); Key_Constraints constraints = to.constraints(); |