svn commit: r482164 - in head/editors: openoffice-4 openoffice-4/files openoffice-devel openoffice-devel/files
Jan Beich
jbeich at FreeBSD.org
Mon Oct 15 17:51:00 UTC 2018
Don Lewis <truckman at FreeBSD.org> writes:
> ++ EVP_CIPHER_CTX *pAes_ctx;
> ++#if OPENSSL_VERSION_NUMBER < 0x10100000L
> + EVP_CIPHER_CTX aes_ctx;
> + EVP_CIPHER_CTX_init( &aes_ctx );
> +- EVP_DecryptInit_ex( &aes_ctx, EVP_aes_128_ecb(), 0, pnKey, 0 );
> +- EVP_CIPHER_CTX_set_padding( &aes_ctx, 0 );
> ++ pAes_ctx = &aes_ctx;
> ++#else
> ++ pAes_ctx = EVP_CIPHER_CTX_new();
> ++#endif
> ++ EVP_DecryptInit_ex( pAes_ctx, EVP_aes_128_ecb(), 0, pnKey, 0 );
> ++ EVP_CIPHER_CTX_set_padding( pAes_ctx, 0 );
Why conditional? Also, LibreSSL still uses non-opaque structs.
More information about the svn-ports-all
mailing list