Fix OpenSSL 1.1 issues 72/87372/3
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 7 Sep 2016 14:21:18 +0000 (16:21 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Fri, 9 Sep 2016 11:04:53 +0000 (04:04 -0700)
commit00563004155bc8f11a51ee364d5f39f24d291d42
tree9ffec3648121a1bb3d3c447b7259f82e7daa4cfe
parent2eb853d7299b0b0fa4162ab4a03c1de890b97e53
Fix OpenSSL 1.1 issues

- 3DES CFB1 implementation is fixed but function that checks buffer overlapping
  ignores the input data length unit resulting in an error. It's impossible to
  create a code that works with both version so #if was used.
- OpenSSL 1.1's EVP_CIPHER_CTX_flags() gets flags from EVP_CIPHER instead of
  EVP_CIPHER_CTX. Call replaced with EVP_CIPHER_CTX_test_flags().

Change-Id: Ic43fd9e02b982bc767259ad3a818314a6e319eb7
src/encrypt.c