summaryrefslogtreecommitdiff
path: root/tests/prf.c
Commit message (Collapse)AuthorAgeFilesLines
* prf: don't crash when called before handshake completionMiroslav Lichvar2019-11-061-0/+8
| | | | | | | If a gnutls_prf*() function is called before the handshake is completed, return GNUTLS_E_INVALID_REQUEST instead of crashing. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
* tests: treat all signals as errortmp-tests-fail-on-signalsNikos Mavrogiannopoulos2019-01-041-0/+3
| | | | | | | | | | | | | Previously we were only treating SIGSEGV as error though there is no reason to treat other signals as success and they may hide an actual error case (e.g., when SIGPIPE is received). With this change we treat any signals received by the child except SIGTERM as error, and we ensure that SIGPIPE is ignored in all tests. This also updates tests/slow/cipher-api-test.c to test failures with SIGABRT or otherwise consistently. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* several spacing fixes to keep syntax-check happyNikos Mavrogiannopoulos2016-09-111-6/+6
|
* tests: moved child status error checking code in utils.hNikos Mavrogiannopoulos2016-08-091-3/+1
|
* gnutls_prf_rfc5705: Allow for non-null context and zero context lengthNikos Mavrogiannopoulos2015-07-201-0/+1
|
* tests: added cross-check between gnutls_prf_rfc5705() and gnutls_prf()Nikos Mavrogiannopoulos2015-07-201-0/+25
|
* gnutls_prf_rfc5705: optimize in the common use case, by avoiding mallocNikos Mavrogiannopoulos2015-07-201-2/+2
| | | | Also don't handle specially the case of non-NULL context and context_size of zero.
* tests: added check for gnutls_prf() and gnutls_prf_rfc5705Nikos Mavrogiannopoulos2015-07-201-0/+434