summaryrefslogtreecommitdiff
path: root/tests/anonself.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: make any ad-hoc timeout setting controllable through envvarDaiki Ueno2021-02-171-1/+1
| | | | Signed-off-by: Daiki Ueno <ueno@gnu.org>
* ANON,SRP,NULL ciphersuites: when set do not negotiate TLS1.3 or laterNikos Mavrogiannopoulos2018-04-131-61/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | The reason is that these ciphersuites cannot be negotiated using TLS1.3. There is a different strategy followed for these. * NULL ciphersuites: they are not something normally enabled and used for debugging purposes mostly. When set both in client and server side only TLS1.2 can be used. * SRP ciphersuites: they are used on client side when the client is actually performing a username-password authentication with SRP. On server side we can have indeed a server support SRP and non-SRP. In that case we limit both on TLS1.2. That an unfortunate restriction, but is not a regression and IMHO these servers would most likely be phased out as very few would want to stick to TLS1.2 connections for SRP; or we may have an SRP update for TLS1.3 which could lift that limitation in the future. * ANON ciphersuites: they are used in certain client/server setups where very basic level of security is required, and in opportunistic encryption scenarios. There is a difference in the handling of these cases. In the case of Anon-only server/clients they provide the session with anonymous credentials structure; in the case of opportunistic encryption they provide both certificate and anonymous credentials. Thus we allow the protocol (TLS1.3) be in the priorities, but if we see no certificate or PSK credentials we disable TLS1.3 negotiation. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* tests: updated for TLS1.3 inclusionNikos Mavrogiannopoulos2018-03-191-1/+4
| | | | | | | | | This moves the test to use a specific version or test multiple TLS versions if applicable. Resolves #413 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* tests: fix TLS version to 1.2 for tests which used VERS-TLS-ALLNikos Mavrogiannopoulos2018-02-191-2/+2
| | | | | | | This allows the test suite to run, even when TLS1.3 is still experimental. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* tests: combined and enhanced DH params testsNikos Mavrogiannopoulos2017-04-081-56/+2
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* tests: added DH parameter check in X.509 authNikos Mavrogiannopoulos2017-04-081-5/+0
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* tests: test gnutls_dh_get_pubkey in anonymous authNikos Mavrogiannopoulos2017-04-081-2/+38
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
* tests: enhanced test to check the return value of gnutls_record_send()Nikos Mavrogiannopoulos2014-11-051-2/+6
|
* gnutls_packet_get() was introduced to avoid exporting a structure on the API.Nikos Mavrogiannopoulos2014-06-161-4/+8
| | | | That change will allow exporting more info associated with a packet in the future.
* Adapted test to check gnutls_record_recv_packet().Nikos Mavrogiannopoulos2014-06-061-7/+15
|
* Add checks in tests for the DHE prime and exponent size.Nikos Mavrogiannopoulos2014-03-261-0/+20
|
* reindented codeNikos Mavrogiannopoulos2013-11-081-223/+206
|
* fix transport parameter casts in testsStefan Bühler2013-08-251-2/+2
|
* Disable tests that use socketpair on _WIN32.Adam Sampson2013-07-171-0/+14
| | | | | | | | | | | socketpair isn't provided on Windows, so these tests should just exit 77. Note that resume-dtls.c already had a guard like this -- I've rewritten it to match the others, but socketpair (presumably!) isn't the only reason that test is disabled on Win32. Signed-off-by: Adam Sampson <ats@offog.org>
* Use socketpair() rather than TCP connections.Adam Sampson2013-07-171-76/+16
| | | | | | | | Besides simplifying the code, this also makes it possible to run "make check" in parallel -- previously this didn't work because several tests were trying to bind the same port. Signed-off-by: Adam Sampson <ats@offog.org>
* Detect socket() error responses correctly.Adam Sampson2013-07-171-1/+1
| | | | | | The code was testing the wrong variable... Signed-off-by: Adam Sampson <ats@offog.org>
* When running tests disable PKCS #11 support to avoid detecting memory leaks ↵Nikos Mavrogiannopoulos2013-05-011-2/+2
| | | | from PKCS #11 libraries.
* Cleanup copyright headers.Simon Josefsson2012-01-251-1/+1
|
* Fixed signed/unsigned warnings.Nikos Mavrogiannopoulos2012-01-211-2/+2
| | | | Dropped opaque type (replaced with uint8_t)
* Run 'make update-copyright'.Simon Josefsson2012-01-161-2/+1
|
* win32 fixes. Patch by LRN.Nikos Mavrogiannopoulos2011-04-071-0/+2
|
* Modernized the test applications that now use the gnutls_priority_set_direct().Nikos Mavrogiannopoulos2011-02-091-6/+2
|
* Indented code. Use same indentation but with -nut to avoid usage of tabs. In ↵Nikos Mavrogiannopoulos2010-12-161-28/+28
| | | | several editors tabs can be configured not to be 8 spaces and this produces artifacts with the current indentation that is a mixture of tabs and spaces.
* Indent (using GNU indent 2.2.11).Simon Josefsson2010-10-141-1/+1
|
* Change GNUTLS into GnuTLS.Simon Josefsson2010-05-221-5/+5
|
* Indent code.Simon Josefsson2010-04-141-17/+29
|
* Reduced several unneeded messages during the make check procedure.Nikos Mavrogiannopoulos2010-03-201-14/+17
| | | | Verbose messages can be obtained with --verbose.
* Update copyright years.Simon Josefsson2010-01-271-1/+2
|
* Fix FSF copyright notices.Simon Josefsson2010-01-271-1/+1
|
* Indent code.Simon Josefsson2009-11-051-2/+3
|
* Doc fixes.Simon Josefsson2009-05-261-2/+2
| | | | Suggested by Peter Hendrickson <pdh@wiredyne.com>.
* Fix warnings.Simon Josefsson2009-05-071-1/+1
|
* Use memset instead of deprecated bzero.Simon Josefsson2009-05-071-1/+1
|
* Use more warnings. Fix many warnings.Simon Josefsson2008-11-171-44/+7
|
* Use #ifdef for checking HAVE_CONFIG_H for consistency.Simon Josefsson2008-09-031-1/+1
|
* tests/: Reduce amount of debugging output.Simon Josefsson2008-06-071-2/+4
|
* Fix memory leaks.Simon Josefsson2008-06-051-16/+18
|
* Use GPLv3 for self-tests.Simon Josefsson2007-12-091-1/+1
|
* Need netinet/in.h. Tiny patch from Deanna PhillipsSimon Josefsson2007-03-211-0/+1
| | | | <deanna@sdf.lonestar.org>.
* Use static DH.Simon Josefsson2007-02-051-5/+3
|
* Print TLS version too.Simon Josefsson2006-11-261-0/+6
|
* More debugging.Simon Josefsson2006-11-261-8/+17
|
* Need config.h.Simon Josefsson2006-06-161-1/+4
|
* Indent.Simon Josefsson2005-11-071-1/+1
|
* Fix bug.Simon Josefsson2005-10-201-1/+1
|
* Update FSF office address in license.Simon Josefsson2005-05-261-1/+1
|
* Clean up license templates.Simon Josefsson2005-01-241-9/+13
|
* Add.Simon Josefsson2004-08-211-0/+365