diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-15 21:21:07 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-17 00:42:54 +0200 |
| commit | 5f4a41f20a189ec2863760cd1f5117435277f40f (patch) | |
| tree | 36d1814cfe9071150c3b4384d4444f5fa28da153 /src/lib | |
| parent | e9cca90a162e3e4b1db4a5e5188831beaa69d44e (diff) | |
Remove some unnecessary using statements.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config.cc | 1 | ||||
| -rw-r--r-- | src/lib/crypto.cc | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index 7f32320df..7364a122c 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -62,7 +62,6 @@ using boost::shared_ptr; using boost::optional; using boost::dynamic_pointer_cast; using boost::algorithm::trim; -using boost::shared_array; using dcp::raw_convert; Config* Config::_instance = 0; diff --git a/src/lib/crypto.cc b/src/lib/crypto.cc index b02a3d34c..c67fc27fa 100644 --- a/src/lib/crypto.cc +++ b/src/lib/crypto.cc @@ -29,7 +29,6 @@ #include <boost/scoped_array.hpp> using std::string; -using boost::shared_array; using namespace dcpomatic; /** The cipher that this code uses */ @@ -43,7 +42,7 @@ dcpomatic::random_iv () RAND_bytes (iv.data().get(), iv.size()); return iv; } - + dcp::Data dcpomatic::encrypt (string plaintext, dcp::Data key, dcp::Data iv) { @@ -101,7 +100,7 @@ dcpomatic::decrypt (dcp::Data ciphertext, dcp::Data key, dcp::Data iv) } int plaintext_len = len; - + r = EVP_DecryptFinal_ex (ctx, plaintext.data().get() + len, &len); if (r != 1) { throw CryptoError ("could not finish decryption"); |
