qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject [1/2] qpid-dispatch git commit: DISPATCH-1148: set version in open frames sent to auth service
Date Thu, 18 Oct 2018 21:36:36 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 40de39316 -> 7baa254aa


DISPATCH-1148: set version in open frames sent to auth service


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/b4385f9e
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/b4385f9e
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/b4385f9e

Branch: refs/heads/master
Commit: b4385f9e79ac981fdd2d1faf1d9b0588661da0b2
Parents: 40de393
Author: Gordon Sim <gsim@redhat.com>
Authored: Thu Oct 18 21:49:00 2018 +0100
Committer: Gordon Sim <gsim@redhat.com>
Committed: Thu Oct 18 21:58:18 2018 +0100

----------------------------------------------------------------------
 src/remote_sasl.c | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/b4385f9e/src/remote_sasl.c
----------------------------------------------------------------------
diff --git a/src/remote_sasl.c b/src/remote_sasl.c
index ae32936..edd76f1 100644
--- a/src/remote_sasl.c
+++ b/src/remote_sasl.c
@@ -201,6 +201,15 @@ static bool remote_sasl_init_server(pn_transport_t* transport)
         pn_data_put_symbol(data, pn_bytes(13, "ADDRESS-AUTHZ"));
         pn_data_exit(data);
 
+        data = pn_connection_properties(impl->downstream);
+        pn_data_put_map(data);
+        pn_data_enter(data);
+        pn_data_put_symbol(data, pn_bytes(strlen(QD_CONNECTION_PROPERTY_PRODUCT_KEY), QD_CONNECTION_PROPERTY_PRODUCT_KEY));
+        pn_data_put_string(data, pn_bytes(strlen(QD_CONNECTION_PROPERTY_PRODUCT_VALUE), QD_CONNECTION_PROPERTY_PRODUCT_VALUE));
+        pn_data_put_symbol(data, pn_bytes(strlen(QD_CONNECTION_PROPERTY_VERSION_KEY), QD_CONNECTION_PROPERTY_VERSION_KEY));
+        pn_data_put_string(data, pn_bytes(strlen(QPID_DISPATCH_VERSION), QPID_DISPATCH_VERSION));
+        pn_data_exit(data);
+
         pn_proactor_connect(proactor, impl->downstream, impl->authentication_service_address);
         return true;
     } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message