Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2018 19:50:56 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Don Lewis <truckman@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r482164 - in head/editors: openoffice-4 openoffice-4/files openoffice-devel openoffice-devel/files
Message-ID:  <bm7v-xfnj-wny@FreeBSD.org>
In-Reply-To: <201810151727.w9FHRg1Z083071@repo.freebsd.org> (Don Lewis's message of "Mon, 15 Oct 2018 17:27:42 %2B0000 (UTC)")
References:  <201810151727.w9FHRg1Z083071@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Don Lewis <truckman@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bm7v-xfnj-wny>