]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Simo Sorce [Tue, 14 May 2019 22:38:33 +0000 (18:38 -0400)]
Add test to ensure ECDH exchange behaves correctly
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>
Simo Sorce [Fri, 10 May 2019 18:49:05 +0000 (14:49 -0400)]
Add test to ensure DH exchange behaves correctly
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>
Simo Sorce [Fri, 3 May 2019 16:32:56 +0000 (12:32 -0400)]
Add Full Public Key Check for DH
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>
Simo Sorce [Wed, 1 May 2019 14:57:51 +0000 (10:57 -0400)]
Fix Copy&Paste error
Signed-off-by: Simo Sorce <simo@redhat.com>
Nikos Mavrogiannopoulos [Thu, 23 May 2019 09:05:26 +0000 (09:05 +0000)]
Merge branch 'tmp-keyupdate-fixes' into 'master'
Fix handling of malformed KeyUpdate messages
Closes #699
See merge request gnutls/gnutls!1005
Daiki Ueno [Thu, 23 May 2019 08:20:23 +0000 (08:20 +0000)]
Merge branch 'tmp-small-records' into 'master'
priority: add new option to allow small records (>= 64)
See merge request gnutls/gnutls!1006
Nikos Mavrogiannopoulos [Thu, 23 May 2019 04:11:12 +0000 (04:11 +0000)]
Merge branch 'tmp-remove-unused-flag' into 'master'
pubkey: remove deprecated OLD_PUBKEY_VERIFY_FLAG_TLS1_RSA
Closes #754
See merge request gnutls/gnutls!1004
Daiki Ueno [Wed, 22 May 2019 08:39:27 +0000 (10:39 +0200)]
tls13/key_update: increase handling limit from 1 to 8
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>
Daiki Ueno [Wed, 22 May 2019 10:16:52 +0000 (10:16 +0000)]
Merge branch 'tmp-privkey-tls13' into 'master'
server auth: disable TLS 1.3 if no signature algorithm is usable
Closes #731
See merge request gnutls/gnutls!987
Daiki Ueno [Wed, 22 May 2019 09:51:57 +0000 (11:51 +0200)]
tlsfuzzer: use %ALLOW_SMALL_RECORDS for testing
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Wed, 22 May 2019 09:16:03 +0000 (11:16 +0200)]
priority: add new option to allow small records (>= 64)
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>
Daiki Ueno [Tue, 21 May 2019 06:32:21 +0000 (08:32 +0200)]
record_add_to_buffers: check if there is an incomplete handshake header
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>
Daiki Ueno [Fri, 17 May 2019 09:51:00 +0000 (11:51 +0200)]
algorithms: eliminate the FFDHE alert desc requirement
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>
Tim Rühsen [Tue, 21 May 2019 19:52:08 +0000 (19:52 +0000)]
Merge branch 'mark_const' into 'master'
Mark second argument of function gnutls_x509_crt_equals2 as const
See merge request gnutls/gnutls!1000
Aleksei Nikiforov [Fri, 17 May 2019 11:44:06 +0000 (14:44 +0300)]
Mark second argument of function gnutls_x509_crt_equals2 as const
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>
Nikos Mavrogiannopoulos [Tue, 21 May 2019 06:22:08 +0000 (08:22 +0200)]
tests: verify functionality of GNUTLS_VERIFY_DISABLE_CA_SIGN flag
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Kenneth J. Miller [Mon, 15 Apr 2019 15:56:13 +0000 (17:56 +0200)]
pubkey: remove deprecated TLS1_RSA flag check
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>
Nikos Mavrogiannopoulos [Tue, 21 May 2019 03:54:35 +0000 (05:54 +0200)]
x509.h: corrected typo in newly introduced definition
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Tue, 21 May 2019 03:48:38 +0000 (03:48 +0000)]
Merge branch 'tmp-minor-fixes' into 'master'
Few minor bug fixes for the next release
Closes #770 and #767
See merge request gnutls/gnutls!1003
Nikos Mavrogiannopoulos [Mon, 20 May 2019 19:34:30 +0000 (21:34 +0200)]
x509.h: removed stray '%'
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Mon, 20 May 2019 14:13:12 +0000 (16:13 +0200)]
certtool: CA certificates will contain the digital signature key usage flag
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>
Nikos Mavrogiannopoulos [Mon, 20 May 2019 12:40:31 +0000 (14:40 +0200)]
Added profile to correspond to the future security parameter
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>
Nikos Mavrogiannopoulos [Mon, 20 May 2019 13:47:41 +0000 (15:47 +0200)]
tests: added unit tests of utc and generalTime convertor
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Daiki Ueno [Mon, 29 Apr 2019 17:03:55 +0000 (19:03 +0200)]
server auth: disable TLS 1.3 if no signature algorithm is usable
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>
Nikos Mavrogiannopoulos [Sat, 18 May 2019 19:13:10 +0000 (21:13 +0200)]
algorithms/secparams.c: fixed indentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Mon, 20 May 2019 12:34:56 +0000 (14:34 +0200)]
gnutls-serv: GERR macro will output in stderr
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Tim Rühsen [Mon, 20 May 2019 12:30:50 +0000 (12:30 +0000)]
Merge branch 'tmp-fix-evil-idna' into 'master'
Apply STD3 ASCII rules in gnutls_idna_map()
Closes #720
See merge request gnutls/gnutls!1001
Tim Rühsen [Mon, 20 May 2019 09:10:11 +0000 (11:10 +0200)]
Apply STD3 ASCII rules in gnutls_idna_map()
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 17 May 2019 14:59:08 +0000 (14:59 +0000)]
Merge branch 'tmp-fix-gcc4.4' into 'master'
Tmp fix gcc4.4
See merge request gnutls/gnutls!996
Tim Rühsen [Fri, 10 May 2019 09:42:46 +0000 (11:42 +0200)]
Fix _Thread_local for C99 installed in C11 environments
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Fri, 10 May 2019 09:27:32 +0000 (11:27 +0200)]
Remove redundant typedef of Tspi_Context_GetTpmObject_func()
Gcc 4.4 errors out on this.
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Thu, 16 May 2019 07:32:09 +0000 (07:32 +0000)]
Merge branch 'tmp-update-gnulib' into 'master'
Update gnulib for gcc-9 manywarnings
Closes #768
See merge request gnutls/gnutls!999
Tim Rühsen [Wed, 15 May 2019 07:47:24 +0000 (09:47 +0200)]
Update gnulib for gcc-9 manywarnings
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Nikos Mavrogiannopoulos [Wed, 15 May 2019 04:52:35 +0000 (04:52 +0000)]
Merge branch 'tmp-check-allocations' into 'master'
Check all memory allocation in examples and certtool
Closes #739
See merge request gnutls/gnutls!998
Tim Rühsen [Tue, 14 May 2019 20:40:47 +0000 (20:40 +0000)]
Merge branch 'tmp-fix-GETPORT' into 'master'
Fix endless looping GETPORT in tests/scripts/common.sh
See merge request gnutls/gnutls!997
Nikos Mavrogiannopoulos [Tue, 14 May 2019 19:39:46 +0000 (21:39 +0200)]
Check all memory allocation in examples and certtool
Resolves: #739
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Daiki Ueno [Tue, 14 May 2019 06:05:16 +0000 (06:05 +0000)]
Merge branch 'tmp-record-sizes' into 'master'
ext/record_size_limit: distinguish sending and receiving limits
See merge request gnutls/gnutls!985
Daiki Ueno [Thu, 25 Apr 2019 15:08:43 +0000 (17:08 +0200)]
ext/record_size_limit: distinguish sending and receiving limits
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>
Dmitry Eremin-Solenikov [Mon, 13 May 2019 18:44:35 +0000 (18:44 +0000)]
Merge branch 'fix-streebog' into 'master'
lib/nettle: fix carry flag in Streebog code
See merge request gnutls/gnutls!992
Dmitry Eremin-Solenikov [Tue, 7 May 2019 11:49:05 +0000 (14:49 +0300)]
lib/nettle: fix carry flag in Streebog code
Fix carry flag being calculated incorrectly in Streebog code.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Nikos Mavrogiannopoulos [Fri, 10 May 2019 17:22:51 +0000 (17:22 +0000)]
Merge branch 'tmp-lgtm-suppress-ctime' into 'master'
tools: suppress ctime() error from lgtm warnings
See merge request gnutls/gnutls!994
Nikos Mavrogiannopoulos [Fri, 10 May 2019 12:51:48 +0000 (12:51 +0000)]
Merge branch 'tmp-fix-srp' into 'master'
_gnutls_srp_entry_free: follow consistent behavior in freeing data
Closes #761
See merge request gnutls/gnutls!995
Tim Rühsen [Fri, 10 May 2019 11:31:23 +0000 (13:31 +0200)]
Fix endless looping GETPORT in tests/scripts/common.sh
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Nikos Mavrogiannopoulos [Fri, 10 May 2019 04:30:12 +0000 (06:30 +0200)]
_gnutls_srp_entry_free: follow consistent behavior in freeing data
_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>
Nikos Mavrogiannopoulos [Wed, 8 May 2019 20:08:18 +0000 (22:08 +0200)]
dane.h: added multiple inclusion header guard
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Wed, 8 May 2019 19:52:54 +0000 (21:52 +0200)]
tools: suppress ctime() error from static analysers
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>
Tim Rühsen [Thu, 9 May 2019 08:50:26 +0000 (08:50 +0000)]
Merge branch 'fix-guile-option' into 'master'
guile: Properly format guile configure options
See merge request gnutls/gnutls!991
Nikos Mavrogiannopoulos [Wed, 8 May 2019 20:05:10 +0000 (22:05 +0200)]
accelerated: added header guards
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Tim Rühsen [Wed, 8 May 2019 07:46:40 +0000 (07:46 +0000)]
Merge branch 'tmp-header-guards' into 'master'
Add or clean header guards in lib/
Closes #728
See merge request gnutls/gnutls!954
Tim Rühsen [Sun, 28 Apr 2019 09:11:23 +0000 (11:11 +0200)]
Add or clean header guards in lib/includes/gnutls/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Wed, 1 May 2019 18:33:28 +0000 (20:33 +0200)]
Add or clean header guards in lib/nettle
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Sun, 28 Apr 2019 10:22:59 +0000 (12:22 +0200)]
Add or clean header guards in tests/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Sun, 28 Apr 2019 10:19:01 +0000 (12:19 +0200)]
Add or clean header guards in src/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Sun, 28 Apr 2019 10:11:13 +0000 (12:11 +0200)]
Add or clean header guards in lib/x509/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Sun, 28 Apr 2019 10:08:27 +0000 (12:08 +0200)]
Add or clean header guards in lib/tls13/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Sun, 28 Apr 2019 10:05:32 +0000 (12:05 +0200)]
Add or clean header guards in lib/extras/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Sun, 28 Apr 2019 10:03:07 +0000 (12:03 +0200)]
Add or clean header guards in lib/ext/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Sun, 28 Apr 2019 09:55:37 +0000 (11:55 +0200)]
Add or clean header guards in lib/auth/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Thu, 14 Mar 2019 20:21:50 +0000 (21:21 +0100)]
Add or clean header guards in lib/
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Tim Rühsen [Wed, 24 Apr 2019 19:21:12 +0000 (21:21 +0200)]
Add 'Header guards' section in CONTRIBUTING.md
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Daniel Schaefer [Sun, 5 May 2019 12:35:02 +0000 (14:35 +0200)]
guile: Properly format guile configure options
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>
Nikos Mavrogiannopoulos [Fri, 3 May 2019 17:10:03 +0000 (19:10 +0200)]
gnutls_sign_list: document the non-thread-safeness
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Daiki Ueno [Tue, 30 Apr 2019 12:42:51 +0000 (14:42 +0200)]
crypto: add private API to retrieve internal IV
For FIPS validation purposes, this adds a new function
_gnutls_cipher_get_iv() that exposes internal IV after encryption and
decryption. The function is not generally useful because the IV value
can be easily calculated from the initial IV and the subsequent
ciphertext but for FIPS validation purposes.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Mon, 29 Apr 2019 11:15:33 +0000 (13:15 +0200)]
abi-check: supply --hd2 to abi-check-latest target
To suppress changes in internal structures.
Suggested by Nikos Mavrogiannopoulos.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Nikos Mavrogiannopoulos [Thu, 25 Apr 2019 08:12:40 +0000 (08:12 +0000)]
Merge branch 'tmp-rsa-pss-cert-fix' into 'master'
certtool: generate RSA-PSS certificates from RSA keys
See merge request gnutls/gnutls!980
Nikos Mavrogiannopoulos [Sat, 20 Apr 2019 16:46:23 +0000 (18:46 +0200)]
certtool: refuse to accept an incompatible key type
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Mon, 15 Apr 2019 12:32:55 +0000 (14:32 +0200)]
certtool: generate RSA-PSS certificates from RSA keys
When generating certificates it was not possible to generate
an RSA-PSS certificate from an RSA key (common scenario). This
fixes the certificate generation to include such a method.
Ironically there was a test for this scenario but the test
was limited to checking that the combination of certtool parameters
succeeded; modified the test to check the textual expression of
the certificate for the RSA-PSS indicators.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Sat, 20 Apr 2019 07:25:00 +0000 (07:25 +0000)]
Merge branch 'autoopts_guix' into 'master'
Makefile.am: Don't assume autoopts-config returns a single dash.
See merge request gnutls/gnutls!976
Nikos Mavrogiannopoulos [Sat, 20 Apr 2019 07:24:34 +0000 (07:24 +0000)]
Merge branch 'tmp-p11tool-pin' into 'master'
p11tool: copy vendor query attributes when listing privkeys
See merge request gnutls/gnutls!982
Daiki Ueno [Fri, 19 Apr 2019 21:19:25 +0000 (21:19 +0000)]
Merge branch 'tmp-early-exporter' into 'master'
prf: add function to retrieve early keying material
Closes #736 and #329
See merge request gnutls/gnutls!894
Daiki Ueno [Fri, 19 Apr 2019 20:04:24 +0000 (22:04 +0200)]
tls13/session_ticket: use the same ticket_age_add regardless of endianness
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Fri, 19 Apr 2019 14:59:31 +0000 (16:59 +0200)]
tls13/session_ticket: avoid UB regarding 64-bit time encoding
On 32-bit platform, struct timespec.tv_sec can be signed 32-bit and
thus right shifting 32 could be an undefined behavior.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Fri, 19 Apr 2019 06:12:56 +0000 (08:12 +0200)]
tests: make datefudge check robuster
When checking datefudge availability under cross-compiling environment
with a binfmt wrapper, it is not sufficient to check against the host
executable. This instead uses a test executable compiled for the
target architecture.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 11 Apr 2019 12:35:32 +0000 (14:35 +0200)]
serv, cli: add --keymatexport option
This adds --keymatexport and --keymatexportsize options to both
gnutls-serv and gnutls-cli. Those would be useful for testing
interoperability with other implementations.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 11 Apr 2019 10:11:00 +0000 (12:11 +0200)]
prf: add function to retrieve early keying material
This adds a new function gnutls_prf_early, which shall be called in a
handshake hook waiting for GNUTLS_HANDSHAKE_CLIENT_HELLO. The test
needs to be run in a datefudge wrapper as the early secrets depend on
the current time (through PSK).
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 11 Apr 2019 10:07:00 +0000 (12:07 +0200)]
handshake: generate early exporter secret
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 11 Apr 2019 10:00:46 +0000 (12:00 +0200)]
handshake: move early secrets calculation to pre_shared_key
TLS 1.3 Early Secret and the derived keys are calculated upon a PSK
being selected, thus the code fits better in ext/pre_shared_key.c.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 11 Apr 2019 10:10:00 +0000 (12:10 +0200)]
tests/tls13/prf: check if the exported material matches on server
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Daiki Ueno [Thu, 11 Apr 2019 09:23:26 +0000 (11:23 +0200)]
prf: centrally define "exporter" label in handshake.h
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Nikos Mavrogiannopoulos [Thu, 18 Apr 2019 18:39:14 +0000 (18:39 +0000)]
Merge branch 'tmp-abigail' into 'master'
Use libabigail for tracking ABI changes
See merge request gnutls/gnutls!972
Nikos Mavrogiannopoulos [Thu, 18 Apr 2019 18:16:34 +0000 (18:16 +0000)]
Merge branch 'tmp-ametzler-doc-GNUTLS_CERT_IGNORE' into 'master'
doc: Add documentation for GNUTLS_CERT_IGNORE
See merge request gnutls/gnutls!983
Nikos Mavrogiannopoulos [Thu, 18 Apr 2019 18:15:21 +0000 (18:15 +0000)]
Merge branch 'certs' into 'master'
Extend test cert to 2049-05-27
See merge request gnutls/gnutls!979
Andreas Metzler [Thu, 18 Apr 2019 16:43:30 +0000 (18:43 +0200)]
doc: Add documentation for GNUTLS_CERT_IGNORE
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Daiki Ueno [Tue, 16 Apr 2019 12:27:10 +0000 (14:27 +0200)]
p11tool: copy vendor query attributes when listing privkeys
When listing private keys on a specified token, "pin-value" is
ignored and the tool looks for GNUTLS_PIN, because it internally
strips out vendor query attributes from the original URL.
This also replaces the global uses of GNUTLS_PIN envvar in
testpkcs11.sh to check the case where the envvar is not in effect.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Nikos Mavrogiannopoulos [Sun, 7 Apr 2019 11:22:21 +0000 (13:22 +0200)]
abi-check: simplify ABI comparison using libabigail tools
These have output ABI format compatibility and that means we can
take snapshots to test ABI against. We also hard-code explicitly
the SONAME version to ensure no accidental SONAME bumps happen.
This patch also moves symbols.last in the devel/ subdirectory
and no internal files are shipped.
Relates: #292
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 7 Apr 2019 16:29:02 +0000 (18:29 +0200)]
.gitignore: ignore tests/libpkcs11mock2.la
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sun, 7 Apr 2019 12:30:30 +0000 (14:30 +0200)]
gnutls.h: re-define GNUTLS_CRT_RAWPK
This was available before 3.6.4, and was incorrectly removed.
It was found using libabigail tools.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Tim Rühsen [Mon, 15 Apr 2019 19:08:00 +0000 (19:08 +0000)]
Merge branch 'tmp-mingw-fix' into 'master'
Fix WIN32 custom push/pull functions
Closes #751
See merge request gnutls/gnutls!978
Bernhard M. Wiedemann [Sun, 14 Apr 2019 14:53:52 +0000 (16:53 +0200)]
Extend test cert to 2049-05-27
instead of expiring in 2024-02-29
This update did not trigger y2038 bugs on 32-bit systems.
Without this patch, one test fails after 2024:
doit:124: rsa pss key: gnutls_x509_crt_verify_data2 |
FAIL x509sign-verify (exit status: 1)
Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Tim Rühsen [Sun, 14 Apr 2019 15:25:31 +0000 (15:25 +0000)]
Merge branch 'tmp-ametzler-gcc9-build-error' into 'master'
Fix link errors with gcc-9
See merge request gnutls/gnutls!966
Andreas Metzler [Sun, 14 Apr 2019 15:25:31 +0000 (15:25 +0000)]
Fix link error with gcc-9
Use LDADD instead of LDFLAGS to link test cipher-openssl-compat against
libcrypto. This fixes a build error with gcc9 which passes the linker
option --as-needed by default.
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
Nikos Mavrogiannopoulos [Sun, 14 Apr 2019 14:15:23 +0000 (16:15 +0200)]
doc: mark TLS1.2 functions as such [ci skip]
gnutls_cipher_suite_get_name and gnutls_session_get_master_secret
are marked as TLS1.2 or earlier-only as they cannot be used with
TLS 1.3.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 13 Apr 2019 06:37:50 +0000 (08:37 +0200)]
gnutlsxx.h: removed fixme comments [ci skip]
They served no purpose.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos [Sat, 13 Apr 2019 06:33:57 +0000 (08:33 +0200)]
gnutls-cli: renamed global variable name
That is because the same variable name is used by local
variables as well.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Tim Rühsen [Thu, 11 Apr 2019 07:46:21 +0000 (09:46 +0200)]
Fix WIN32 custom push/pull functions
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Reported-by: J. Ali Harlow (@j_ali on Gitlab.com)
Nikos Mavrogiannopoulos [Wed, 10 Apr 2019 13:12:21 +0000 (13:12 +0000)]
Merge branch 'tmp-fix-pha-pkcs11-test' into 'master'
tests: fix race condition in tls13/post-handshake-with-cert-pkcs11
See merge request gnutls/gnutls!977
Daiki Ueno [Tue, 9 Apr 2019 16:20:15 +0000 (18:20 +0200)]
tests: fix race condition in tls13/post-handshake-with-cert-pkcs11
The test had a strange setup of server/client processes: the server
runs in a child process and the client runs in a parent process. The
intention behind this was to detect softhsm availability in the parent
process and exit with 77 if missing. However, there was a potential
race when the server exits and proceeds to the next call of start().
This fixes the process setup and moves the softhsm detection at the
program startup.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Nikos Mavrogiannopoulos [Wed, 10 Apr 2019 08:35:14 +0000 (08:35 +0000)]
Merge branch 'guile' into 'master'
build: allow override guile system location
Closes #748
See merge request gnutls/gnutls!968
Tim Rühsen [Tue, 9 Apr 2019 19:04:06 +0000 (19:04 +0000)]
Merge branch 'tmp-check-even' into 'master'
Pass CI commit check if branches are 'even'
See merge request gnutls/gnutls!975
Alon Bar-Lev [Tue, 9 Apr 2019 16:01:46 +0000 (19:01 +0300)]
build: rename guile variables to match upstream names
Reduce confusion between the upstream terms and the gnutls terms.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>