summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2021-09-09 07:06:00 +0000
committerStefan Eissing <icing@apache.org>2021-09-09 07:06:00 +0000
commit66dc3adee31942765aa018a29bc4b6c5e056bdc2 (patch)
treeeb470430fa24f339fb2038fd0bd71a8f53de40a1 /include
parent2456955dd3fb087ab2f063506502951bb52932a8 (diff)
downloadhttpd-66dc3adee31942765aa018a29bc4b6c5e056bdc2.tar.gz
*core: clarify comments and use hook API better to check for presence of callbacks.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893164 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/http_ssl.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/http_ssl.h b/include/http_ssl.h
index 46f32a8134..e9fb0efd56 100644
--- a/include/http_ssl.h
+++ b/include/http_ssl.h
@@ -56,13 +56,14 @@ AP_DECLARE(int) ap_ssl_conn_is_ssl(conn_rec *c);
* This hook can be called several times in the lifetime of an outgoing connection, e.g.
* when it is re-used in different request contexts. It will at least be called after the
* connection was created and before the pre-connection hooks is invoked.
- * All outgoing-connection hooks are run until one returns something other than ok or decline.
- * if enable_ssl != 0, a hook that sets up SSL for the connection needs to return DONE.
+ * All outgoing-connection hooks are run until one returns something other than DECLINE.
+ * if enable_ssl != 0, a hook that sets up SSL for the connection needs to return OK
+ * to prevent subsequent hooks from doing the same.
*
* @param c The connection on which requests/data are to be sent.
* @param dir_conf The directory configuration in which this connection is being used.
* @param enable_ssl If != 0, the SSL protocol should be enabled for this connection.
- * @return OK or DECLINED, DONE when ssl was enabled
+ * @return DECLINED, OK when ssl was enabled
*/
AP_DECLARE_HOOK(int, ssl_bind_outgoing,
(conn_rec *c, struct ap_conf_vector_t *dir_conf, int enable_ssl))