diff options
author | lloyd <[email protected]> | 2010-09-23 21:12:57 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-23 21:12:57 +0000 |
commit | 3ee42dc0cafad7a398ed7fd2b9bdb4ab7f771873 (patch) | |
tree | fd2f54e5bc070887005246af4878605b1d6929b9 /src/engine/openssl | |
parent | b5caa368ed9ed12d0114ab9bd76ff04d1a57c13a (diff) |
Fix OpenSSL engine WRT memory vector changes, append is no more
Diffstat (limited to 'src/engine/openssl')
-rw-r--r-- | src/engine/openssl/ossl_bc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/openssl/ossl_bc.cpp b/src/engine/openssl/ossl_bc.cpp index 560ca66a8..911d6088d 100644 --- a/src/engine/openssl/ossl_bc.cpp +++ b/src/engine/openssl/ossl_bc.cpp @@ -115,7 +115,9 @@ void EVP_BlockCipher::key_schedule(const byte key[], u32bit length) SecureVector<byte> full_key(key, length); if(cipher_name == "TripleDES" && length == 16) - full_key.append(key, 8); + { + full_key += std::make_pair(key, 8); + } else if(EVP_CIPHER_CTX_set_key_length(&encrypt, length) == 0 || EVP_CIPHER_CTX_set_key_length(&decrypt, length) == 0) |