From: Nikos Mavrogiannopoulos Date: Wed, 29 May 2013 18:11:49 +0000 (+0200) Subject: updated xssl. X-Git-Tag: gnutls_3_2_2~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ff6b5afae291027c18a43c7d079f3685295fbc4;p=thirdparty%2Fgnutls.git updated xssl. --- diff --git a/tests/mini-xssl.c b/tests/mini-xssl.c index 399f1300c0..da954216f0 100644 --- a/tests/mini-xssl.c +++ b/tests/mini-xssl.c @@ -155,7 +155,7 @@ client (int fd, unsigned int vmethod, unsigned use_cert) size_t line_len; xssl_cred_t cred; xssl_t sb; - gnutls_cinput_st aux[2]; + gnutls_cinput_st aux[6]; unsigned int status; unsigned aux_size = 0; @@ -265,7 +265,7 @@ server (int fd, unsigned vmethod) int ret; xssl_cred_t cred; xssl_t sb; - gnutls_cinput_st aux[2]; + gnutls_cinput_st aux[6]; unsigned aux_size = 0; global_init (); @@ -385,19 +385,29 @@ doit (void) signal(SIGCHLD, ch_handler); test = "test1: no auth"; + if (debug) + fprintf(stderr, "running %s", test); start(GNUTLS_VMETHOD_NO_AUTH, GNUTLS_VMETHOD_NO_AUTH, 0); test = "test2: server auth"; + if (debug) + fprintf(stderr, "running %s", test); start(GNUTLS_VMETHOD_GIVEN_CAS, GNUTLS_VMETHOD_NO_AUTH, 0); test = "test3: mutual auth"; + if (debug) + fprintf(stderr, "running %s", test); start(GNUTLS_VMETHOD_GIVEN_CAS, GNUTLS_VMETHOD_GIVEN_CAS, 1); remove(TOFU_DB_FILE); test = "test4: trust on first use p1"; + if (debug) + fprintf(stderr, "running %s", test); start(GNUTLS_VMETHOD_TOFU, GNUTLS_VMETHOD_NO_AUTH, 0); test = "test5: trust on first use p2"; + if (debug) + fprintf(stderr, "running %s", test); start(GNUTLS_VMETHOD_TOFU, GNUTLS_VMETHOD_NO_AUTH, 0); remove(TOFU_DB_FILE);