summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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-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>
| * Add or clean header guards in lib/tls13/Tim Rühsen2019-05-0711-3/+54
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * Add or clean header guards in lib/extras/Tim Rühsen2019-05-072-3/+12
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * Add or clean header guards in lib/ext/Tim Rühsen2019-05-0726-72/+90
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * Add or clean header guards in lib/auth/Tim Rühsen2019-05-079-18/+34
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * Add or clean header guards in lib/Tim Rühsen2019-05-0758-133/+206
| | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
| * Add 'Header guards' section in CONTRIBUTING.mdTim Rühsen2019-05-071-0/+22
|/ | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
* gnutls_sign_list: document the non-thread-safenessNikos Mavrogiannopoulos2019-05-031-0/+1
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* crypto: add private API to retrieve internal IVDaiki Ueno2019-05-039-0/+94
| | | | | | | | | | 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>
* abi-check: supply --hd2 to abi-check-latest targetDaiki Ueno2019-05-032-3/+3
| | | | | | | To suppress changes in internal structures. Suggested by Nikos Mavrogiannopoulos. Signed-off-by: Daiki Ueno <dueno@redhat.com>
* Merge branch 'tmp-rsa-pss-cert-fix' into 'master'Nikos Mavrogiannopoulos2019-04-254-25/+115
|\ | | | | | | | | certtool: generate RSA-PSS certificates from RSA keys See merge request gnutls/gnutls!980
| * certtool: refuse to accept an incompatible key typeNikos Mavrogiannopoulos2019-04-252-8/+43
| | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
| * certtool: generate RSA-PSS certificates from RSA keysNikos Mavrogiannopoulos2019-04-204-19/+74
|/ | | | | | | | | | | | | 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>
* Merge branch 'autoopts_guix' into 'master'Nikos Mavrogiannopoulos2019-04-201-1/+1
|\ | | | | | | | | Makefile.am: Don't assume autoopts-config returns a single dash. See merge request gnutls/gnutls!976
| * Makefile.am: Don't assume autoopts-config returns a single dash.Marius Bakke2019-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | On distributions such as Nix or Guix, `autoopts-config libsrc` may return something along the lines of "/gnu/store/...-autogen-5.18.16/share/autogen/libopts-42.1.17.tar.gz". * Makefile.am (libopts-check): Print only the last field from autoopts-config output. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
* | Merge branch 'tmp-p11tool-pin' into 'master'Nikos Mavrogiannopoulos2019-04-202-47/+74
|\ \ | | | | | | | | | | | | p11tool: copy vendor query attributes when listing privkeys See merge request gnutls/gnutls!982
| * | p11tool: copy vendor query attributes when listing privkeystmp-p11tool-pinDaiki Ueno2019-04-162-47/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge branch 'tmp-early-exporter' into 'master'Daiki Ueno2019-04-1929-165/+893
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | prf: add function to retrieve early keying material Closes #736 and #329 See merge request gnutls/gnutls!894
| * | | tls13/session_ticket: use the same ticket_age_add regardless of endiannessDaiki Ueno2019-04-191-1/+5
| | | | | | | | | | | | | | | | Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * | | tls13/session_ticket: avoid UB regarding 64-bit time encodingtmp-early-exporterDaiki Ueno2019-04-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | tests: make datefudge check robusterDaiki Ueno2019-04-194-1/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | serv, cli: add --keymatexport optionDaiki Ueno2019-04-198-2/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | prf: add function to retrieve early keying materialDaiki Ueno2019-04-1912-29/+599
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | handshake: generate early exporter secretDaiki Ueno2019-04-192-1/+13
| | | | | | | | | | | | | | | | Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * | | handshake: move early secrets calculation to pre_shared_keyDaiki Ueno2019-04-194-124/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | tests/tls13/prf: check if the exported material matches on serverDaiki Ueno2019-04-191-0/+2
| | | | | | | | | | | | | | | | Signed-off-by: Daiki Ueno <dueno@redhat.com>
| * | | prf: centrally define "exporter" label in handshake.hDaiki Ueno2019-04-192-3/+2
|/ / / | | | | | | | | | Signed-off-by: Daiki Ueno <dueno@redhat.com>
* | | Merge branch 'tmp-abigail' into 'master'Nikos Mavrogiannopoulos2019-04-1815-175016/+45098
|\ \ \ | | | | | | | | | | | | | | | | Use libabigail for tracking ABI changes See merge request gnutls/gnutls!972
| * | | abi-check: simplify ABI comparison using libabigail toolsNikos Mavrogiannopoulos2019-04-1613-175016/+45095
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | .gitignore: ignore tests/libpkcs11mock2.laNikos Mavrogiannopoulos2019-04-161-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
| * | | gnutls.h: re-define GNUTLS_CRT_RAWPKNikos Mavrogiannopoulos2019-04-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | Merge branch 'tmp-ametzler-doc-GNUTLS_CERT_IGNORE' into 'master'Nikos Mavrogiannopoulos2019-04-181-2/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | doc: Add documentation for GNUTLS_CERT_IGNORE See merge request gnutls/gnutls!983
| * | | | doc: Add documentation for GNUTLS_CERT_IGNOREAndreas Metzler2019-04-181-2/+3
| |/ / / | | | | | | | | | | | | Signed-off-by: Andreas Metzler <ametzler@bebt.de>
* | | | Merge branch 'certs' into 'master'Nikos Mavrogiannopoulos2019-04-181-10/+10
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Extend test cert to 2049-05-27 See merge request gnutls/gnutls!979
| * | | Extend test cert to 2049-05-27Bernhard M. Wiedemann2019-04-151-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | Merge branch 'tmp-mingw-fix' into 'master'Tim Rühsen2019-04-153-58/+69
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Fix WIN32 custom push/pull functions Closes #751 See merge request gnutls/gnutls!978
| * | | Fix WIN32 custom push/pull functionstmp-mingw-fixTim Rühsen2019-04-113-58/+69
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de> Reported-by: J. Ali Harlow (@j_ali on Gitlab.com)
* | | | Merge branch 'tmp-ametzler-gcc9-build-error' into 'master'Tim Rühsen2019-04-141-1/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Fix link errors with gcc-9 See merge request gnutls/gnutls!966
| * | | Fix link error with gcc-9Andreas Metzler2019-04-141-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | 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>
* | | doc: mark TLS1.2 functions as such [ci skip]Nikos Mavrogiannopoulos2019-04-142-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | gnutlsxx.h: removed fixme comments [ci skip]Nikos Mavrogiannopoulos2019-04-131-2/+2
| | | | | | | | | | | | | | | | | | They served no purpose. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | | gnutls-cli: renamed global variable nameNikos Mavrogiannopoulos2019-04-131-7/+7
|/ / | | | | | | | | | | | | That is because the same variable name is used by local variables as well. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* | Merge branch 'tmp-fix-pha-pkcs11-test' into 'master'Nikos Mavrogiannopoulos2019-04-101-2/+5
|\ \ | | | | | | | | | | | | tests: fix race condition in tls13/post-handshake-with-cert-pkcs11 See merge request gnutls/gnutls!977