Re: [openssl-users] EVP_CIPHER_CTX array not compiling

2017-04-23 Thread Jeffrey Walton
On Sun, Apr 23, 2017 at 9:36 AM, Salz, Rich via openssl-users wrote: >>#define OTEXT_AES_KEY_INIT(ctx, buf) { \ >>EVP_CIPHER_CTX_init(ctx); \ >>EVP_EncryptInit_ex(ctx, EVP_aes_128_ecb(), NULL, buf, ZERO_IV); \ >>} > > Most of the datatypes are now opaque. This means you ca

Re: [openssl-users] EVP_CIPHER_CTX array not compiling

2017-04-23 Thread Salz, Rich via openssl-users
>#define OTEXT_AES_KEY_INIT(ctx, buf) { \ >        EVP_CIPHER_CTX_init(ctx); \ >        EVP_EncryptInit_ex(ctx, EVP_aes_128_ecb(), NULL, buf, ZERO_IV); \ >        } Most of the datatypes are now opaque. This means you can't have an EVP_CIPHER_CTX object, but instead a pointer to it. Don't call

[openssl-users] EVP_CIPHER_CTX array not compiling

2017-04-23 Thread Lior Koskas
​Hi, I have a problem with converting my C++ library into OpenSSL v1.1.0. I'm using CentOS 7 and OpenSSL v1.1.0. When I'm trying to use EVP_CIPHER_CTX as an array, my code does not compile. I understand that this is caused by making the structures opaque. The problem is this line OTEXT_AES_KEY_