svn commit: r481881 - in head/archivers/libunrar5: . files
Alexey Dokuchaev
danfe at freebsd.org
Sun Oct 28 10:48:12 UTC 2018
On Fri, Oct 12, 2018 at 07:35:47AM +0000, Jason E. Hale wrote:
> New Revision: 481881
> URL: https://svnweb.freebsd.org/changeset/ports/481881
>
> Log:
> Fix build with OpenSSL 1.1.x
>
> Reported by: pkg-fallout (head)
>
> ...
> ++#if OPENSSL_VERSION_NUMBER < 0x10100000L
> + EVP_CIPHER_CTX_init(&ctx);
> + EVP_CipherInit_ex(&ctx, cipher, NULL, key, initVector, Encrypt);
> + EVP_CIPHER_CTX_set_padding(&ctx, 0);
Shouldn't it read 0x10100005L instead?
> class Rijndael
> {
> private:
> +#ifdef OPENSSL_AES
> ++#if OPENSSL_VERSION_NUMBER < 0x10100000L
> + EVP_CIPHER_CTX ctx;
> ++#else
> ++ EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new();
> ++#endif
This looks fishy; I think EVP_CIPHER_CTX_new() should be called in ctor and
EVP_CIPHER_CTX_free() in dtor (the latter is missing altogether).
./danfe
More information about the svn-ports-all
mailing list