]> git.ipfire.org Git - thirdparty/gnutls.git/log
thirdparty/gnutls.git
9 years agox059: Fix asymmetry in name constraints intersection
Martin Ukrop [Wed, 27 Jul 2016 13:41:08 +0000 (15:41 +0200)] 
x059: Fix asymmetry in name constraints intersection

- In _gnutls_name_constraints_intersect, if *_nc had a node of some type not present in _nc2, this was preserved. However, if it was vice versa (_nc2 having a type not present in *_nc), this node was discarded.
- This is now fixed.
- Removed redundant return value check that was accidentally left when refactoring from set_datum to explicit NULL setting.

Signed-off-by: Martin Ukrop <mukrop@redhat.com>
9 years agotests: Add and improve chain tests
Martin Ukrop [Tue, 26 Jul 2016 15:44:53 +0000 (17:44 +0200)] 
tests: Add and improve chain tests

- Add a new chaintest testing the symmetry of merging name constraints of different types.
- Rename old name_constraints_but_no_name test to match other name constraints tests.
- Improve chain description of older name constraints tests.

Signed-off-by: Martin Ukrop <mukrop@redhat.com>
9 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 12:34:15 +0000 (14:34 +0200)] 
doc update [ci skip]

9 years agoconfigure: do not generate makefiles in removed dirs
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 11:41:11 +0000 (13:41 +0200)] 
configure: do not generate makefiles in removed dirs

9 years agotests: updated paths for new location of p12 files
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 11:37:31 +0000 (13:37 +0200)] 
tests: updated paths for new location of p12 files

9 years agotests: safe renegotiation tests are run from top dir
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 11:34:34 +0000 (13:34 +0200)] 
tests: safe renegotiation tests are run from top dir

9 years agotests: srp tests moved outside subdir
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 11:30:18 +0000 (13:30 +0200)] 
tests: srp tests moved outside subdir

9 years agotests: moved sha2 tests into cert-tests/
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 11:24:55 +0000 (13:24 +0200)] 
tests: moved sha2 tests into cert-tests/

9 years agotests: moved ecdsa tests to key-tests/
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 11:20:25 +0000 (13:20 +0200)] 
tests: moved ecdsa tests to key-tests/

9 years agotests: moved dsa tests into key-tests/
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 11:13:39 +0000 (13:13 +0200)] 
tests: moved dsa tests into key-tests/

9 years agotests: moved pkcs8 tests to key-tests/
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 11:08:57 +0000 (13:08 +0200)] 
tests: moved pkcs8 tests to key-tests/

9 years agotests: key-tests: moved data files into data/ subdir
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 11:04:31 +0000 (13:04 +0200)] 
tests: key-tests: moved data files into data/ subdir

9 years agotests: moved pkcs12 tests into cert-certs/ subdir
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 10:59:33 +0000 (12:59 +0200)] 
tests: moved pkcs12 tests into cert-certs/ subdir

9 years agomore files to ignore
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 09:23:43 +0000 (11:23 +0200)] 
more files to ignore

9 years agoRequire compiler to support C99
Tim Rühsen [Thu, 28 Jul 2016 07:55:27 +0000 (09:55 +0200)] 
Require compiler to support C99

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 11:59:26 +0000 (13:59 +0200)] 
doc update

9 years agoAdd test for gnutls_x509_crt_list_import2 with flag GNUTLS_X509_CRT_LIST_FAIL_IF_UNSO...
Tim Kosse [Sat, 9 Jul 2016 11:03:55 +0000 (13:03 +0200)] 
Add test for gnutls_x509_crt_list_import2 with flag GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED.

9 years agognutls_x509_crl_list_import2 was ignoring the passed flags if all CTLs in the list...
Tim Kosse [Sat, 9 Jul 2016 10:24:33 +0000 (12:24 +0200)] 
gnutls_x509_crl_list_import2 was ignoring the passed flags if all CTLs in the list fit within the initially allocated memory.

9 years agognutls_certificate_get_peers may return an unsorted list
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 08:51:40 +0000 (10:51 +0200)] 
gnutls_certificate_get_peers may return an unsorted list

