/[Apache-SVN]
ViewVC logotype

Revision 1487772


Jump to revision: Previous Next
Author: jorton
Date: Thu May 30 07:19:07 2013 UTC (10 years, 10 months ago)
Changed paths: 5
Log Message:
mod_ssl: Redesign NPN (Next Protocol Negotiation) API to avoid use of
hooks API and inter-module hard linkage:

* modules/ssl/mod_ssl.h: Remove NPN hooks, add "modssl_register_npn"
  optional function and callback function type declarations for
  ssl_npn_advertise_protos, ssl_npn_proto_negotiated.

* modules/ssl/mod_ssl.c: Drop hooks.
  (modssl_register_npn): New optional function implementation.
  (ssl_register_hooks): Register it.

* modules/ssl/ssl_private.h (SSLConnRec): Add npn_advertfns,
  npn_negofns array fields.

* modules/ssl/ssl_engine_kernel.c (ssl_callback_AdvertiseNextProtos): 
  Replace use of hook API with array iteration.

* modules/ssl/ssl_engine_io.c (ssl_io_filter_input): Likewise.

Reviewed by: Matthew Steele <mdsteele google.com>


Changed paths

Path Details
Directoryhttpd/httpd/trunk/modules/ssl/mod_ssl.c modified , text changed
Directoryhttpd/httpd/trunk/modules/ssl/mod_ssl.h modified , text changed
Directoryhttpd/httpd/trunk/modules/ssl/ssl_engine_io.c modified , text changed
Directoryhttpd/httpd/trunk/modules/ssl/ssl_engine_kernel.c modified , text changed
Directoryhttpd/httpd/trunk/modules/ssl/ssl_private.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26