summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2019-05-24 05:46:18 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2019-05-24 05:46:21 +0200
commitae32be70d76bf0379e99e0111fa979420599f2f5 (patch)
treecdbfa83a749902c9b30e07fcca477cc2de74e25f /tests
parenteac062f478a940471c16c750fe7f080f5a4128c6 (diff)
downloadgnutls-ae32be70d76bf0379e99e0111fa979420599f2f5.tar.gz
tests: prf-early fixes the global version
This allows having fixed data in the hello message involved. That required exposing the variable holding the global gnutls version number for testing. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/tls13/prf-early.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tls13/prf-early.c b/tests/tls13/prf-early.c
index 758f78efe7..414b1db5ea 100644
--- a/tests/tls13/prf-early.c
+++ b/tests/tls13/prf-early.c
@@ -54,6 +54,8 @@ static void terminate(void);
#define MAX_BUF 5*1024
#define MSG "Hello TLS"
+extern unsigned int _gnutls_global_version;
+
/* This program tests whether the gnutls_prf() works as
* expected.
*/
@@ -421,6 +423,7 @@ void doit(void)
int i;
int ret;
+ _gnutls_global_version = 0x030607;
signal(SIGPIPE, SIG_IGN);
for (i = 0; i < SESSIONS; i++) {