In message: Re: [linux-yocto][linux-ycoto 
v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-soc & 
v5.15/standard/nxp-sdk-5.15/nxp-soc][PATCH 1/1] cert host tools: Stop 
complaining about deprecated OpenSSL functions
on 17/08/2022 He Zhe wrote:

> Hi Bruce,
> 
> Seems all arches needs this patch so that it can save us a bunch of useless 
> warnings in do_compile.
> It was created since 5.19 and hasn't been put on upstream stable tree.

Agreed. It looks safe enough to me as well.

I've merged this to all v5.15 branches.

Bruce

> 
> Thanks,
> Zhe
> 
> 
> On 7/14/22 08:13, Xiaolei Wang wrote:
> > From: Linus Torvalds <[email protected]>
> >
> > commit 6bfb56e93bcef41859c2d5ab234ffd80b691be35 upstream.
> >
> > OpenSSL 3.0 deprecated the OpenSSL's ENGINE API.  That is as may be, but
> > the kernel build host tools still use it.  Disable the warning about
> > deprecated declarations until somebody who cares fixes it.
> >
> > Signed-off-by: Linus Torvalds <[email protected]>
> > [Xiaolei: The cert/extract-cert.c is adjusted to scripts/extract-cert.c in 
> > order to apply to v5.15 kernel.]
> > Signed-off-by: Xiaolei Wang <[email protected]>
> > ---
> >  scripts/extract-cert.c | 7 +++++++
> >  scripts/sign-file.c    | 7 +++++++
> >  2 files changed, 14 insertions(+)
> >
> > diff --git a/scripts/extract-cert.c b/scripts/extract-cert.c
> > index 3bc48c726c41..79ecbbfe37cd 100644
> > --- a/scripts/extract-cert.c
> > +++ b/scripts/extract-cert.c
> > @@ -23,6 +23,13 @@
> >  #include <openssl/err.h>
> >  #include <openssl/engine.h>
> >  
> > +/*
> > + * OpenSSL 3.0 deprecates the OpenSSL's ENGINE API.
> > + *
> > + * Remove this if/when that API is no longer used
> > + */
> > +#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
> > +
> >  #define PKEY_ID_PKCS7 2
> >  
> >  static __attribute__((noreturn))
> > diff --git a/scripts/sign-file.c b/scripts/sign-file.c
> > index fbd34b8e8f57..7434e9ea926e 100644
> > --- a/scripts/sign-file.c
> > +++ b/scripts/sign-file.c
> > @@ -29,6 +29,13 @@
> >  #include <openssl/err.h>
> >  #include <openssl/engine.h>
> >  
> > +/*
> > + * OpenSSL 3.0 deprecates the OpenSSL's ENGINE API.
> > + *
> > + * Remove this if/when that API is no longer used
> > + */
> > +#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
> > +
> >  /*
> >   * Use CMS if we have openssl-1.0.0 or newer available - otherwise we have 
> > to
> >   * assume that it's not available and its header file is missing and that 
> > we
> >
> > 
> >
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11571): 
https://lists.yoctoproject.org/g/linux-yocto/message/11571
Mute This Topic: https://lists.yoctoproject.org/mt/92370160/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to