Address James Peach mail comment about bool in API. Add documentation / manpage for API change.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/e7c0cab1 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/e7c0cab1 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/e7c0cab1 Branch: refs/heads/master Commit: e7c0cab16038f057a79d91f532c0c130f5ed3314 Parents: 363a904 Author: Francois Pesce <[email protected]> Authored: Wed Jun 17 16:24:37 2015 -0700 Committer: Francois Pesce <[email protected]> Committed: Wed Jun 17 16:24:37 2015 -0700 ---------------------------------------------------------------------- .../api/TSNetVConnSSLCachedHitSet.en.rst | 32 ++++++++++++++++++++ lib/ts/apidefs.h.in | 1 - proxy/InkAPI.cc | 4 +-- proxy/api/ts/ts.h | 2 +- 4 files changed, 35 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e7c0cab1/doc/reference/api/TSNetVConnSSLCachedHitSet.en.rst ---------------------------------------------------------------------- diff --git a/doc/reference/api/TSNetVConnSSLCachedHitSet.en.rst b/doc/reference/api/TSNetVConnSSLCachedHitSet.en.rst new file mode 100644 index 0000000..64ad686 --- /dev/null +++ b/doc/reference/api/TSNetVConnSSLCachedHitSet.en.rst @@ -0,0 +1,32 @@ +.. Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed + with this work for additional information regarding copyright + ownership. The ASF licenses this file to you under the Apache + License, Version 2.0 (the "License"); you may not use this file + except in compliance with the License. You may obtain a copy of + the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied. See the License for the specific language governing + permissions and limitations under the License. + + +TSVConnIsSsl +============ + +Synopsis +-------- + +`#include <ts/ts.h>` + +.. c:function:: void TSNetVConnSSLCachedHitSet(TSVConn vc, int state) + +Description +----------- + + Mark an SSL Connection as reused, which means that an SSL Session Cache or an SSL Ticket have been used to prevent a full handshake for this SSL Connection. + http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e7c0cab1/lib/ts/apidefs.h.in ---------------------------------------------------------------------- diff --git a/lib/ts/apidefs.h.in b/lib/ts/apidefs.h.in index f697018..bd847f2 100644 --- a/lib/ts/apidefs.h.in +++ b/lib/ts/apidefs.h.in @@ -43,7 +43,6 @@ * */ -#include <stdbool.h> #include <stdint.h> #include <sys/types.h> #include <sys/socket.h> http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e7c0cab1/proxy/InkAPI.cc ---------------------------------------------------------------------- diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc index 3eac33c..22828d6 100644 --- a/proxy/InkAPI.cc +++ b/proxy/InkAPI.cc @@ -6532,11 +6532,11 @@ TSNetVConnRemoteAddrGet(TSVConn connp) } void -TSNetVConnSSLSessionCachedHitSet(TSVConn connp, bool state) +TSNetVConnSSLSessionCachedHitSet(TSVConn connp, int state) { sdk_assert(sdk_sanity_check_iocore_structure(connp) == TS_SUCCESS); SSLNetVConnection *vc = reinterpret_cast<SSLNetVConnection *>(connp); - vc->setSSLSessionCacheHit(state); + vc->setSSLSessionCacheHit((0 != state) ? true : false); } TSAction http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e7c0cab1/proxy/api/ts/ts.h ---------------------------------------------------------------------- diff --git a/proxy/api/ts/ts.h b/proxy/api/ts/ts.h index e9613a8..6583273 100644 --- a/proxy/api/ts/ts.h +++ b/proxy/api/ts/ts.h @@ -1702,7 +1702,7 @@ tsapi TSVConn TSTransformOutputVConnGet(TSVConn connp); Net VConnections */ tsapi struct sockaddr const *TSNetVConnRemoteAddrGet(TSVConn vc); -tsapi void TSNetVConnSSLCachedHitSet(TSVConn vc, bool state); +tsapi void TSNetVConnSSLCachedHitSet(TSVConn vc, int state); /** Opens a network connection to the host specified by ip on the port
