Compare commits
No commits in common. "c8" and "c9s" have entirely different histories.
|
@ -1,2 +1,45 @@
|
||||||
SOURCES/gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
|
libtasn1-2.4.tar.gz
|
||||||
SOURCES/libtasn1-4.13.tar.gz
|
libtasn1-2.7.tar.gz
|
||||||
|
/libtasn1-2.12.tar.gz
|
||||||
|
/libtasn1-2.13.tar.gz
|
||||||
|
/libtasn1-2.14.tar.gz
|
||||||
|
/libtasn1-3.2.tar.gz
|
||||||
|
/libtasn1-3.2.tar.gz.sig
|
||||||
|
/libtasn1-3.3.tar.gz
|
||||||
|
/libtasn1-3.3.tar.gz.sig
|
||||||
|
/libtasn1-3.4.tar.gz
|
||||||
|
/libtasn1-3.4.tar.gz.sig
|
||||||
|
/libtasn1-3.5.tar.gz
|
||||||
|
/libtasn1-3.5.tar.gz.sig
|
||||||
|
/libtasn1-3.6.tar.gz
|
||||||
|
/libtasn1-3.6.tar.gz.sig
|
||||||
|
/libtasn1-4.0.tar.gz
|
||||||
|
/libtasn1-4.0.tar.gz.sig
|
||||||
|
/libtasn1-4.1.tar.gz.sig
|
||||||
|
/libtasn1-4.1.tar.gz
|
||||||
|
/libtasn1-4.2.tar.gz.sig
|
||||||
|
/libtasn1-4.2.tar.gz
|
||||||
|
/libtasn1-4.3.tar.gz.sig
|
||||||
|
/libtasn1-4.3.tar.gz
|
||||||
|
/libtasn1-4.4.tar.gz.sig
|
||||||
|
/libtasn1-4.4.tar.gz
|
||||||
|
/libtasn1-4.5.tar.gz.sig
|
||||||
|
/libtasn1-4.5.tar.gz
|
||||||
|
/libtasn1-4.7.tar.gz
|
||||||
|
/libtasn1-4.7.tar.gz.sig
|
||||||
|
/libtasn1-4.8.tar.gz.sig
|
||||||
|
/libtasn1-4.8.tar.gz
|
||||||
|
/libtasn1-4.9.tar.gz.sig
|
||||||
|
/libtasn1-4.9.tar.gz
|
||||||
|
/libtasn1-4.10.tar.gz
|
||||||
|
/libtasn1-4.10.tar.gz.sig
|
||||||
|
/libtasn1-4.12.tar.gz.sig
|
||||||
|
/libtasn1-4.12.tar.gz
|
||||||
|
/libtasn1-4.13.tar.gz.sig
|
||||||
|
/libtasn1-4.13.tar.gz
|
||||||
|
/libtasn1-4.14.tar.gz
|
||||||
|
/libtasn1-4.14.tar.gz.sig
|
||||||
|
/libtasn1-4.15.0.tar.gz
|
||||||
|
/libtasn1-4.15.0.tar.gz.sig
|
||||||
|
/libtasn1-4.16.0.tar.gz
|
||||||
|
/libtasn1-4.16.0.tar.gz.sig
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
a5442dfcf7f1b60f55f0e270e014a57710e75069 SOURCES/gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
|
f4f1fc301c0835389d9db7754815e48f4f57937a libtasn1-4.16.0.tar.gz
|
||||||
a84afb4cd8187c1fa5901c6bc1cf1486eea66635 SOURCES/libtasn1-4.13.tar.gz
|
4533de66d82febd4dd3d15ebcd36373fdc167fdf libtasn1-4.16.0.tar.gz.sig
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
MAKEFILE_COMMON = $(HOME)/.fedora/common.mk
|
||||||
|
-include $(MAKEFILE_COMMON)
|
|
@ -1,11 +0,0 @@
|
||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iQEzBAABCAAdFiEEqBLL/fzcTQvnoJMSnV6q9pATuEIFAlpeOtEACgkQnV6q9pAT
|
|
||||||
uEIWNAf/YnmT4u3ShAfhUKE4sIap+8ivG5AxCPw1Rwgwc8qcS2VKOVeiwYTWmt9t
|
|
||||||
g5CDrVu27DTPbCkdS7sTKrHQT3Pjc2DRJWHJbaHr5J717sNp50XWWXjNyZGrmyN4
|
|
||||||
ais1d7no0GMXRsR6SUOFi+M52Q/vWhhYz4gaDAV9XSOqbJ6MPiw4BhjqyVSQ4lwD
|
|
||||||
Lfn4upk+1JFjzCpVft7iXrx1P4RXvFJC1sBYpUJAbdm9y0rO5jGiY7EHokDNq1rT
|
|
||||||
71hBWUclo37GsJnF65CRD1Mb5/wdZxm2wvEL/SFlHKqnY/uB3y4u7il91fi9zrwY
|
|
||||||
mDmVimu7E563pqum16000pybZIEmFw==
|
|
||||||
=LTAv
|
|
||||||
-----END PGP SIGNATURE-----
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||||
|
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
||||||
|
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tedude.validation}
|
Binary file not shown.
|
@ -0,0 +1,10 @@
|
||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
Version: GnuPG v1.4.11 (GNU/Linux)
|
||||||
|
|
||||||
|
iO4EAAECADgFAlBgV0YxFIAAAAAAFQATcGthLWFkZHJlc3NAZ251cGcub3Jnc2lt
|
||||||
|
b25Aam9zZWZzc29uLm9yZwAKCRDtoh6UtWVxb03gBP9Tci1rntihNtZx4wAEvkUL
|
||||||
|
25vUQlUpnYWZZUpmMwHXa9U73MbUWEEd6N/thIUnlxuWmdfh2tTkaPfxIaXN7S/H
|
||||||
|
C3rMtqmi5eGr4CNqAwl0gxKBRFjaK2tW25k/6ervoo2jEeEIPGVAKEgW49qmfl9o
|
||||||
|
19AwICHcqMP5qVZp9dqkuiJxqYp5CducZqz3cTmYXyD6B7Afw3/zfrdlCN4379gA
|
||||||
|
=TjUp
|
||||||
|
-----END PGP SIGNATURE-----
|
|
@ -0,0 +1,70 @@
|
||||||
|
diff -up libtasn1-4.16.0/lib/coding.c.coverity libtasn1-4.16.0/lib/coding.c
|
||||||
|
--- libtasn1-4.16.0/lib/coding.c.coverity 2020-02-01 23:22:04.000000000 +0100
|
||||||
|
+++ libtasn1-4.16.0/lib/coding.c 2021-04-13 17:34:34.101819976 +0200
|
||||||
|
@@ -1103,7 +1103,10 @@ asn1_der_coding (asn1_node_const element
|
||||||
|
max_len = *len;
|
||||||
|
|
||||||
|
if (der == NULL && max_len > 0)
|
||||||
|
- return ASN1_VALUE_NOT_VALID;
|
||||||
|
+ {
|
||||||
|
+ err = ASN1_VALUE_NOT_VALID;
|
||||||
|
+ goto error;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
counter = 0;
|
||||||
|
move = DOWN;
|
||||||
|
diff -up libtasn1-4.16.0/lib/element.c.coverity libtasn1-4.16.0/lib/element.c
|
||||||
|
--- libtasn1-4.16.0/lib/element.c.coverity 2020-01-03 23:20:17.000000000 +0100
|
||||||
|
+++ libtasn1-4.16.0/lib/element.c 2021-04-13 18:05:21.054820798 +0200
|
||||||
|
@@ -142,7 +142,7 @@ int
|
||||||
|
_asn1_append_sequence_set (asn1_node node, struct node_tail_cache_st *pcache)
|
||||||
|
{
|
||||||
|
asn1_node p, p2;
|
||||||
|
- char temp[LTOSTR_MAX_SIZE];
|
||||||
|
+ char temp[LTOSTR_MAX_SIZE+1];
|
||||||
|
long n;
|
||||||
|
|
||||||
|
if (!node || !(node->down))
|
||||||
|
@@ -183,7 +183,12 @@ _asn1_append_sequence_set (asn1_node nod
|
||||||
|
n = strtol (p->name + 1, NULL, 0);
|
||||||
|
n++;
|
||||||
|
temp[0] = '?';
|
||||||
|
+ if (n < 0)
|
||||||
|
+ return ASN1_GENERIC_ERROR;
|
||||||
|
+ /* assuming non-negative n, we have enough space in buffer */
|
||||||
|
_asn1_ltostr (n, temp + 1);
|
||||||
|
+ if (strlen(temp) >= LTOSTR_MAX_SIZE)
|
||||||
|
+ return ASN1_GENERIC_ERROR;
|
||||||
|
}
|
||||||
|
_asn1_set_name (p2, temp);
|
||||||
|
/* p2->type |= CONST_OPTION; */
|
||||||
|
diff -up libtasn1-4.16.0/lib/int.h.coverity libtasn1-4.16.0/lib/int.h
|
||||||
|
--- libtasn1-4.16.0/lib/int.h.coverity 2020-01-03 23:20:17.000000000 +0100
|
||||||
|
+++ libtasn1-4.16.0/lib/int.h 2021-04-13 17:34:34.101819976 +0200
|
||||||
|
@@ -213,6 +213,7 @@ void *_asn1_realloc(void *ptr, size_t si
|
||||||
|
ret = realloc(ptr, size);
|
||||||
|
if (ret == NULL)
|
||||||
|
{
|
||||||
|
+ /* cppcheck-suppress doubleFree */
|
||||||
|
free(ptr);
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
diff -up libtasn1-4.16.0/src/asn1Coding.c.coverity libtasn1-4.16.0/src/asn1Coding.c
|
||||||
|
--- libtasn1-4.16.0/src/asn1Coding.c.coverity 2019-07-19 19:55:08.000000000 +0200
|
||||||
|
+++ libtasn1-4.16.0/src/asn1Coding.c 2021-04-13 17:34:34.102819982 +0200
|
||||||
|
@@ -72,13 +72,13 @@ readAssignment (FILE * file, char *varNa
|
||||||
|
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
- ret = fscanf (file, "%s", varName);
|
||||||
|
+ ret = fscanf (file, "%1023s", varName);
|
||||||
|
if (ret == EOF)
|
||||||
|
return ASSIGNMENT_EOF;
|
||||||
|
if (!strcmp (varName, "''"))
|
||||||
|
varName[0] = 0;
|
||||||
|
|
||||||
|
- ret = fscanf (file, "%s", value);
|
||||||
|
+ ret = fscanf (file, "%1023s", value);
|
||||||
|
if (ret == EOF)
|
||||||
|
return ASSIGNMENT_ERROR;
|
||||||
|
|
|
@ -1,40 +1,40 @@
|
||||||
Summary: The ASN.1 library used in GNUTLS
|
Summary: The ASN.1 library used in GNUTLS
|
||||||
Name: libtasn1
|
Name: libtasn1
|
||||||
Version: 4.13
|
Version: 4.16.0
|
||||||
Release: 4%{?dist}
|
Release: 8%{?dist}
|
||||||
|
|
||||||
# The libtasn1 library is LGPLv2+, utilities are GPLv3+
|
# The libtasn1 library is LGPLv2+, utilities are GPLv3+
|
||||||
License: GPLv3+ and LGPLv2+
|
License: GPLv3+ and LGPLv2+
|
||||||
Group: System Environment/Libraries
|
|
||||||
URL: http://www.gnu.org/software/libtasn1/
|
URL: http://www.gnu.org/software/libtasn1/
|
||||||
Source0: http://ftp.gnu.org/gnu/libtasn1/%name-%version.tar.gz
|
Source0: http://ftp.gnu.org/gnu/libtasn1/%name-%version.tar.gz
|
||||||
Source1: http://ftp.gnu.org/gnu/libtasn1/%name-%version.tar.gz.sig
|
Source1: http://ftp.gnu.org/gnu/libtasn1/%name-%version.tar.gz.sig
|
||||||
Source2: gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
|
Source2: gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
|
||||||
Patch1: libtasn1-3.4-rpath.patch
|
Patch1: libtasn1-3.4-rpath.patch
|
||||||
|
Patch200: libtasn1-4.16-coverity.patch
|
||||||
Patch300: libtasn1-4.19-CVE-2021-46848.patch
|
Patch300: libtasn1-4.19-CVE-2021-46848.patch
|
||||||
|
|
||||||
|
BuildRequires: gnupg2
|
||||||
|
BuildRequires: gcc
|
||||||
BuildRequires: bison, pkgconfig, help2man
|
BuildRequires: bison, pkgconfig, help2man
|
||||||
BuildRequires: autoconf, automake, libtool
|
BuildRequires: autoconf, automake, libtool
|
||||||
%ifarch %{valgrind_arches}
|
|
||||||
BuildRequires: valgrind-devel
|
BuildRequires: valgrind-devel
|
||||||
%endif
|
BuildRequires: make
|
||||||
# Wildcard bundling exception https://fedorahosted.org/fpc/ticket/174
|
# Wildcard bundling exception https://fedorahosted.org/fpc/ticket/174
|
||||||
Provides: bundled(gnulib) = 20130324
|
Provides: bundled(gnulib) = 20130324
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Files for development of applications which will use libtasn1
|
Summary: Files for development of applications which will use libtasn1
|
||||||
Group: Development/Libraries
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
Requires: %name = %version-%release
|
Requires: %name = %version-%release
|
||||||
|
Requires: %{name}-tools = %{version}-%{release}
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
Requires(postun): /sbin/install-info
|
|
||||||
|
|
||||||
|
|
||||||
%package tools
|
%package tools
|
||||||
Summary: Some ASN.1 tools
|
Summary: Some ASN.1 tools
|
||||||
Group: Applications/Text
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Requires: %name = %version-%release
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
@ -57,6 +57,7 @@ gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%patch1 -p1 -b .rpath
|
%patch1 -p1 -b .rpath
|
||||||
|
%patch200 -p1 -b .coverity
|
||||||
%patch300 -p1 -b .CVE-2021-46848
|
%patch300 -p1 -b .CVE-2021-46848
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
@ -65,11 +66,11 @@ autoreconf -v -f --install
|
||||||
# libtasn1 likes to regenerate docs
|
# libtasn1 likes to regenerate docs
|
||||||
touch doc/stamp_docs
|
touch doc/stamp_docs
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR="$RPM_BUILD_ROOT" install
|
%make_install
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT{%_libdir/*.la,%_infodir/dir}
|
rm -f $RPM_BUILD_ROOT{%_libdir/*.la,%_infodir/dir}
|
||||||
|
|
||||||
|
@ -77,23 +78,9 @@ rm -f $RPM_BUILD_ROOT{%_libdir/*.la,%_infodir/dir}
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
|
|
||||||
%post devel
|
|
||||||
test -f %_infodir/%name.info.gz && \
|
|
||||||
/sbin/install-info --info-dir=%_infodir %_infodir/%name.info || :
|
|
||||||
|
|
||||||
%preun devel
|
|
||||||
test "$1" = 0 -a -f %_infodir/%name.info.gz && \
|
|
||||||
/sbin/install-info --info-dir=%_infodir --delete %_infodir/%name.info || :
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
%license LICENSE doc/COPYING*
|
||||||
%license COPYING*
|
%doc AUTHORS NEWS README.md
|
||||||
%doc AUTHORS NEWS README THANKS
|
|
||||||
%{_libdir}/*.so.6*
|
%{_libdir}/*.so.6*
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
|
@ -110,11 +97,59 @@ test "$1" = 0 -a -f %_infodir/%name.info.gz && \
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Nov 30 2022 Simo Sorce <simo@redhat.com> - 4.13-4
|
* Wed Nov 30 2022 Simo Sorce <simo@redhat.com> - 4.16.0-9
|
||||||
- Resolves: rhbz#2140600
|
- Resolves: rhbz#2140602
|
||||||
|
|
||||||
* Fri Aug 3 2018 Florian Weimer <fweimer@redhat.com> - 4.13-3
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.16.0-7
|
||||||
- Honor %%{valgrind_arches}
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
|
Related: rhbz#1991688
|
||||||
|
|
||||||
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.16.0-6
|
||||||
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
* Mon Apr 12 2021 Dmitry Belyavskiy <dbelyavs@redhat.com> - 4.16.0-5
|
||||||
|
- Coverity-related fixes (#1938797)
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.16.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.16.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 4.16.0-2
|
||||||
|
- Use make macros
|
||||||
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||||
|
|
||||||
|
* Sun Feb 02 2020 Nikos Mavrogiannopoulos <nmav@redhat.com> - 4.16.0-1
|
||||||
|
- Update to 4.14 (#1621973)
|
||||||
|
|
||||||
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Nov 21 2019 Simo Sorce <simo@redhat.com> - 4.15.0-1
|
||||||
|
- Update to 4.15.0 (#1775065)
|
||||||
|
|
||||||
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.14-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 22 2019 Nikos Mavrogiannopoulos <nmav@redhat.com> - 4.14-1
|
||||||
|
- Update to 4.14 (#1621973)
|
||||||
|
|
||||||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.13-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Oct 29 2018 James Antill <james.antill@redhat.com> - 4.13-6
|
||||||
|
- Remove ldconfig scriptlet, now done via. transfiletrigger in glibc.
|
||||||
|
|
||||||
|
* Mon Oct 22 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 4.13-5
|
||||||
|
- libtasn1-devel requires the tools subpackage; it is necessary for
|
||||||
|
development.
|
||||||
|
|
||||||
|
* Sat Jul 21 2018 Peter Robinson <pbrobinson@fedoraproject.org> 4.13-4
|
||||||
|
- Add missing gcc/gnupg2 deps, spec cleanups
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.13-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.13-2
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.13-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
@ -0,0 +1,2 @@
|
||||||
|
SHA512 (libtasn1-4.16.0.tar.gz) = b356249535d5d592f9b59de39d21e26dd0f3f00ea47c9cef292cdd878042ea41ecbb7c8d2f02ac5839f5210092fe92a25acd343260ddf644887b031b167c2e71
|
||||||
|
SHA512 (libtasn1-4.16.0.tar.gz.sig) = 53254c2ce61e9bb889fe00b43ef2130ab9f122c44832538e3f7b38cb75ada1656213cf5c8c85321078c6b98d325c46eff41ea64d1971d3183f2ec568a18f7ed2
|
|
@ -0,0 +1,64 @@
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Makefile of /CoreOS/libtasn1/Regression/libtasn1-doesn-t-handle-OIDs-which-have-elements
|
||||||
|
# Description: Test for libtasn1 doesn't handle OIDs which have elements
|
||||||
|
# Author: Hubert Kario <hkario@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# This copyrighted material is made available to anyone wishing
|
||||||
|
# to use, modify, copy, or redistribute it subject to the terms
|
||||||
|
# and conditions of the GNU General Public License version 2.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be
|
||||||
|
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE. See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public
|
||||||
|
# License along with this program; if not, write to the Free
|
||||||
|
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
# Boston, MA 02110-1301, USA.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export TEST=/CoreOS/libtasn1/Regression/libtasn1-doesn-t-handle-OIDs-which-have-elements
|
||||||
|
export TESTVERSION=1.0
|
||||||
|
|
||||||
|
BUILT_FILES=
|
||||||
|
|
||||||
|
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||||
|
|
||||||
|
.PHONY: all install download clean
|
||||||
|
|
||||||
|
run: $(FILES) build
|
||||||
|
./runtest.sh
|
||||||
|
|
||||||
|
build: $(BUILT_FILES)
|
||||||
|
test -x runtest.sh || chmod a+x runtest.sh
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *~ $(BUILT_FILES)
|
||||||
|
|
||||||
|
|
||||||
|
include /usr/share/rhts/lib/rhts-make.include
|
||||||
|
|
||||||
|
$(METADATA): Makefile
|
||||||
|
@echo "Owner: Hubert Kario <hkario@redhat.com>" > $(METADATA)
|
||||||
|
@echo "Name: $(TEST)" >> $(METADATA)
|
||||||
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||||
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||||
|
@echo "Description: Test for libtasn1 doesn't handle OIDs which have elements" >> $(METADATA)
|
||||||
|
@echo "Type: Regression" >> $(METADATA)
|
||||||
|
@echo "TestTime: 10m" >> $(METADATA)
|
||||||
|
@echo "RunFor: libtasn1" >> $(METADATA)
|
||||||
|
@echo "Requires: libtasn1 libtasn1-tools openssl" >> $(METADATA)
|
||||||
|
@echo "Priority: Normal" >> $(METADATA)
|
||||||
|
@echo "License: GPLv2" >> $(METADATA)
|
||||||
|
@echo "Confidential: no" >> $(METADATA)
|
||||||
|
@echo "Destructive: no" >> $(METADATA)
|
||||||
|
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
||||||
|
|
||||||
|
rhts-lint $(METADATA)
|
|
@ -0,0 +1,6 @@
|
||||||
|
PURPOSE of /CoreOS/libtasn1/Regression/libtasn1-doesn-t-handle-OIDs-which-have-elements
|
||||||
|
Description: Test for libtasn1 doesn't handle OIDs which have elements
|
||||||
|
Author: Hubert Kario <hkario@redhat.com>
|
||||||
|
Bug summary: libtasn1 doesn't handle OIDs which have elements of size which exceed 32-bits
|
||||||
|
|
||||||
|
Test that libtasn1 does handle OIDs which have elements of size which exceed 32-bits
|
|
@ -0,0 +1,71 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# runtest.sh of /CoreOS/libtasn1/Regression/libtasn1-doesn-t-handle-OIDs-which-have-elements
|
||||||
|
# Description: Test for libtasn1 doesn't handle OIDs which have elements
|
||||||
|
# Author: Hubert Kario <hkario@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# This copyrighted material is made available to anyone wishing
|
||||||
|
# to use, modify, copy, or redistribute it subject to the terms
|
||||||
|
# and conditions of the GNU General Public License version 2.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be
|
||||||
|
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE. See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public
|
||||||
|
# License along with this program; if not, write to the Free
|
||||||
|
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
# Boston, MA 02110-1301, USA.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
# Include Beaker environment
|
||||||
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
PACKAGE="libtasn1"
|
||||||
|
|
||||||
|
TOP_DIR="$(rpm --eval=%{_topdir})"
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
rlPhaseStartSetup
|
||||||
|
rlAssertRpm $PACKAGE
|
||||||
|
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||||
|
rlRun "pushd $TmpDir"
|
||||||
|
rlRun "echo 'PKIX1 { }
|
||||||
|
|
||||||
|
DEFINITIONS IMPLICIT TAGS ::=
|
||||||
|
|
||||||
|
BEGIN
|
||||||
|
|
||||||
|
Dss-Sig-Value ::= SEQUENCE {
|
||||||
|
r OBJECT IDENTIFIER,
|
||||||
|
s INTEGER
|
||||||
|
}
|
||||||
|
END' > pkix.asn"
|
||||||
|
rlRun "echo 'dp PKIX1.Dss-Sig-Value
|
||||||
|
r 1.3.6.1.4.1.2312.9.2.1461701120873.1.6
|
||||||
|
s 255' > assign.asn1"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartTest
|
||||||
|
rlRun -s "asn1Coding pkix.asn assign.asn1"
|
||||||
|
rlAssertGrep "1.3.6.1.4.1.2312.9.2.1461701120873.1.6" $rlRun_LOG
|
||||||
|
rlRun "rm $rlRun_LOG"
|
||||||
|
rlRun -s "openssl asn1parse -in assign.out -inform DER"
|
||||||
|
rlAssertGrep "1.3.6.1.4.1.2312.9.2.1461701120873.1.6" $rlRun_LOG
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartCleanup
|
||||||
|
rlRun "popd"
|
||||||
|
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalPrintText
|
||||||
|
rlJournalEnd
|
|
@ -0,0 +1,68 @@
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Makefile of /CoreOS/libtasn1/Sanity/smoke-test
|
||||||
|
# Description: Test calls upstream test suite.
|
||||||
|
# Author: Ondrej Moris <omoris@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010 Red Hat, Inc. All rights reserved.
|
||||||
|
#
|
||||||
|
# This copyrighted material is made available to anyone wishing
|
||||||
|
# to use, modify, copy, or redistribute it subject to the terms
|
||||||
|
# and conditions of the GNU General Public License version 2.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be
|
||||||
|
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE. See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public
|
||||||
|
# License along with this program; if not, write to the Free
|
||||||
|
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
# Boston, MA 02110-1301, USA.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
export TEST=/CoreOS/libtasn1/Sanity/smoke-test
|
||||||
|
export TESTVERSION=1.0
|
||||||
|
|
||||||
|
BUILT_FILES=
|
||||||
|
|
||||||
|
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||||
|
|
||||||
|
.PHONY: all install download clean
|
||||||
|
|
||||||
|
run: $(FILES) build
|
||||||
|
./runtest.sh
|
||||||
|
|
||||||
|
build: $(BUILT_FILES)
|
||||||
|
chmod a+x runtest.sh
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *~ $(BUILT_FILES)
|
||||||
|
|
||||||
|
|
||||||
|
include /usr/share/rhts/lib/rhts-make.include
|
||||||
|
|
||||||
|
$(METADATA): Makefile
|
||||||
|
@echo "Owner: Ondrej Moris <omoris@redhat.com>" > $(METADATA)
|
||||||
|
@echo "Name: $(TEST)" >> $(METADATA)
|
||||||
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||||
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||||
|
@echo "Description: Test calls upstream test suite." >> $(METADATA)
|
||||||
|
@echo "Type: Sanity" >> $(METADATA)
|
||||||
|
@echo "TestTime: 10m" >> $(METADATA)
|
||||||
|
@echo "RunFor: libtasn1" >> $(METADATA)
|
||||||
|
@echo "Requires: libtasn1" >> $(METADATA)
|
||||||
|
@echo "Requires: libtasn1-devel" >> $(METADATA)
|
||||||
|
@echo "Requires: valgrind" >> $(METADATA)
|
||||||
|
@echo "Requires: nfs-utils" >> $(METADATA)
|
||||||
|
@echo "Requires: rpm-build" >> $(METADATA)
|
||||||
|
@echo "Releases: -RHEL3 -RHEL4 -RHELServer5 -RHELClient5" >> $(METADATA)
|
||||||
|
@echo "Priority: Normal" >> $(METADATA)
|
||||||
|
@echo "License: GPLv2" >> $(METADATA)
|
||||||
|
@echo "Confidential: no" >> $(METADATA)
|
||||||
|
@echo "Destructive: no" >> $(METADATA)
|
||||||
|
|
||||||
|
rhts-lint $(METADATA)
|
|
@ -0,0 +1,3 @@
|
||||||
|
PURPOSE of /CoreOS/libtasn1/Sanity/smoke-test
|
||||||
|
Description: Test calls upstream test suite.
|
||||||
|
Author: Ondrej Moris <omoris@redhat.com>
|
|
@ -0,0 +1,74 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# runtest.sh of /CoreOS/libtasn1/Sanity/smoke-test
|
||||||
|
# Description: Test calls upstream test suite.
|
||||||
|
# Author: Ondrej Moris <omoris@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010 Red Hat, Inc. All rights reserved.
|
||||||
|
#
|
||||||
|
# This copyrighted material is made available to anyone wishing
|
||||||
|
# to use, modify, copy, or redistribute it subject to the terms
|
||||||
|
# and conditions of the GNU General Public License version 2.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be
|
||||||
|
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE. See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public
|
||||||
|
# License along with this program; if not, write to the Free
|
||||||
|
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
# Boston, MA 02110-1301, USA.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
# Include rhts environment
|
||||||
|
. /usr/bin/rhts-environment.sh || exit 1
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
PACKAGE="libtasn1"
|
||||||
|
|
||||||
|
PACKAGES=( "libtasn1" "valgrind" )
|
||||||
|
|
||||||
|
TOPDIR=`rpm --eval %_topdir`
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
|
||||||
|
rlPhaseStartSetup
|
||||||
|
for P in "${PACKAGES[@]}"; do rlAssertRpm $P || rlDie; done
|
||||||
|
rlFetchSrcForInstalled $PACKAGE
|
||||||
|
rlRun "dnf builddep -y libtasn1*.rpm"
|
||||||
|
rlRun "rpm -ihv `ls libtasn1*.rpm`" 0
|
||||||
|
rlRun "rpmbuild -vv -bc $TOPDIR/SPECS/libtasn1.spec" 0
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartTest
|
||||||
|
|
||||||
|
rlRun "make -C $TOPDIR/BUILD/libtasn1-* check > make_check.out" 0
|
||||||
|
cat make_check.out
|
||||||
|
|
||||||
|
if grep "All [0-9]\+ tests passed" make_check.out; then
|
||||||
|
rlPass "All tests passed -- have seen the old format of test summary in the output"
|
||||||
|
elif grep "Testsuite summary" make_check.out; then
|
||||||
|
TOTAL=`sed -rn 's/^# TOTAL: *([0-9]*).*/\1/p' make_check.out`
|
||||||
|
PASS=`sed -rn 's/^# PASS: *([0-9]*).*/\1/p' make_check.out`
|
||||||
|
rlAssertEquals "The number of tests that ran and passed should be equal" "$TOTAL" "$PASS"
|
||||||
|
else
|
||||||
|
rlFail "Tests reported summary in an unknown way"
|
||||||
|
rlBundleLogs make_check.out
|
||||||
|
fi
|
||||||
|
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartCleanup
|
||||||
|
rlRun "rm libtasn1*.rpm -rf" 0
|
||||||
|
rlRun "rm $TOPDIR/BUILD/libtasn1-* -rf" 0
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlJournalPrintText
|
||||||
|
|
||||||
|
rlJournalEnd
|
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-beakerlib
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
- container
|
||||||
|
tests:
|
||||||
|
- libtasn1-doesn-t-handle-OIDs-which-have-elements
|
||||||
|
required_packages:
|
||||||
|
- libtasn1
|
||||||
|
- libtasn1-devel
|
||||||
|
- libtasn1-tools
|
||||||
|
- openssl
|
||||||
|
- valgrind
|
||||||
|
- nfs-utils
|
||||||
|
- rpm-build
|
Loading…
Reference in New Issue