summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gnutls_privkey_sign_hash2: accept the GNUTLS_PRIVKEY_SIGN_FLAG_TLS1_RSA flagtmp-fix-raw-flag-in-newapiNikos Mavrogiannopoulos2019-06-104-12/+24
| | | | | | | | | | Previously this flag was ignored, although documented not to. This patch also enables the tests sign-verify-newapi and sign-verify-data-newapi which were supposed to test this interface, but were never enabled. This was caught by Andreas Metzler. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* tests: removed debugging output from GETPORTNikos Mavrogiannopoulos2019-06-101-1/+0
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* .gitlab-ci.yml: include top log files in all build failures [ci skip]Nikos Mavrogiannopoulos2019-06-081-0/+2
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Merge branch 'guile-remove-alloca' into 'master'Tim Rühsen2019-06-072-27/+33
|\ | | | | | | | | | | | | Remove unbounded uses of alloca in the Guile bindings Closes #684 See merge request gnutls/gnutls!1022
| * guile: Remove unbounded uses of 'alloca'.Ludovic Courtès2019-06-072-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guile/src/core.c (ALLOCA_MAX_SIZE, FAST_ALLOC): New macros. (set_certificate_file): (scm_gnutls_set_certificate_credentials_x509_key_files_x) (scm_gnutls_set_srp_server_credentials_files_x) (scm_gnutls_set_srp_client_credentials_x) (scm_gnutls_srp_base64_encode, scm_gnutls_srp_base64_decode) (scm_gnutls_set_psk_server_credentials_file_x) (scm_gnutls_pkcs8_import_x509_private_key) (scm_gnutls_x509_certificate_matches_hostname_p) (scm_gnutls_import_openpgp_private_key): Use 'FAST_ALLOC' instead of 'alloca'. * guile/src/utils.c: Remove unneeded <alloca.h> include. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| * guile: Always provide 'scm_gc_malloc_pointerless'.Ludovic Courtès2019-06-071-7/+7
| | | | | | | | | | | | | | | | * guile/src/core.c (scm_gc_malloc_pointerless) [!HAVE_SCM_GC_MALLOC_POINTERLESS]: New macro. (make_session_record_port): Remove #ifdef HAVE_SCM_GC_MALLOC_POINTERLESS. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* | Merge branch 'tmp-keyupdate-fixes' into 'master'Daiki Ueno2019-06-064-2/+235
|\ \ | | | | | | | | | | | | tls13/key_update: ignore multiple key updates instead of error See merge request gnutls/gnutls!1019
| * | tls13/key_update: ignore multiple key updates instead of errortmp-keyupdate-fixesDaiki Ueno2019-06-054-2/+235
|/ / | | | | | | | | | | | | | | This fixes the multiple KeyUpdate messages handling in commit 65e2aa80d114d4bef095d129c2eda475e473244a, where illegal_parameter is sent even if the limit doesn't exceed. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | Merge branch 'tmp-fix-travis2' into 'master'Tim Rühsen2019-06-042-11/+11
|\ \ | | | | | | | | | | | | Prefix gcc attributes with 'attr_' See merge request gnutls/gnutls!1017
| * | Prefix gcc attributes with 'attr_'tmp-fix-travis2Tim Rühsen2019-06-042-11/+11
|/ / | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* | gnutls_prf_early: corrected Since version [ci skip]Nikos Mavrogiannopoulos2019-06-031-1/+1
| | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* | Merge branch 'tmp-fix-travis' into 'master'Tim Rühsen2019-06-021-1/+3
|\ \ | | | | | | | | | | | | Fix warn_unused_result for clang < 4 See merge request gnutls/gnutls!1016
| * | Fix warn_unused_result for clang < 4tmp-fix-travisTim Rühsen2019-06-021-1/+3
|/ / | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* | Merge branch 'tmp-fedora30' into 'master'Tim Rühsen2019-06-021-1/+1
|\ \ | |/ |/| | | | | .gitlab-ci.yml: switched fedora to latest version See merge request gnutls/gnutls!1015
| * .gitlab-ci.yml: switched fedora to latest versionNikos Mavrogiannopoulos2019-06-011-1/+1
|/ | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Merge branch 'tmp-releases' into 'master'Nikos Mavrogiannopoulos2019-05-314-7/+22
|\ | | | | | | | | RELEASES.md: document the releases policy See merge request gnutls/gnutls!1011
| * RELEASES.md: document the releases policy [ci skip]tmp-releasesNikos Mavrogiannopoulos2019-05-264-7/+22
| | | | | | | | | | | | | | | | | | This adds a file to document the policy on releases based on the discussions taken place in the last face to face meeting. https://gitlab.com/gnutls/gnutls/wikis/face2face-meeting-fosdem2019 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | Merge branch 'tmp-fix-libopts' into 'master'Dmitry Eremin-Solenikov2019-05-313-1/+23
|\ \ | | | | | | | | | | | | | | | | | | Do not regenerate autogen files if --enable-local-libopts is given Closes #772 See merge request gnutls/gnutls!1010
| * | Do not regenerate autogen files if --enable-local-libopts is giventmp-fix-liboptsNikos Mavrogiannopoulos2019-05-293-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This addresses issue on installed systems which have autogen but use --enable-local-libopts. In these systems if the installed autogen would not match the local libopts library version compilation would fail because the auto-generated files depend on the corresponding to autogen version libopts internals. Resolves: #772 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | | Merge branch 'tmp-fix-touch' into 'master'Tim Rühsen2019-05-301-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Makefile.am: do not create files when it shouldn't See merge request gnutls/gnutls!1014
| * | | Makefile.am: do not create files when it shouldn'tNikos Mavrogiannopoulos2019-05-301-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | If a pdf or html file is not distributed, previously `make dist` would create a file called '*.pdf' which did not make sense. This addresses this problem. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* | | Merge branch 'tmp-datum-cleanup' into 'master'Tim Rühsen2019-05-297-51/+69
|\ \ \ | |/ / |/| | | | | | | | Datum.c cleanup See merge request gnutls/gnutls!1002
| * | Remove malloc from gnutls_srp_set_server_fake_salt_seed()tmp-datum-cleanupNikos Mavrogiannopoulos2019-05-283-18/+18
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
| * | gnutls_session_set_data(): Check for allocation errorTim Rühsen2019-05-281-1/+5
| | | | | | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * | _gnutls_set_[str]datum: Cleanup, add function attributesTim Rühsen2019-05-282-21/+19
| | | | | | | | | | | | | | | | | | | | | _gnutls_set_datum(): Do not change output 'dat' on error _gnutls_set_strdatum: Likewise, cleanup code Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * | Add nonnull, nonnull_all and warn_unusd_result attributes in lib/gnutls_int.hTim Rühsen2019-05-281-11/+27
|/ / | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* | doc: do not distribute pdf filesNikos Mavrogiannopoulos2019-05-281-2/+2
| | | | | | | | | | | | | | It compicates the 'make dist' phase and does not add much value as the files are available from the web site. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | released 3.6.8Nikos Mavrogiannopoulos2019-05-281-9/+10
| | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | minor updates in the latex version of the manual [ci skip]Nikos Mavrogiannopoulos2019-05-276-6/+15
| | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | doc update [ci skip]Nikos Mavrogiannopoulos2019-05-272-4/+11
|/ | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Merge branch 'tmp-avoid-libs-in-libsvar' into 'master'Nikos Mavrogiannopoulos2019-05-242-2/+10
|\ | | | | | | | | | | | | Do not add libraries in the global LIBS in configure Closes #735 See merge request gnutls/gnutls!1008
| * .gitlab-ci.yml: ensure that the LIBS variable is empty after a configure runtmp-avoid-libs-in-libsvarNikos Mavrogiannopoulos2019-05-241-0/+1
| | | | | | | | | | | | | | | | We do not use this variable as it is global and applies to all of tests, applications and library, and when it is set it is usually due to bugs in configure.ac. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * Do not add libraries in the global LIBS in configureNikos Mavrogiannopoulos2019-05-241-2/+9
|/ | | | | | | | | This ensures that libraries are linked with the programs requiring them. Resolves: #735 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Merge branch 'tmp-version-override' into 'master'Daiki Ueno2019-05-247-5/+14
|\ | | | | | | | | tests: prf-early fixes the global version See merge request gnutls/gnutls!1009
| * bumped versiontmp-version-overrideNikos Mavrogiannopoulos2019-05-242-4/+4
| | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * tests: prf-early fixes the global versionNikos Mavrogiannopoulos2019-05-245-1/+10
|/ | | | | | | | This allows having fixed data in the hello message involved. That required exposing the variable holding the global gnutls version number for testing. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* certtool: corrected typo in manual [ci skip]Nikos Mavrogiannopoulos2019-05-231-2/+2
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* Revert "bumped version"Nikos Mavrogiannopoulos2019-05-232-4/+4
| | | | | | | | | In order to make the CI functional again. The version number update seems to conflict with tests/tls13/prf-early.sh This reverts commit d34d93b8713cf10235ce7016fd69b6932b0752c0. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* tests: prf-early.sh: use the static flag of datefudgeNikos Mavrogiannopoulos2019-05-231-1/+1
| | | | | | This eliminates unexpected failures of the test in slower systems. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* tlsfuzzer: reverted accidental move to incorrect versionNikos Mavrogiannopoulos2019-05-231-0/+0
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* NEWS: doc updateNikos Mavrogiannopoulos2019-05-231-1/+14
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* bumped versionNikos Mavrogiannopoulos2019-05-232-4/+4
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* Pass down Q for FFDHE in al pre TLS1.3 as wellSimo Sorce2019-05-232-6/+38
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* Check Q for FFDHE primes in prime-checkSimo Sorce2019-05-231-13/+23
| | | | | | | These are mersenne primes so q = (p - 1) / 2 We check that p = (q * 2) + 1 Signed-off-by: Simo Sorce <simo@redhat.com>
* Always pass in and check Q in TLS 1.3Simo Sorce2019-05-234-2/+23
| | | | | | | In FIPS mode do an extra check that we did have Q, but it is always passed into the tls13 derive function from the callers. Signed-off-by: Simo Sorce <simo@redhat.com>
* Add plumbing to handle Q parameter in DH exchangesSimo Sorce2019-05-2312-47/+610
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* Add test to ensure ECDH exchange behaves correctlySimo Sorce2019-05-233-1/+210
| | | | | | | This test ensures that public keys are properly tested for validity before a ECDH exchange is computed. Signed-off-by: Simo Sorce <simo@redhat.com>
* Add test to ensure DH exchange behaves correctlySimo Sorce2019-05-232-1/+156
| | | | | | | This test ensures that public keys are properly tested for validity before a DH exchange is computed. Signed-off-by: Simo Sorce <simo@redhat.com>
* Add Full Public Key Check for DHSimo Sorce2019-05-231-3/+20
| | | | | | | | This is for NIST SP800-56A requirements and FIPS CAVS testing. GnuTLS never passes in a non-empty Q for normal operations, but tests will and if Q is passed in it needs to be checked. Signed-off-by: Simo Sorce <simo@redhat.com>
* Fix Copy&Paste errorSimo Sorce2019-05-231-1/+1
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>