You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by cl...@apache.org on 2016/06/09 06:52:51 UTC
qpid-proton git commit: PROTON-1228: Windows SChannel: set a default
peer hostname (same as OpenSSL)
Repository: qpid-proton
Updated Branches:
refs/heads/master c021ecfa6 -> de7ef15b0
PROTON-1228: Windows SChannel: set a default peer hostname (same as OpenSSL)
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/de7ef15b
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/de7ef15b
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/de7ef15b
Branch: refs/heads/master
Commit: de7ef15b0692c459eb3f40ef8ab628b2361d4f3c
Parents: c021ecf
Author: Clifford Jansen <cl...@apache.org>
Authored: Wed Jun 8 23:52:03 2016 -0700
Committer: Clifford Jansen <cl...@apache.org>
Committed: Wed Jun 8 23:52:03 2016 -0700
----------------------------------------------------------------------
proton-c/src/windows/schannel.c | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/de7ef15b/proton-c/src/windows/schannel.c
----------------------------------------------------------------------
diff --git a/proton-c/src/windows/schannel.c b/proton-c/src/windows/schannel.c
index fa9c2d1..4b91780 100644
--- a/proton-c/src/windows/schannel.c
+++ b/proton-c/src/windows/schannel.c
@@ -767,6 +767,13 @@ pn_ssl_t *pn_ssl(pn_transport_t *transport)
transport->ssl = ssl;
+ // Set up hostname from any bound connection
+ if (transport->connection) {
+ if (pn_string_size(transport->connection->hostname)) {
+ pn_ssl_set_peer_hostname((pn_ssl_t *) transport, pn_string_get(transport->connection->hostname));
+ }
+ }
+
SecInvalidateHandle(&ssl->cred_handle);
SecInvalidateHandle(&ssl->ctxt_handle);
ssl->state = CREATED;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org