summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'tmp-keyupdate-fixes' into 'master'Nikos Mavrogiannopoulos2019-05-233-9/+23
|\ | | | | | | | | | | | | Fix handling of malformed KeyUpdate messages Closes #699 See merge request gnutls/gnutls!1005
| * tls13/key_update: increase handling limit from 1 to 8Daiki Ueno2019-05-222-8/+20
| | | | | | | | | | | | | | | | | | | | | | The limit was too small when testing the capability of handling multiple KeyUpdate messages with tlsfuzzer. This requires a change in the rate limit logic, as previously it doesn't count the KeyUpdate messages despite the name of KEY_UPDATES_PER_SEC. Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * record_add_to_buffers: check if there is an incomplete handshake headerDaiki Ueno2019-05-221-1/+3
| | | | | | | | | | | | | | | | The function checks if a Handshake message is interleaved with an Application Data, but the check was insuffient because it assumed that a complete header is received in the buffer. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | Merge branch 'tmp-small-records' into 'master'Daiki Ueno2019-05-2310-8/+24
|\ \ | | | | | | | | | | | | priority: add new option to allow small records (>= 64) See merge request gnutls/gnutls!1006
| * | tlsfuzzer: use %ALLOW_SMALL_RECORDS for testingtmp-small-recordsDaiki Ueno2019-05-224-6/+3
| | | | | | | | | | | | Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * | priority: add new option to allow small records (>= 64)Daiki Ueno2019-05-226-2/+21
| |/ | | | | | | | | | | | | | | | | | | | | | | There is a mismatch in the lower limit of record sizes in RFC 8449 (64) and our default (512). If the server advertises a smaller limit than our default, the client has no way to keep communicating with the server. This patch adds a new priority string option %ALLOW_SMALL_RECORDS to set the limit to 64. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | Merge branch 'tmp-remove-unused-flag' into 'master'Nikos Mavrogiannopoulos2019-05-233-13/+23
|\ \ | | | | | | | | | | | | | | | | | | pubkey: remove deprecated OLD_PUBKEY_VERIFY_FLAG_TLS1_RSA Closes #754 See merge request gnutls/gnutls!1004
| * | tests: verify functionality of GNUTLS_VERIFY_DISABLE_CA_SIGN flagtmp-remove-unused-flagNikos Mavrogiannopoulos2019-05-212-9/+21
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | pubkey: remove deprecated TLS1_RSA flag checkKenneth J. Miller2019-05-211-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The gnutls_certificate_verify_flags comparisons against OLD_PUBKEY_VERIFY_FLAG_TLS1_RSA conflicts with GNUTLS_VERIFY_DISABLE_CA_SIGN and no longer seems to be used in calls to both gnutls_pubkey_verify_data2 and gnutls_pubkey_verify_hash2 as it seems to have been fully replaced by GNUTLS_VERIFY_USE_TLS1_RSA. Resolves: #754 Signed-off-by: Kenneth J. Miller <ken@miller.ec>
* | | Merge branch 'tmp-privkey-tls13' into 'master'Daiki Ueno2019-05-2213-20/+434
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | server auth: disable TLS 1.3 if no signature algorithm is usable Closes #731 See merge request gnutls/gnutls!987
| * | algorithms: eliminate the FFDHE alert desc requirementDaiki Ueno2019-05-225-19/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | This implements the errata for RFC 7919 eliminating the requirement to reply with an insufficient_security alert when we have negotiated an FFDHE group, but cannot find common ciphersuite: https://www.rfc-editor.org/errata/eid4908 Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * | server auth: disable TLS 1.3 if no signature algorithm is usableDaiki Ueno2019-05-209-2/+417
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a server side counterpart of 005a4d04145707daad9588acedfdb5f6cd97c80c. Instead of signalling an error when no algorithm is usable in TLS 1.3, it downgrades the session to TLS 1.2 with a warning. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | | Merge branch 'mark_const' into 'master'Tim Rühsen2019-05-212-2/+2
|\ \ \ | |_|/ |/| | | | | | | | Mark second argument of function gnutls_x509_crt_equals2 as const See merge request gnutls/gnutls!1000
| * | Mark second argument of function gnutls_x509_crt_equals2 as constAleksei Nikiforov2019-05-212-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow using this function with certificates returned by function gnutls_certificate_get_peers without casts dropping const qualifier or making temporary copies out of retrieved data. Signed-off-by: Aleksei Nikiforov <darktemplar@basealt.ru>
* | | x509.h: corrected typo in newly introduced definitionNikos Mavrogiannopoulos2019-05-211-1/+1
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | | Merge branch 'tmp-minor-fixes' into 'master'Nikos Mavrogiannopoulos2019-05-2144-167/+730
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Few minor bug fixes for the next release Closes #770 and #767 See merge request gnutls/gnutls!1003
| * | x509.h: removed stray '%'Nikos Mavrogiannopoulos2019-05-201-1/+1
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
| * | certtool: CA certificates will contain the digital signature key usage flagNikos Mavrogiannopoulos2019-05-2028-127/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change ensures that all certificates will contain the digital signature key usage flag if that's specified in the template. Resolves: #767 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | Added profile to correspond to the future security parameterNikos Mavrogiannopoulos2019-05-2011-34/+393
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that the FUTURE security level parameter was added without a corresponding verification profile. This patch address the issue by introducing it. Resolves: #770 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | tests: added unit tests of utc and generalTime convertorNikos Mavrogiannopoulos2019-05-204-3/+102
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
| * | algorithms/secparams.c: fixed indentationNikos Mavrogiannopoulos2019-05-201-1/+2
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
| * | gnutls-serv: GERR macro will output in stderrNikos Mavrogiannopoulos2019-05-201-1/+1
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* | | Merge branch 'tmp-fix-evil-idna' into 'master'Tim Rühsen2019-05-203-3/+15
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Apply STD3 ASCII rules in gnutls_idna_map() Closes #720 See merge request gnutls/gnutls!1001
| * | Apply STD3 ASCII rules in gnutls_idna_map()tmp-fix-evil-idnaTim Rühsen2019-05-203-3/+15
|/ / | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* | Merge branch 'tmp-fix-gcc4.4' into 'master'Tim Rühsen2019-05-172-3/+4
|\ \ | |/ |/| | | | | Tmp fix gcc4.4 See merge request gnutls/gnutls!996
| * Fix _Thread_local for C99 installed in C11 environmentstmp-fix-gcc4.4Tim Rühsen2019-05-171-2/+4
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * Remove redundant typedef of Tspi_Context_GetTpmObject_func()Tim Rühsen2019-05-171-1/+0
|/ | | | | | Gcc 4.4 errors out on this. Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Merge branch 'tmp-update-gnulib' into 'master'Tim Rühsen2019-05-161-0/+0
|\ | | | | | | | | | | | | Update gnulib for gcc-9 manywarnings Closes #768 See merge request gnutls/gnutls!999
| * Update gnulib for gcc-9 manywarningstmp-update-gnulibTim Rühsen2019-05-151-0/+0
|/ | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* Merge branch 'tmp-check-allocations' into 'master'Nikos Mavrogiannopoulos2019-05-154-0/+14
|\ | | | | | | | | | | | | Check all memory allocation in examples and certtool Closes #739 See merge request gnutls/gnutls!998
| * Check all memory allocation in examples and certtooltmp-check-allocationsNikos Mavrogiannopoulos2019-05-144-0/+14
| | | | | | | | | | | | Resolves: #739 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | Merge branch 'tmp-fix-GETPORT' into 'master'Tim Rühsen2019-05-141-7/+10
|\ \ | |/ |/| | | | | Fix endless looping GETPORT in tests/scripts/common.sh See merge request gnutls/gnutls!997
| * Fix endless looping GETPORT in tests/scripts/common.shtmp-fix-GETPORTTim Rühsen2019-05-101-7/+10
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* | Merge branch 'tmp-record-sizes' into 'master'Daiki Ueno2019-05-1419-50/+410
|\ \ | | | | | | | | | | | | ext/record_size_limit: distinguish sending and receiving limits See merge request gnutls/gnutls!985
| * | ext/record_size_limit: distinguish sending and receiving limitstmp-record-sizesDaiki Ueno2019-05-1419-50/+410
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous behavior was that both sending and receiving limits are negotiated to be the same value. It was problematic when: - client sends a record_size_limit with a large value in CH - server sends a record_size_limit with a smaller value in EE - client updates the limit for both sending and receiving, upon receiving EE - server sends a Certificate message larger than the limit With this patch, each peer maintains the sending / receiving limits separately so not to confuse with the contradicting settings. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | Merge branch 'fix-streebog' into 'master'Dmitry Eremin-Solenikov2019-05-133-5/+26
|\ \ | | | | | | | | | | | | lib/nettle: fix carry flag in Streebog code See merge request gnutls/gnutls!992
| * | lib/nettle: fix carry flag in Streebog codeDmitry Eremin-Solenikov2019-05-133-5/+26
|/ / | | | | | | | | | | Fix carry flag being calculated incorrectly in Streebog code. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
* | Merge branch 'tmp-lgtm-suppress-ctime' into 'master'Nikos Mavrogiannopoulos2019-05-1018-31/+85
|\ \ | | | | | | | | | | | | tools: suppress ctime() error from lgtm warnings See merge request gnutls/gnutls!994
| * | dane.h: added multiple inclusion header guardtmp-lgtm-suppress-ctimeNikos Mavrogiannopoulos2019-05-091-0/+4
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
| * | tools: suppress ctime() error from static analysersNikos Mavrogiannopoulos2019-05-096-13/+40
| | | | | | | | | | | | | | | | | | | | | This function is not thread safe and can be easily misused even in single threaded scenarios (one such minor bug fixed). Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
| * | accelerated: added header guardsNikos Mavrogiannopoulos2019-05-0811-18/+41
| | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | | Merge branch 'tmp-fix-srp' into 'master'Nikos Mavrogiannopoulos2019-05-102-4/+11
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | _gnutls_srp_entry_free: follow consistent behavior in freeing data Closes #761 See merge request gnutls/gnutls!995
| * | _gnutls_srp_entry_free: follow consistent behavior in freeing datatmp-fix-srpNikos Mavrogiannopoulos2019-05-102-4/+11
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | _gnutls_srp_entry_free would previously not free any parameters that were known to gnutls to account for documented behavior of gnutls_srp_set_server_credentials_function(). This was not updated when the newly added 8192 parameter was added to the library. This introduces a safety check for generator parameters, even though in practice they are the same pointer. Resolves: #761 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | Merge branch 'fix-guile-option' into 'master'Tim Rühsen2019-05-091-3/+3
|\ \ | |/ |/| | | | | guile: Properly format guile configure options See merge request gnutls/gnutls!991
| * guile: Properly format guile configure optionsDaniel Schaefer2019-05-051-3/+3
| | | | | | | | | | | | | | Without the square brackets autoconf turns hyphens into underscores, which is not what we want or what the help says. Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
* | Merge branch 'tmp-header-guards' into 'master'Tim Rühsen2019-05-08166-337/+645
|\ \ | |/ |/| | | | | | | | | Add or clean header guards in lib/ Closes #728 See merge request gnutls/gnutls!954
| * Add or clean header guards in lib/nettletmp-header-guardsTim Rühsen2019-05-0725-58/+88
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * Add or clean header guards in tests/Tim Rühsen2019-05-0712-12/+52
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * Add or clean header guards in src/Tim Rühsen2019-05-0710-17/+41
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * Add or clean header guards in lib/x509/Tim Rühsen2019-05-0712-21/+46
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>