9 years agognutls_x509_crt_list_import2 was ignoring the passed flags if all certificates in...
Tim Kosse [Sat, 9 Jul 2016 09:53:52 +0000 (11:53 +0200)] 
gnutls_x509_crt_list_import2 was ignoring the passed flags if all certificates in the list fit within the initially allocated memory.

9 years agox509: parse_tlsfeatures: move limit check at the point of addition
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 08:37:00 +0000 (10:37 +0200)] 
x509: parse_tlsfeatures: move limit check at the point of addition

This prevents appending failures when verifying chains on certificates
which use the maximum allowed number of features. Suggested by Tim
Kosse.

9 years agotests: removed irrelevant comment
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 08:33:06 +0000 (10:33 +0200)] 
tests: removed irrelevant comment

9 years agocorrect the sign type of integers in debug message
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 08:31:25 +0000 (10:31 +0200)] 
correct the sign type of integers in debug message

Suggested by Tim Kosse

9 years agoverify_crt: simplified error setting
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 08:29:18 +0000 (10:29 +0200)] 
verify_crt: simplified error setting

based on suggestion by Tim Kosse.

9 years agoverify_crt: removed text on parameter no longer being present
Nikos Mavrogiannopoulos [Thu, 28 Jul 2016 08:12:46 +0000 (10:12 +0200)] 
verify_crt: removed text on parameter no longer being present

9 years agox509: avoid using int declaration within a for-loop
Nikos Mavrogiannopoulos [Wed, 27 Jul 2016 21:36:20 +0000 (23:36 +0200)] 
x509: avoid using int declaration within a for-loop

This addresses compilation problem with old compilers,
and brings consistency as this type of declaration is not
used in gnutls' code.

9 years agognutls_global_init/deinit: don't use any locking during constructor
Nikos Mavrogiannopoulos [Wed, 27 Jul 2016 21:32:28 +0000 (23:32 +0200)] 
gnutls_global_init/deinit: don't use any locking during constructor

This ensures that there is no deadlock on unexpected errors, such
as missing symbols (e.g., on lazy linking). Reported by Ludovic Courtès.

9 years agornd-linux: use better define check for linux systems
Nikos Mavrogiannopoulos [Wed, 27 Jul 2016 21:27:07 +0000 (23:27 +0200)] 
rnd-linux: use better define check for linux systems

9 years agognutls_prf: document when its output matches gnutls_prf_rfc5705
Nikos Mavrogiannopoulos [Wed, 27 Jul 2016 11:10:28 +0000 (13:10 +0200)] 
gnutls_prf: document when its output matches gnutls_prf_rfc5705

9 years agodoc: gnutls_session_set_id: added since
Nikos Mavrogiannopoulos [Wed, 27 Jul 2016 09:05:59 +0000 (11:05 +0200)] 
doc: gnutls_session_set_id: added since

9 years ago.gitlab-ci.yml: keep the guile logs as artifacts on test suite failure
Nikos Mavrogiannopoulos [Wed, 27 Jul 2016 08:38:47 +0000 (10:38 +0200)] 
.gitlab-ci.yml: keep the guile logs as artifacts on test suite failure

9 years agodoc update
Nikos Mavrogiannopoulos [Wed, 27 Jul 2016 07:20:52 +0000 (09:20 +0200)] 
doc update

9 years agoAdd extra dependency flags
David Walker [Wed, 20 Jul 2016 11:43:26 +0000 (12:43 +0100)] 
Add extra dependency flags

This fixes the build when the dependencies are split up during a cross-compile

Resolves: #113

9 years agomoved system-keys-win.c and system-key-dummy.c under system/
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 13:14:33 +0000 (15:14 +0200)] 
moved system-keys-win.c and system-key-dummy.c under system/

9 years agosplit system.c to various files under system/
Nikos Mavrogiannopoulos [Mon, 25 Jul 2016 13:47:19 +0000 (15:47 +0200)] 
split system.c to various files under system/

9 years agognutls.h: giovec_t is a typedef to iovec where that is available
Nikos Mavrogiannopoulos [Mon, 25 Jul 2016 14:26:39 +0000 (16:26 +0200)] 
gnutls.h: giovec_t is a typedef to iovec where that is available

9 years agotests: added unit test for linux _rnd_get_system_entropy
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 11:37:43 +0000 (13:37 +0200)] 
tests: added unit test for linux _rnd_get_system_entropy

