Revert "PROTON-877: workaround by forcing anonymous from the client"
This reverts commit 20cdff183f7ce2c79012d5c7028eefc19a23ae28. Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/bf81c44d Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/bf81c44d Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/bf81c44d Branch: refs/heads/master Commit: bf81c44de4f1a8d949eba56d3fbaca13b3375325 Parents: 92eb75e Author: Rafael Schloming <[email protected]> Authored: Sun Jul 5 15:57:53 2015 -0400 Committer: Rafael Schloming <[email protected]> Committed: Sun Jul 5 19:33:24 2015 -0400 ---------------------------------------------------------------------- proton-c/src/reactor/connection.c | 2 -- proton-c/src/tests/reactor.c | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/bf81c44d/proton-c/src/reactor/connection.c ---------------------------------------------------------------------- diff --git a/proton-c/src/reactor/connection.c b/proton-c/src/reactor/connection.c index 11789b3..4a57bfd 100644 --- a/proton-c/src/reactor/connection.c +++ b/proton-c/src/reactor/connection.c @@ -101,8 +101,6 @@ void pni_handle_open(pn_reactor_t *reactor, pn_event_t *event) { } pn_transport_t *transport = pn_transport(); - pn_sasl_t *sasl = pn_sasl(transport); - pn_sasl_allowed_mechs(sasl, "ANONYMOUS"); pn_transport_bind(transport, conn); pn_decref(transport); } http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/bf81c44d/proton-c/src/tests/reactor.c ---------------------------------------------------------------------- diff --git a/proton-c/src/tests/reactor.c b/proton-c/src/tests/reactor.c index 4d4b648..fe6c769 100644 --- a/proton-c/src/tests/reactor.c +++ b/proton-c/src/tests/reactor.c @@ -19,7 +19,6 @@ * */ -#include <proton/sasl.h> #include <proton/reactor.h> #include <proton/handlers.h> #include <proton/event.h> @@ -289,8 +288,8 @@ static void test_reactor_connect(void) { pn_reactor_connection(reactor, ch); pn_reactor_run(reactor); expect(srv->events, PN_CONNECTION_INIT, PN_CONNECTION_BOUND, - PN_TRANSPORT, PN_CONNECTION_REMOTE_OPEN, - PN_TRANSPORT, PN_CONNECTION_LOCAL_OPEN, PN_TRANSPORT, + PN_CONNECTION_REMOTE_OPEN, + PN_CONNECTION_LOCAL_OPEN, PN_TRANSPORT, PN_CONNECTION_REMOTE_CLOSE, PN_TRANSPORT_TAIL_CLOSED, PN_CONNECTION_LOCAL_CLOSE, PN_TRANSPORT, PN_TRANSPORT_HEAD_CLOSED, PN_TRANSPORT_CLOSED, @@ -299,8 +298,7 @@ static void test_reactor_connect(void) { pn_decref(sh); expect(cli->events, PN_CONNECTION_INIT, PN_CONNECTION_LOCAL_OPEN, PN_CONNECTION_BOUND, - PN_TRANSPORT, PN_CONNECTION_REMOTE_OPEN, - PN_CONNECTION_LOCAL_CLOSE, + PN_CONNECTION_REMOTE_OPEN, PN_CONNECTION_LOCAL_CLOSE, PN_TRANSPORT, PN_TRANSPORT_HEAD_CLOSED, PN_CONNECTION_REMOTE_CLOSE, PN_TRANSPORT_TAIL_CLOSED, PN_TRANSPORT_CLOSED, PN_CONNECTION_UNBOUND, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
