aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/security
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <y-zeng@users.noreply.github.com>2016-11-10 10:53:12 -0800
committerGravatar GitHub <noreply@github.com>2016-11-10 10:53:12 -0800
commita5da0ef0b68c3286c26e98df589373276aedbdd1 (patch)
tree8aae9dadd84ab8f414f7aef1379264a445395165 /src/core/lib/security
parent3d5dd7937c9cc6e70145294cc425902c65d13b48 (diff)
parente942434f8d6899147b9bb396f935da2f5ec17e19 (diff)
Merge pull request #8486 from y-zeng/get_tos
Add grpc_endpoint_get_fd and grpc_transport_get_endpoint
Diffstat (limited to 'src/core/lib/security')
-rw-r--r--src/core/lib/security/transport/secure_endpoint.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/lib/security/transport/secure_endpoint.c b/src/core/lib/security/transport/secure_endpoint.c
index fba3314812..2d32fae8a1 100644
--- a/src/core/lib/security/transport/secure_endpoint.c
+++ b/src/core/lib/security/transport/secure_endpoint.c
@@ -38,6 +38,7 @@
#include <grpc/support/log.h>
#include <grpc/support/sync.h>
#include "src/core/lib/debug/trace.h"
+#include "src/core/lib/iomgr/sockaddr.h"
#include "src/core/lib/profiling/timers.h"
#include "src/core/lib/security/transport/tsi_error.h"
#include "src/core/lib/slice/slice_string_helpers.h"
@@ -366,6 +367,8 @@ static char *endpoint_get_peer(grpc_endpoint *secure_ep) {
return grpc_endpoint_get_peer(ep->wrapped_ep);
}
+static int endpoint_get_fd(grpc_endpoint *secure_ep) { return -1; }
+
static grpc_workqueue *endpoint_get_workqueue(grpc_endpoint *secure_ep) {
secure_endpoint *ep = (secure_endpoint *)secure_ep;
return grpc_endpoint_get_workqueue(ep->wrapped_ep);
@@ -385,7 +388,8 @@ static const grpc_endpoint_vtable vtable = {endpoint_read,
endpoint_shutdown,
endpoint_destroy,
endpoint_get_resource_user,
- endpoint_get_peer};
+ endpoint_get_peer,
+ endpoint_get_fd};
grpc_endpoint *grpc_secure_endpoint_create(
struct tsi_frame_protector *protector, grpc_endpoint *transport,