Import a very trimmed-down set of libtasn1 files: curl -L -O https://ftp.gnu.org/gnu/libtasn1/libtasn1-4.19.0.tar.gz tar xvzf libtasn1-4.19.0.tar.gz rm -rf grub-core/lib/libtasn1 mkdir -p grub-core/lib/libtasn1/lib mkdir -p grub-core/lib/libtasn1/tests cp libtasn1-4.19.0/{README.md,COPYING} grub-core/lib/libtasn1 cp libtasn1-4.19.0/lib/{coding.c,decoding.c,element.c,element.h,errors.c,gstr.c,gstr.h,int.h,parser_aux.c,parser_aux.h,structure.c,structure.h} grub-core/libtasn1/lib cp libtasn1-4.19.0/lib/includes/libtasn1.h grub-core/lib/libtasn1 cp libtasn1-4.19.0/tests/{CVE-2018-1000654-1_asn1_tab.h,CVE-2018-1000654-2_asn1_tab.h,CVE-2018-1000654.c,object-id-decoding.c,object-id-encoding.c,octet-string.c,reproducers.c,Test_overflow.c,Test_simple.c,Test_strings.c} grub-core/lib/libtasn1/tests rm -rf libtasn1-4.19.0* Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Libtasn1 README -- Introduction information
This is GNU Libtasn1, a small ASN.1 library.
The C library (libtasn1.*) is licensed under the GNU Lesser General Public License version 2.1 or later. See the file COPYING.LIB.
The command line tool, self tests, examples, and other auxilliary files, are licensed under the GNU General Public License version 3.0 or later. See the file COPYING.
Building the library
We require several tools to build the software, including:
- Make
- Automake (use 1.11.3 or later)
- Autoconf
- Libtool
- Texinfo
- help2man
- Tar
- Gzip
- bison
- Texlive & epsf (for PDF manual)
- GTK-DOC (for API manual)
- Git
- libabigail (for abi comparison in make dist)
- Valgrind (optional)
The required software is typically distributed with your operating system, and the instructions for installing them differ. Here are some hints:
Debian/Ubuntu:
sudo apt-get install make git autoconf automake libtool bison
sudo apt-get install texinfo help2man gtk-doc-tools valgrind abigail-tools
PDF manual - Debian <= stretch:
sudo apt-get install texlive-generic-recommended texlive texlive-extra-utils
PDF manual - Debian >= buster:
sudo apt-get install texlive-plain-generic texlive texlive-extra-utils
The next step is to run autoreconf, ./configure, etc:
$ ./bootstrap
Then build the project normally:
$ ./configure
$ make check
Happy hacking!
Manual
The manual is in the doc/ directory of the release.
You can also browse the manual online at:
- https://www.gnu.org/software/libtasn1/manual/
- https://gnutls.gitlab.io/libtasn1/manual/
- https://gnutls.gitlab.io/libtasn1/manual/libtasn1.html
- https://gnutls.gitlab.io/libtasn1/manual/libtasn1.pdf
- https://gnutls.gitlab.io/libtasn1/reference/
- https://gnutls.gitlab.io/libtasn1/reference/libtasn1.pdf
Code coverage report
The coverage report is at:
Issue trackers
Homepage
The project homepage at the gnu site is at: