This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU gsasl".
http://git.savannah.gnu.org/cgit/gsasl.git/commit/?id=3688d5fa91e373fdaf1ca8e390d29d0c324339c6 The branch, master has been updated via 3688d5fa91e373fdaf1ca8e390d29d0c324339c6 (commit) via 12660e27c675720f5d2305d23743a309fe9dd50b (commit) from 564c03ecd428b9c9f6a1147d6bd9d7efc6e85ad0 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3688d5fa91e373fdaf1ca8e390d29d0c324339c6 Author: Simon Josefsson <[email protected]> Date: Thu Sep 10 12:03:44 2009 +0200 SCRAM: Fix self-test and memory leak. commit 12660e27c675720f5d2305d23743a309fe9dd50b Author: Simon Josefsson <[email protected]> Date: Thu Sep 10 11:55:10 2009 +0200 Improve output. ----------------------------------------------------------------------- Summary of changes: lib/scram/client.c | 1 + lib/scram/server.c | 1 + tests/scram.c | 19 ++++++++++++++++++- 3 files changed, 20 insertions(+), 1 deletions(-) diff --git a/lib/scram/client.c b/lib/scram/client.c index 666f52a..6397af5 100644 --- a/lib/scram/client.c +++ b/lib/scram/client.c @@ -186,6 +186,7 @@ _gsasl_scram_sha1_client_finish (Gsasl_session * sctx, void *mech_data) scram_free_client_first (&state->cf); scram_free_server_first (&state->sf); scram_free_client_final (&state->cl); + scram_free_server_final (&state->sl); free (state); } diff --git a/lib/scram/server.c b/lib/scram/server.c index 9067452..147f624 100644 --- a/lib/scram/server.c +++ b/lib/scram/server.c @@ -172,6 +172,7 @@ _gsasl_scram_sha1_server_finish (Gsasl_session * sctx, void *mech_data) scram_free_client_first (&state->cf); scram_free_server_first (&state->sf); scram_free_client_final (&state->cl); + scram_free_server_final (&state->sl); free (state); } diff --git a/tests/scram.c b/tests/scram.c index 30cf3ac..c259a36 100644 --- a/tests/scram.c +++ b/tests/scram.c @@ -96,6 +96,9 @@ doit (void) for (i = 0; i < 5; i++) { + if (debug) + printf ("Iteration %d ...\n", i); + res = gsasl_server_start (ctx, "SCRAM-SHA-1", &server); if (res != GSASL_OK) { @@ -162,7 +165,21 @@ doit (void) } if (debug) - printf ("C: %.*s\n", s2len, s2); + printf ("S: %.*s\n", s2len, s2); + + /* Let client parse server final... */ + + res = gsasl_step (client, s2, s2len, &s1, &s1len); + gsasl_free (s2); + if (res != GSASL_OK) + { + fail ("gsasl_step[%d](5) failed (%d):\n%s\n", i, res, + gsasl_strerror (res)); + return; + } + + if (debug) + printf ("C: %.*s\n\n", s1len, s1); gsasl_finish (client); gsasl_finish (server); hooks/post-receive -- GNU gsasl _______________________________________________ Gsasl-commit mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gsasl-commit