This tests whether the function can operate as expected while being
interrupted by signals.

9 years agogetrandom: loop around getrandom to get the requested number of bytes
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 10:03:54 +0000 (12:03 +0200)] 
getrandom: loop around getrandom to get the requested number of bytes

This simplifies and enhanced the previous error handling code.

9 years agoREADME.ci-runners: document asan and ubsan tags
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 09:45:30 +0000 (11:45 +0200)] 
README.ci-runners: document asan and ubsan tags

9 years agotests: removed pkcs1-padding from subdirs
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 13:17:35 +0000 (15:17 +0200)] 
tests: removed pkcs1-padding from subdirs

9 years ago.gitignore: more tests files to ignore
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 13:10:49 +0000 (15:10 +0200)] 
.gitignore: more tests files to ignore

9 years agoconfigure.ac: don't generate makefiles of moved tests
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 12:59:34 +0000 (14:59 +0200)] 
configure.ac: don't generate makefiles of moved tests

9 years agotests: pkcs1-pad: moved to cert-tests
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 12:57:44 +0000 (14:57 +0200)] 
tests: pkcs1-pad: moved to cert-tests

9 years agotests: userid test moved to cert-tests/
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 12:55:25 +0000 (14:55 +0200)] 
tests: userid test moved to cert-tests/

9 years agotests: rsa-md5-collision: run from top-level
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 12:51:59 +0000 (14:51 +0200)] 
tests: rsa-md5-collision: run from top-level

9 years agodoc: updated documentation for gnutls_transport_set_int*
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 12:29:45 +0000 (14:29 +0200)] 
doc: updated documentation for gnutls_transport_set_int*

9 years agodoc: added section on reducing round-trips
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 11:59:04 +0000 (13:59 +0200)] 
doc: added section on reducing round-trips

That discusses TCP fast open with gnutls_transport_set_fastopen(), and false start.

9 years agotests: added test of gnutls_transport_set_fastopen
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 09:38:32 +0000 (11:38 +0200)] 
tests: added test of gnutls_transport_set_fastopen

9 years agotests: added test of TCP fast open using gnutls-cli and gnutls-serv
Tim Ruehsen [Mon, 25 Jul 2016 11:05:30 +0000 (13:05 +0200)] 
tests: added test of TCP fast open using gnutls-cli and gnutls-serv

9 years agodoc update
Tim Ruehsen [Mon, 25 Jul 2016 11:08:28 +0000 (13:08 +0200)] 
doc update

9 years agotools: TLS handling has been incorporated into socket_open()
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 08:33:24 +0000 (10:33 +0200)] 
tools: TLS handling has been incorporated into socket_open()

This is of particular usage to the server IP address loop, since
we can detect fast open errors and retry handshake to the next IP
address.

9 years agognutls-cli: added example usage of TCP fastopen
Tim Ruehsen [Mon, 25 Jul 2016 11:04:11 +0000 (13:04 +0200)] 
gnutls-cli: added example usage of TCP fastopen

It is enabled with the new --fastopen option.

9 years agoSupport TCP Fast Open
Tim Ruehsen [Mon, 25 Jul 2016 11:00:12 +0000 (13:00 +0200)] 
Support TCP Fast Open

This introduces a new function gnutls_transport_set_fastopen().

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: Tim Ruehsen <tim.ruehsen@gmx.de>
9 years ago.gitlab-ci.yml: added asan tag for builds which require asan
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 09:09:56 +0000 (11:09 +0200)] 
.gitlab-ci.yml: added asan tag for builds which require asan

9 years agotests: pkcs11-privkey-fork: added explicit pkcs11 deinitialization
Nikos Mavrogiannopoulos [Tue, 26 Jul 2016 09:08:12 +0000 (11:08 +0200)] 
tests: pkcs11-privkey-fork: added explicit pkcs11 deinitialization

Also ignore known leaks for p11-kit.

9 years agomention ubsan in README [ci skip]
Nikos Mavrogiannopoulos [Mon, 25 Jul 2016 09:43:08 +0000 (11:43 +0200)] 
mention ubsan in README [ci skip]

9 years agodoc update
Nikos Mavrogiannopoulos [Thu, 21 Jul 2016 18:14:39 +0000 (20:14 +0200)] 
doc update

9 years agotests: added checks for OCSP response file support
Nikos Mavrogiannopoulos [Fri, 22 Jul 2016 12:11:25 +0000 (14:11 +0200)] 
tests: added checks for OCSP response file support

That is, check the usability of the APIs for setting and using
an ocsp response. This improves and makes more generic the
test suite API and test_cli_serv() in particular.

9 years agodtls: added a null pointer check in record_overhead
Nikos Mavrogiannopoulos [Fri, 22 Jul 2016 13:36:55 +0000 (15:36 +0200)] 
dtls: added a null pointer check in record_overhead

According to my reading this check is unnecessary as in
no case a null pointer can be encountered. However gcc6
warns about a null pointer derefence and thus adding it,
to be safe.

9 years agognutls_x509_crt_check_hostname*: use unsigned a return value
Nikos Mavrogiannopoulos [Fri, 22 Jul 2016 12:43:49 +0000 (14:43 +0200)] 
gnutls_x509_crt_check_hostname*: use unsigned a return value

This is to prevent issues to callers who may check for negative
error values.

9 years agodoc update [ci skip]
Nikos Mavrogiannopoulos [Fri, 22 Jul 2016 09:17:08 +0000 (11:17 +0200)] 
doc update [ci skip]

9 years agointroduced: GNUTLS_E_UNAVAILABLE_DURING_HANDSHAKE
Nikos Mavrogiannopoulos [Fri, 22 Jul 2016 09:08:32 +0000 (11:08 +0200)] 
introduced: GNUTLS_E_UNAVAILABLE_DURING_HANDSHAKE

This error code is returned when the session resumption parameters
are requested during a handshake. That is, to increase the clarity
when requesting these parameters while false start is active and
the handshake is not complete even if gnutls_handshake() has returned.

Relates #114

9 years agotests: added check of the return values of resumption data functions during false...
Nikos Mavrogiannopoulos [Thu, 21 Jul 2016 16:58:24 +0000 (18:58 +0200)] 
tests: added check of the return values of resumption data functions during false start

Relates #114

9 years agodoc: mention that the session data functions will fail prior to handshake completion
Nikos Mavrogiannopoulos [Fri, 22 Jul 2016 08:57:37 +0000 (10:57 +0200)] 
doc: mention that the session data functions will fail prior to handshake completion

9 years agox509: Fix DNS name constraints checking
Martin Ukrop [Wed, 20 Jul 2016 12:52:00 +0000 (14:52 +0200)] 
x509: Fix DNS name constraints checking

- If the intersection of name constraints of the given type was empty, the results allowed all names instead of none.
- Fixed by adding an universal excluded name constraint in case the intersection for the particular type is empty.
- Moved the logic of creating a name constraint node copy from _gnutls_name_constraints_intersect to name_constraints_intersect_nodes (previously name_constraints_match), as intersecting IP addresses will require further processing (not just taking one of the compared nodes as was the implementation till now).
- GNUTLS_SAN_MAX added in order to comfortably iterate over SAN type enum.

9 years agotests: Add DNS name constraints tests
Martin Ukrop [Wed, 20 Jul 2016 12:29:40 +0000 (14:29 +0200)] 
tests: Add DNS name constraints tests

- One chaintest with empty permitted intersection.
- Merge testset with 2 permitted constraints with empty intersection (intersected list is completely empty).
- Merge testset with 3 permitted constraints, 2 of which have empty intersection.
- Merge testset with 2 permitted constraints with empty intersection and one constraints of different type that remains (intersected list is not empty).
- Enhance failing function with suite number for easier comprehension.

9 years agotests: Tidy up old X509 name constraints tests
Martin Ukrop [Wed, 20 Jul 2016 12:28:20 +0000 (14:28 +0200)] 
tests: Tidy up old X509 name constraints tests

- Use convenience functions for error checking and failure reporting.
- Drop explicit (de)initialization (prevents some not reed reachable memory due to PKCS11 subsystem not being deinitialized in the destructor).
- Use variables to count set permitted/excluded constraints instead of hard-coded numbers.

9 years agodoc: clarify return codes in verification functions [ci skip]
Nikos Mavrogiannopoulos [Thu, 21 Jul 2016 14:07:56 +0000 (16:07 +0200)] 
doc: clarify return codes in verification functions [ci skip]

