The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/3140
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Caio B. Silva <caiobo...@gmail.com>
From b138bfcfd16c96c27fe7a535b093c34278b1506f Mon Sep 17 00:00:00 2001 From: "Caio B. Silva" <caiobo...@gmail.com> Date: Mon, 16 Sep 2019 14:22:33 -0300 Subject: [PATCH] Ensures OpenSSL compatibility with older versions of EVP API. Signed-off-by: Caio B. Silva <caiobo...@gmail.com> --- src/lxc/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/utils.c b/src/lxc/utils.c index bf4a9c2cbd..1fe05d3b94 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -344,11 +344,11 @@ static int do_sha1_hash(const char *buf, int buflen, unsigned char *md_value, in return -1; } - mdctx = EVP_MD_CTX_new(); + mdctx = EVP_MD_CTX_create(); EVP_DigestInit_ex(mdctx, md, NULL); EVP_DigestUpdate(mdctx, buf, buflen); EVP_DigestFinal_ex(mdctx, md_value, md_len); - EVP_MD_CTX_free(mdctx); + EVP_MD_CTX_destroy(mdctx); return 0; }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel