diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2007-10-24 10:27:04 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2007-10-24 10:27:04 +0300 |
commit | 91b8389c34b89eba1e2b3f13c43c7c50ea0d6010 (patch) | |
tree | 34ebd4fc4d08b5748db4c7047e0cc8e1c517c247 /src/tests.c | |
parent | 12c545d3beb9c759e94cc091f5cbcf3850b3ce18 (diff) | |
download | gnutls-91b8389c34b89eba1e2b3f13c43c7c50ea0d6010.tar.gz |
Introduced gnutls_session_enable_compatibility_mode() to allow enabling
all supported compatibility options (like disabling padding). Some other bug fixes
in tls-test.c.
Diffstat (limited to 'src/tests.c')
-rw-r--r-- | src/tests.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/tests.c b/src/tests.c index bc9bc11be9..0818acb55c 100644 --- a/src/tests.c +++ b/src/tests.c @@ -50,7 +50,7 @@ int tls1_1_ok = 0; /* keep session info */ static char *session_data = NULL; static char session_id[32]; -static int session_data_size = 0, session_id_size = 0; +static size_t session_data_size = 0, session_id_size = 0; static int sfree = 0; static int handshake_output = 0; @@ -217,13 +217,10 @@ ADD_PROTOCOL3 (gnutls_session_t session, int p1, int p2, int p3) static int srp_detected; int -_test_srp_username_callback (gnutls_session_t session, unsigned int times, - char **username, char **password) +_test_srp_username_callback (gnutls_session_t session, + char **username, char **password) { - if (times == 1) - { - srp_detected = 1; - } + srp_detected = 1; return -1; } |