9 years agognutls_certificate_verify_peers2: document that hostname comparison follows RFC6125
Nikos Mavrogiannopoulos [Thu, 21 Jul 2016 14:02:42 +0000 (16:02 +0200)] 
gnutls_certificate_verify_peers2: document that hostname comparison follows RFC6125

9 years agornd-getentropy: better handling of error printing with errno
Nikos Mavrogiannopoulos [Thu, 21 Jul 2016 09:53:46 +0000 (11:53 +0200)] 
rnd-getentropy: better handling of error printing with errno

9 years agornd-linux: make getrandom back-end robust against EINTR failures
Nikos Mavrogiannopoulos [Thu, 21 Jul 2016 09:51:05 +0000 (11:51 +0200)] 
rnd-linux: make getrandom back-end robust against EINTR failures

9 years agognutls_init: doc update
Nikos Mavrogiannopoulos [Wed, 20 Jul 2016 11:36:38 +0000 (13:36 +0200)] 
gnutls_init: doc update

9 years agotests: verify that GNUTLS_NONBLOCK is available as a definition
Nikos Mavrogiannopoulos [Wed, 20 Jul 2016 11:31:18 +0000 (13:31 +0200)] 
tests: verify that GNUTLS_NONBLOCK is available as a definition

9 years agognutls.h: define elements of gnutls_init_flags_t
Nikos Mavrogiannopoulos [Wed, 20 Jul 2016 11:23:16 +0000 (13:23 +0200)] 
gnutls.h: define elements of gnutls_init_flags_t

That is, define all the elements that were available prior
the move from #define to enum, to allow code relying on

9 years agognutls.h: documented the version various gnutls_init flags were introduced
Nikos Mavrogiannopoulos [Wed, 20 Jul 2016 11:07:44 +0000 (13:07 +0200)] 
gnutls.h: documented the version various gnutls_init flags were introduced

9 years agoMoved the gnutls_x509_dn API functions to x509_dn.c
Nikos Mavrogiannopoulos [Wed, 20 Jul 2016 09:27:35 +0000 (11:27 +0200)] 
Moved the gnutls_x509_dn API functions to x509_dn.c

9 years agotests: enhanced DN decoding tests with complex encoding
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 13:12:13 +0000 (15:12 +0200)] 
tests: enhanced DN decoding tests with complex encoding

9 years agoRFC4514 DN decoding: allow decoding of raw ('#') items
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 12:43:52 +0000 (14:43 +0200)] 
RFC4514 DN decoding: allow decoding of raw ('#') items

In addition allow escaping prefix or suffix spaces as well as
the hash.

9 years agodoc update
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 12:21:16 +0000 (14:21 +0200)] 
doc update

9 years agotests: enhanced DN decoding tests with encoding
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 12:10:08 +0000 (14:10 +0200)] 
tests: enhanced DN decoding tests with encoding

This adds unit tests for gnutls_x509_dn_set_str().

9 years agoAdded gnutls_x509_dn_set_str()
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 12:09:06 +0000 (14:09 +0200)] 
Added gnutls_x509_dn_set_str()

This allows initializing a gnutls_x509_dn_t structure via a DN string.

9 years agotests: utils: use vasprintf() where available
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 11:45:08 +0000 (13:45 +0200)] 
tests: utils: use vasprintf() where available

This allows printing long strings.

9 years agotests: added checks for the RFC4514 decoding via gnutls_x509_dn_get_str()
Nikos Mavrogiannopoulos [Tue, 19 Jul 2016 11:35:13 +0000 (13:35 +0200)] 
tests: added checks for the RFC4514 decoding via gnutls_x509_dn_get_str()

9 years agoRemove redundant if expression from tests/mini-loss-time.c
Tim Rühsen [Tue, 19 Jul 2016 10:08:23 +0000 (12:08 +0200)] 
Remove redundant if expression from tests/mini-loss-time.c

9 years agoFix tests/slow/cipher-openssl-compat.c for OpenSSL 1.1.0
Tim Rühsen [Tue, 19 Jul 2016 09:08:10 +0000 (11:08 +0200)] 
Fix tests/slow/cipher-openssl-compat.c for OpenSSL 1.1.0

