httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52210] Add TLS Next Protocol Negotiation (NPN) support to mod_ssl
Date Tue, 10 Apr 2012 15:28:27 GMT

--- Comment #6 from 2012-04-10 15:28:27 UTC ---
Thanks for taking a look.  I confess that I am not terribly familiar with the
strict-aliasing rules, so I am not sure how best to avoid the problem here. 
The issue is that SSL_get0_next_proto_negotiated requires an unsigned char**,
but apr_pstrmemdup and ssl_run_npn_proto_negotiated_hook each require a (plain,
not unsigned) char*.  If I have no casts at all, the compiler complains.  Is
the aliasing issue avoided if I cast to char* when I call apr_pstrmemdup and
ssl_run_npn_proto_negotiated_hook, rather than casting to unsigned char** when
I call SSL_get0_next_proto_negotiated, as I do now?  If so, I'll fix that right
away; if not, what should I do instead?

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message