Repository: qpid-proton Updated Branches: refs/heads/master feafb6c80 -> d7ba57b6a
PROTON-1572: Remove C++ casting from C code Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/d7ba57b6 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/d7ba57b6 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/d7ba57b6 Branch: refs/heads/master Commit: d7ba57b6aeb195696257ccb21c6f9bd10afb380a Parents: feafb6c Author: Andrew Stitcher <astitc...@apache.org> Authored: Wed Sep 6 21:24:24 2017 -0400 Committer: Andrew Stitcher <astitc...@apache.org> Committed: Wed Sep 6 21:24:24 2017 -0400 ---------------------------------------------------------------------- proton-c/src/ssl/schannel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/d7ba57b6/proton-c/src/ssl/schannel.c ---------------------------------------------------------------------- diff --git a/proton-c/src/ssl/schannel.c b/proton-c/src/ssl/schannel.c index 9e017d3..5dae80c 100644 --- a/proton-c/src/ssl/schannel.c +++ b/proton-c/src/ssl/schannel.c @@ -978,7 +978,7 @@ static void client_handshake_init(pn_transport_t *transport) pni_ssl_t *ssl = transport->ssl; // Tell SChannel to create the first handshake token (ClientHello) // and place it in sc_outbuf - SEC_CHAR *host = const_cast<SEC_CHAR *>(ssl->peer_hostname); + SEC_CHAR *host = (SEC_CHAR *)(ssl->peer_hostname); ULONG ctxt_requested = ISC_REQ_STREAM | ISC_REQ_USE_SUPPLIED_CREDS | ISC_REQ_EXTENDED_ERROR; ULONG ctxt_attrs; @@ -1013,7 +1013,7 @@ static void client_handshake_init(pn_transport_t *transport) static void client_handshake( pn_transport_t* transport) { pni_ssl_t *ssl = transport->ssl; // Feed SChannel ongoing responses from the server until the handshake is complete. - SEC_CHAR *host = const_cast<SEC_CHAR *>(ssl->peer_hostname); + SEC_CHAR *host = (SEC_CHAR *)(ssl->peer_hostname); ULONG ctxt_requested = ISC_REQ_STREAM | ISC_REQ_USE_SUPPLIED_CREDS; ULONG ctxt_attrs; size_t max = 0; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org