9 years agocfg.mk: no longer save config.rpath
Nikos Mavrogiannopoulos [Mon, 18 Jul 2016 16:02:25 +0000 (18:02 +0200)] 
cfg.mk: no longer save config.rpath

9 years agoremoved auto-generated files from the repository
Nikos Mavrogiannopoulos [Mon, 18 Jul 2016 14:36:27 +0000 (16:36 +0200)] 
removed auto-generated files from the repository

9 years agotests: removed an skipped failures due to bugs in softhsm 2.0.0
Nikos Mavrogiannopoulos [Sun, 17 Jul 2016 07:37:22 +0000 (09:37 +0200)] 
tests: removed an skipped failures due to bugs in softhsm 2.0.0

These are no longer an issue as the CI has been updated to softhsm
2.1.0, which addresses them, and they prevented catching the
GNUTLS-SA-2016-2 regression.

9 years agodoc update
Nikos Mavrogiannopoulos [Sat, 16 Jul 2016 16:12:27 +0000 (18:12 +0200)] 
doc update

9 years agoDropped support for EGD random generator
Nikos Mavrogiannopoulos [Sat, 16 Jul 2016 15:19:02 +0000 (17:19 +0200)] 
Dropped support for EGD random generator

This removes rarely tested code for systems which no longer exist
and simplifies code for Linux random generator.

Resolves #112

9 years agoconfigure: prevent a version of getentropy() in a linux libc to be used
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 19:55:04 +0000 (21:55 +0200)] 
configure: prevent a version of getentropy() in a linux libc to be used

For now, we auto-detect and switch between getrandom() and /dev/urandom
when the former is not available. With the complexity of dealing with
libc's that have the feature but kernel not supporting it, or vice versa
it is best keep things simple.

9 years agornd-linux: added sanity check in getrandom output
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 19:38:02 +0000 (21:38 +0200)] 
rnd-linux: added sanity check in getrandom output

9 years agonettle: split the rnd-common to rnd-windows, rnd-getentropy, and rnd-linux
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 16:57:01 +0000 (18:57 +0200)] 
nettle: split the rnd-common to rnd-windows, rnd-getentropy, and rnd-linux

That is, to the windows random generator as well as the getentropy()
generator in BSDs, as well as the getrandom(), /dev/urandom,
and EGD generators on Linux systems.

9 years agornd-common: added faster detection of getrandom based on GRND_NONBLOCK
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 16:51:14 +0000 (18:51 +0200)] 
rnd-common: added faster detection of getrandom based on GRND_NONBLOCK

9 years agodoc update
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 13:31:16 +0000 (15:31 +0200)] 
doc update

9 years agourandom: use st_ino and st_rdev to determine device uniqueness
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 12:58:07 +0000 (14:58 +0200)] 
urandom: use st_ino and st_rdev to determine device uniqueness

9 years agoAdded auto-detection of getrandom() system call in Linux systems
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 12:34:38 +0000 (14:34 +0200)] 
Added auto-detection of getrandom() system call in Linux systems

In addition use getrandom() via the syscall interface if it doesn't
exist in Libc. The reason for the latter is that getrandom() support
for glibc is in limbo for several years, and for auto-detection is that
even if it is going to be present in libc we will not be able to guarrantee
that the system call is available just because it is present in glibc.
For that we detect on initialization whether getrandom() can obtain
random data, and if yes, we continue using that.

9 years agotests: seccomp examples: use cert-common.h
Nikos Mavrogiannopoulos [Fri, 15 Jul 2016 11:58:16 +0000 (13:58 +0200)] 
tests: seccomp examples: use cert-common.h

9 years agotests: enhanced arbitrary extension tests with octet_string encoding
Nikos Mavrogiannopoulos [Thu, 14 Jul 2016 08:00:19 +0000 (10:00 +0200)] 
tests: enhanced arbitrary extension tests with octet_string encoding

9 years agocerttool: added the ability to encode arbitrary extensions
Nikos Mavrogiannopoulos [Thu, 14 Jul 2016 07:43:28 +0000 (09:43 +0200)] 
certtool: added the ability to encode arbitrary extensions

That is, added the ability to encode as an octet string any
specified extension data.