httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=52210

--- Comment #6 from mdsteele@google.com 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message