summaryrefslogtreecommitdiff
path: root/bootstrap.conf
Commit message (Collapse)AuthorAgeFilesLines
* build: use $(LIBPTHREAD) rather than non-existent $(LTLIBPTHREAD)James Bottomley2020-08-311-2/+2
| | | | | | | | | | | | | | | | | | | | On a very recent openSUSE build, libgnutls is getting built without libpthread. This caused a thread related error when trying to load a pkcs11 module that uses threading. The reason is rather convoluted: glibc actually controls all the pthread_ function calls, but it returns success without doing anything unless -lpthread is in the link list. What's happening is that gnutls_system_mutex_init() is being called on _gnutls_pkcs11_mutex before library pthreading is initialized, so the pthread_mutex_init ends up being a nop. Then, when the pkcs11 module is loaded, pthreads get initialized and the call to pthread_mutex_lock is real, but errors out on the uninitialized mutex. The problem seems to be that nothing in the gnulib macros gnutls relies on for threading support detection actually sets LTLIBPTHREAD, they only set LIBPTHREAD. The fix is to use LIBPTHREAD in lib/Makefile.in Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
* lib: avoid file descriptor leak when application forksDaiki Ueno2020-05-301-2/+2
| | | | | | | | | | | This makes use of the "e" flag of fopen, provided by the Gnulib's fopen-gnu module. Reported by Remi Denis-Courmont in: https://gitlab.com/gnutls/gnutls/-/issues/985 and fix suggested by Tim Rühsen. Signed-off-by: Daiki Ueno <ueno@gnu.org>
* gnulib: update git submoduleDaiki Ueno2020-05-291-2/+2
| | | | | | | | | | | This brings in the new fopen-gnu module and the RF_SENSITIVE flag for fread_file and read_file. This also adds the following changes to be consistent with the latest changes in Gnulib: - the callers of fread_file and read_file to be adjusted for the FLAGS argument - "attribute.h" needs to be used extensively Signed-off-by: Daiki Ueno <ueno@gnu.org>
* build: vendor in libtasn1 codetmp-vendor-minitasn1Dmitry Baryshkov2020-05-241-1/+2
| | | | | | | | Instead of keeping the minitasn1 source in Git, vendor in it during bootstrap as we do with Nettle code. This also upgrades included minitasn1 to latest version (4.16.0). Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* nettle: rename import-chacha-from-nettle.sh to import-from-nettle.shDaiki Ueno2020-05-041-1/+1
| | | | | | This script will handle other backports except ECC as well. Signed-off-by: Daiki Ueno <ueno@gnu.org>
* fips: check library soname during configuretmp-check-sonameDaiki Ueno2020-04-241-2/+2
| | | | | | | | | | | | Previously, we hard-coded the sonames of linked libraries for FIPS integrity checking. That required downstream packagers to manually adjust the relevant code in lib/fips.c, when a new interface version of the dependent libraries (nettle, gmp) becomes available and linked to libgnutls. This patch automates that process with the configure script. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* build: import-curve448 -> import-eccDmitry Baryshkov2020-04-141-1/+1
| | | | | | | As the script now imports not just Curve448, but also gost code, rename the script, target directory and symbols to follow that. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* nettle: vendor in ChaCha20 implementation from nettleDaiki Ueno2020-03-191-0/+1
| | | | | | | This enables to use bundled ChaCha20 implementation if the system nettle doesn't have nettle_chacha_set_counter. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* bootstrap.conf: do not bring tests in gnulib clones (src/unistring)Nikos Mavrogiannopoulos2020-03-161-2/+2
| | | | | | | These tests are not being run, and they can cause issues as in !1208. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* lib: use static assertion to check enum valuestmp-static-assertDaiki Ueno2020-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | We previously had checks of enum values with '#if', such as below: #define GNUTLS_EXTENSION_MAX_VALUE 31 typedef enum extensions_t { ... GNUTLS_EXTENSION_MAX /* not real extension - used for iterators */ } extensions_t; /* we must provide at least 16 extensions for users to register */ #if GNUTLS_EXTENSION_MAX_VALUE - GNUTLS_EXTENSION_MAX < 16 # error not enough extension types #endif This doesn't work as expected; because GNUTLS_EXTENSION_MAX is not defined as a preprocessor macro, it always expands to 0. To properly do this check, we need to use static assert as provided as the 'verify' macro in gnulib. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* Create files in gl/ licenced lgpl2+ instead of lgpl3+tmp-gl-lgpl2Tim Rühsen2020-01-251-1/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* nettle: vendor in Curve448 and Ed448 implementationDaiki Ueno2020-01-231-1/+3
| | | | Signed-off-by: Daiki Ueno <dueno@redhat.com>
* x509: reject certificates having duplicate extensionsNikos Mavrogiannopoulos2020-01-031-1/+1
| | | | | | | | | | | According to RFC5280 a certificate must not include more than one instance of a particular extension. We were previously printing warnings when such extensions were found, but that is insufficient to flag such certificates. Instead, refuse to import them. Resolves: #887 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Merge branch 'tmp-use-https' into 'master'Tim Rühsen2019-03-131-1/+1
|\ | | | | | | | | Change HTTP:// references to HTTPs:// (generally) See merge request gnutls/gnutls!910
| * Use https:// for www.gnu.org and www.example.comTim Rühsen2019-03-131-1/+1
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* | inet_ntop is available in Windows but not via arpa/inet.hSteve Lhomme2019-03-131-2/+2
|/ | | | | | | | | It's found in ws2tcpip.h which is already included in gnutls_int.h arpa/inet.h doesn't exist on Windows, so add arpa_inet to the list of headers replaced by gnulib if not found. Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
* bootstrap.conf: do not override GNULIB_SRCDIRtmp-macosx-fixNikos Mavrogiannopoulos2019-02-141-10/+12
| | | | | | | This was not set in all of our CI platforms, and was causing issues in MacOSX. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* Merge branch 'tmp-gnulib-pton' into 'master'Tim Rühsen2019-02-101-1/+1
|\ | | | | | | | | Use inet_pton() from gnulib See merge request gnutls/gnutls!913
| * Use inet_pton() from gnulibtmp-gnulib-ptonTim Rühsen2019-02-101-1/+1
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* | bootstrap: refuse to bootstrap if any dependencies bring gnulib's network stacktmp-enforce-gnulib-rules-for-libNikos Mavrogiannopoulos2019-02-091-1/+11
|/ | | | | | | | | | If gnulib's network stack is brought (due to a dependency) in the library it will make the library unusable to non-gnulib using applications. This prevents windows applications for example to use gnutls, and so on. Even more it is quite hard to catch that issue because our testsuite uses gnulib as well. Instead we try to catch the these modules at import time. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Use inet_ntop() from gnulibtmp-gnulib-ntopTim Rühsen2019-02-071-1/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* bootstrap: only update the required submodules for buildingtmp-submodulesNikos Mavrogiannopoulos2018-12-051-1/+6
| | | | | | | | | Although we have few submodules they are not all required for building and testing. This patch modified bootstrap.conf not to update all of them, but only the necessary for building and testing. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* bootstrap.conf: add "autogen" to buildreqTim Rühsen2018-11-241-0/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Let bootstrap check for gperf and autopointTim Rühsen2018-10-081-0/+2
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Use ASCII version of strcasecmp() in library codetmp-lib-c-strcaseTim Rühsen2018-09-271-1/+1
| | | | | | | | | | strcasecmp() has side effects in some locales. What we really need is c_strcasecmp() from Gnulib for comparing ASCII strings. Fixes #570 Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Update git submodules via ./bootstrapTim Rühsen2018-09-171-0/+7
| | | | | | | Setting $SUBMODULE_NOFETCH to a non-empty value adds --no-fetch to the git command (for CI speedup). Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* certtool: properly print an int64_t valueNikos Mavrogiannopoulos2018-07-021-1/+1
| | | | | | Also included the gnulib inttype module for portability. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Add strdup-posix gnulib moduleTim Rühsen2018-06-271-1/+1
| | | | | | | | Some files in gl/tests won't build in environments without strdup(), e.g. MinGW on Debian. The gnulib docs advise to explicitly add the module. Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Let ./bootstrap sync from translationproject.orgTim Rühsen2018-06-261-2/+1
| | | | | | | | | | This makes manual updating of the translations obsolete. From now on, builds and tarballs will always have the latest translations included. We should not forget to inform translationproject.org to update the translations before a release. How to do that is described at https://translationproject.org/html/maintainers.html (6. Announcing).
* Fix usage of 'autoreconf'Tim Rühsen2018-06-161-1/+1
| | | | | | | | | | | 'autoreconf' created a different configure script than ./bootstrap. The result was a broken wchar.h that failed to compile. The work-around was 'autoreconf -I gl/m4' which is not what a developer expects. This patch moves gl/m4/* to m4/ which is the default include dir for autoreconf. Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Avoid certain gnulib testsTim Rühsen2018-06-141-1/+1
| | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Add bootstrap + bootstrap.confTim Rühsen2018-06-141-0/+78
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>