]> git.ipfire.org Git - thirdparty/grub.git/commit
libtasn1: Disable code not needed in GRUB
authorGary Lin <glin@suse.com>
Fri, 15 Nov 2024 07:34:31 +0000 (15:34 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 28 Nov 2024 20:50:53 +0000 (21:50 +0100)
commitfa498af7b999957da990f5216ff3cee3326dfbdf
tree839fd080e231655dc10f04ec00d7fe6baf49576b
parent9a26abbc36894ea9e9e5880afa30943770d60e8f
libtasn1: Disable code not needed in GRUB

We don't expect to be able to write ASN.1, only read it,
so we can disable some code.

Do that with #if 0/#endif, rather than deletion. This means
that the difference between upstream and GRUB is smaller,
which should make updating libtasn1 easier in the future.

With these exclusions we also avoid the need for minmax.h,
which is convenient because it means we don't have to
import it from gnulib.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
grub-core/lib/libtasn1-patches/0001-libtasn1-disable-code-not-needed-in-grub.patch [new file with mode: 0644]