On Tue, Jun 10, 2025 at 09:20:44PM +0530, Sudhakar wrote:
> From: Daniel Axtens <d...@axtens.net>
>
> This code allows us to parse ASN1 node and allocating memory to store it.
> It will work for anything where the size libtasn1 returns is right:
>  - Integers
>  - Octet strings
>  - DER encoding of other structures
> It will _not_ work for things where libtasn1 size requires adjustment:
>  - Strings that require an extra NULL byte at the end
>  - Bit strings because libtasn1 returns the length in bits, not bytes.
> If the function returns a non-NULL value, the caller must free it.
>
> Signed-off-by: Javier Martinez Canillas <javi...@redhat.com> # EKU support
> Reported-by: Michal Suchanek <msucha...@suse.com> # key usage issue
> Signed-off-by: Daniel Axtens <d...@axtens.net>
> Signed-off-by: Sudhakar Kuppusamy <sudha...@linux.ibm.com>
> Reviewed-by: Stefan Berger <stef...@linux.ibm.com>
> Reviewed-by: Avnish Chouhan <avn...@linux.ibm.com>

Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com>

Daniel

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to