From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: linux-integrity@vger.kernel.org
Cc: Mimi Zohar <zohar@linux.vnet.ibm.com>
Subject: Re: [PATCH] ima-evm-utils: Add backward compatible support for openssl 1.1
Date: Sun, 28 Jan 2018 09:39:17 -0800 [thread overview]
Message-ID: <1517161157.3082.41.camel@HansenPartnership.com> (raw)
In-Reply-To: <1517157665.3082.17.camel@HansenPartnership.com>
On Sun, 2018-01-28 at 08:41 -0800, James Bottomley wrote:
> Openssl 1.1 is really annoying in that it made certain objects opaque
> and added accessors for the necessary components, but these accessors
> often don't exist in 1.0 and before, so there's no way to create
> clean code that will compile with both 1.0 and 1.1; instead you have
> to compiled with both code bases to make sure everything is working.
>
> The other problem is that since the structures are opaque, their size
> isn't known, so having a structure declared as a variable is no
> longer possible.
>
> This change switches all uses of EVP_MD_CTX to be pointers
> initialised with the correct EVP_MD_CTX_new() (not available in 1.0),
> does the same for HMAC_CTX, and uses the 1.1 only primitive
> RSA_get0_key() to extract the public modulus and exponent from an RSA
> key.
>
> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com
> >
> Tested-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
OK, let me try that again without the line breaks.
James
next prev parent reply other threads:[~2018-01-28 17:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-28 16:41 [PATCH] ima-evm-utils: Add backward compatible support for openssl 1.1 James Bottomley
2018-01-28 17:39 ` James Bottomley [this message]
2018-01-28 17:52 ` Mimi Zohar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1517161157.3082.41.camel@HansenPartnership.com \
--to=james.bottomley@hansenpartnership.com \
--cc=linux-integrity@vger.kernel.org \
--cc=zohar@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox