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 <[email protected]> Authored: Wed Jun 8 23:52:03 2016 -0700 Committer: Clifford Jansen <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
